diff --git a/README.md b/README.md index 70a10bed438..9255e3f3d53 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ You can install the PHP SDK with Composer by editing your `composer.json` file: { "minimum-stability": "RC", "require": { - "microsoft/microsoft-graph": "^2.0.0-RC25", + "microsoft/microsoft-graph": "^2.0.0-RC26", } } ``` @@ -17,7 +17,7 @@ OR ``` { "require": { - "microsoft/microsoft-graph": "^2.0.0-RC25", + "microsoft/microsoft-graph": "^2.0.0-RC26", "microsoft/microsoft-graph-core": "@RC" } } diff --git a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/BrowserSiteListItemRequestBuilder.php b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/BrowserSiteListItemRequestBuilder.php index 869af076172..7f041d9984c 100644 --- a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/BrowserSiteListItemRequestBuilder.php +++ b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/BrowserSiteListItemRequestBuilder.php @@ -56,7 +56,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a browserSiteList object. + * Delete a browserSiteList object. This API is supported in the following national cloud deployments. * @param BrowserSiteListItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/internetexplorermode-delete-sitelists?view=graph-rest-1.0 Find more info here @@ -75,7 +75,7 @@ public function delete(?BrowserSiteListItemRequestBuilderDeleteRequestConfigurat } /** - * Get a browserSiteList that contains browserSite and browserSharedCookie resources. + * Get a browserSiteList that contains browserSite and browserSharedCookie resources. This API is supported in the following national cloud deployments. * @param BrowserSiteListItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/browsersitelist-get?view=graph-rest-1.0 Find more info here @@ -94,7 +94,7 @@ public function get(?BrowserSiteListItemRequestBuilderGetRequestConfiguration $r } /** - * Update the properties of a browserSiteList object. + * Update the properties of a browserSiteList object. This API is supported in the following national cloud deployments. * @param BrowserSiteList $body The request body * @param BrowserSiteListItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -114,7 +114,7 @@ public function patch(BrowserSiteList $body, ?BrowserSiteListItemRequestBuilderP } /** - * Delete a browserSiteList object. + * Delete a browserSiteList object. This API is supported in the following national cloud deployments. * @param BrowserSiteListItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -131,7 +131,7 @@ public function toDeleteRequestInformation(?BrowserSiteListItemRequestBuilderDel } /** - * Get a browserSiteList that contains browserSite and browserSharedCookie resources. + * Get a browserSiteList that contains browserSite and browserSharedCookie resources. This API is supported in the following national cloud deployments. * @param BrowserSiteListItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -152,7 +152,7 @@ public function toGetRequestInformation(?BrowserSiteListItemRequestBuilderGetReq } /** - * Update the properties of a browserSiteList object. + * Update the properties of a browserSiteList object. This API is supported in the following national cloud deployments. * @param BrowserSiteList $body The request body * @param BrowserSiteListItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/BrowserSiteListItemRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/BrowserSiteListItemRequestBuilderGetQueryParameters.php index b689296a93b..1c732342555 100644 --- a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/BrowserSiteListItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/BrowserSiteListItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a browserSiteList that contains browserSite and browserSharedCookie resources. + * Get a browserSiteList that contains browserSite and browserSharedCookie resources. This API is supported in the following national cloud deployments. */ class BrowserSiteListItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishRequestBuilder.php b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishRequestBuilder.php index 58774b91deb..07d81fce17f 100644 --- a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishRequestBuilder.php +++ b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Publish the specified browserSiteList for devices to download. + * Publish the specified browserSiteList for devices to download. This API is supported in the following national cloud deployments. * @param PublishPostRequestBody $body The request body * @param PublishRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(PublishPostRequestBody $body, ?PublishRequestBuilderPostReq } /** - * Publish the specified browserSiteList for devices to download. + * Publish the specified browserSiteList for devices to download. This API is supported in the following national cloud deployments. * @param PublishPostRequestBody $body The request body * @param PublishRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Item/BrowserSharedCookieItemRequestBuilder.php b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Item/BrowserSharedCookieItemRequestBuilder.php index f9a8decd5ce..12ddcf40a00 100644 --- a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Item/BrowserSharedCookieItemRequestBuilder.php +++ b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Item/BrowserSharedCookieItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a browserSharedCookie from a browserSiteList. + * Delete a browserSharedCookie from a browserSiteList. This API is supported in the following national cloud deployments. * @param BrowserSharedCookieItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/browsersitelist-delete-sharedcookies?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?BrowserSharedCookieItemRequestBuilderDeleteRequestConfig } /** - * Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode. + * Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode. This API is supported in the following national cloud deployments. * @param BrowserSharedCookieItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/browsersharedcookie-get?view=graph-rest-1.0 Find more info here @@ -70,7 +70,7 @@ public function get(?BrowserSharedCookieItemRequestBuilderGetRequestConfiguratio } /** - * Update the properties of a browserSharedCookie object. + * Update the properties of a browserSharedCookie object. This API is supported in the following national cloud deployments. * @param BrowserSharedCookie $body The request body * @param BrowserSharedCookieItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -90,7 +90,7 @@ public function patch(BrowserSharedCookie $body, ?BrowserSharedCookieItemRequest } /** - * Delete a browserSharedCookie from a browserSiteList. + * Delete a browserSharedCookie from a browserSiteList. This API is supported in the following national cloud deployments. * @param BrowserSharedCookieItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?BrowserSharedCookieItemRequestBuilde } /** - * Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode. + * Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode. This API is supported in the following national cloud deployments. * @param BrowserSharedCookieItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -128,7 +128,7 @@ public function toGetRequestInformation(?BrowserSharedCookieItemRequestBuilderGe } /** - * Update the properties of a browserSharedCookie object. + * Update the properties of a browserSharedCookie object. This API is supported in the following national cloud deployments. * @param BrowserSharedCookie $body The request body * @param BrowserSharedCookieItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Item/BrowserSharedCookieItemRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Item/BrowserSharedCookieItemRequestBuilderGetQueryParameters.php index b927f2d1de4..04bb47a26f9 100644 --- a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Item/BrowserSharedCookieItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Item/BrowserSharedCookieItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode. + * Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode. This API is supported in the following national cloud deployments. */ class BrowserSharedCookieItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/SharedCookiesRequestBuilder.php b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/SharedCookiesRequestBuilder.php index 99ea2bc569d..07a262fbbc0 100644 --- a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/SharedCookiesRequestBuilder.php +++ b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/SharedCookiesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the browserSharedCookie objects and their properties. + * Get a list of the browserSharedCookie objects and their properties. This API is supported in the following national cloud deployments. * @param SharedCookiesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/browsersitelist-list-sharedcookies?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?SharedCookiesRequestBuilderGetRequestConfiguration $request } /** - * Create a new browserSharedCookie object in a browserSiteList. + * Create a new browserSharedCookie object in a browserSiteList. This API is supported in the following national cloud deployments. * @param BrowserSharedCookie $body The request body * @param SharedCookiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(BrowserSharedCookie $body, ?SharedCookiesRequestBuilderPost } /** - * Get a list of the browserSharedCookie objects and their properties. + * Get a list of the browserSharedCookie objects and their properties. This API is supported in the following national cloud deployments. * @param SharedCookiesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?SharedCookiesRequestBuilderGetRequestCo } /** - * Create a new browserSharedCookie object in a browserSiteList. + * Create a new browserSharedCookie object in a browserSiteList. This API is supported in the following national cloud deployments. * @param BrowserSharedCookie $body The request body * @param SharedCookiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/SharedCookiesRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/SharedCookiesRequestBuilderGetQueryParameters.php index 0ea854e3a6a..1ac360fe768 100644 --- a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/SharedCookiesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/SharedCookiesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the browserSharedCookie objects and their properties. + * Get a list of the browserSharedCookie objects and their properties. This API is supported in the following national cloud deployments. */ class SharedCookiesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Item/BrowserSiteItemRequestBuilder.php b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Item/BrowserSiteItemRequestBuilder.php index 8dbd5f86738..b7de523fb32 100644 --- a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Item/BrowserSiteItemRequestBuilder.php +++ b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Item/BrowserSiteItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a browserSite from a browserSiteList. + * Delete a browserSite from a browserSiteList. This API is supported in the following national cloud deployments. * @param BrowserSiteItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/browsersitelist-delete-sites?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?BrowserSiteItemRequestBuilderDeleteRequestConfiguration } /** - * Get a browserSite that resides on a browserSiteList. + * Get a browserSite that resides on a browserSiteList. This API is supported in the following national cloud deployments. * @param BrowserSiteItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/browsersite-get?view=graph-rest-1.0 Find more info here @@ -70,7 +70,7 @@ public function get(?BrowserSiteItemRequestBuilderGetRequestConfiguration $reque } /** - * Update the properties of a browserSite object. + * Update the properties of a browserSite object. This API is supported in the following national cloud deployments. * @param BrowserSite $body The request body * @param BrowserSiteItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -90,7 +90,7 @@ public function patch(BrowserSite $body, ?BrowserSiteItemRequestBuilderPatchRequ } /** - * Delete a browserSite from a browserSiteList. + * Delete a browserSite from a browserSiteList. This API is supported in the following national cloud deployments. * @param BrowserSiteItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?BrowserSiteItemRequestBuilderDeleteR } /** - * Get a browserSite that resides on a browserSiteList. + * Get a browserSite that resides on a browserSiteList. This API is supported in the following national cloud deployments. * @param BrowserSiteItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -128,7 +128,7 @@ public function toGetRequestInformation(?BrowserSiteItemRequestBuilderGetRequest } /** - * Update the properties of a browserSite object. + * Update the properties of a browserSite object. This API is supported in the following national cloud deployments. * @param BrowserSite $body The request body * @param BrowserSiteItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Item/BrowserSiteItemRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Item/BrowserSiteItemRequestBuilderGetQueryParameters.php index 34187c4d4bd..ad1fee6ae30 100644 --- a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Item/BrowserSiteItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Item/BrowserSiteItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a browserSite that resides on a browserSiteList. + * Get a browserSite that resides on a browserSiteList. This API is supported in the following national cloud deployments. */ class BrowserSiteItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/SitesRequestBuilder.php b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/SitesRequestBuilder.php index 6d81da80853..37dd12a1e4f 100644 --- a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/SitesRequestBuilder.php +++ b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/SitesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the browserSite objects and their properties. + * Get a list of the browserSite objects and their properties. This API is supported in the following national cloud deployments. * @param SitesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/browsersitelist-list-sites?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?SitesRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Create a new browserSite object in a browserSiteList. + * Create a new browserSite object in a browserSiteList. This API is supported in the following national cloud deployments. * @param BrowserSite $body The request body * @param SitesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(BrowserSite $body, ?SitesRequestBuilderPostRequestConfigura } /** - * Get a list of the browserSite objects and their properties. + * Get a list of the browserSite objects and their properties. This API is supported in the following national cloud deployments. * @param SitesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?SitesRequestBuilderGetRequestConfigurat } /** - * Create a new browserSite object in a browserSiteList. + * Create a new browserSite object in a browserSiteList. This API is supported in the following national cloud deployments. * @param BrowserSite $body The request body * @param SitesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/SitesRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/SitesRequestBuilderGetQueryParameters.php index eb73f1d6dde..092a22c3fad 100644 --- a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/SitesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/SitesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the browserSite objects and their properties. + * Get a list of the browserSite objects and their properties. This API is supported in the following national cloud deployments. */ class SitesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/SiteListsRequestBuilder.php b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/SiteListsRequestBuilder.php index ad2e61ee2a4..f13a876f584 100644 --- a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/SiteListsRequestBuilder.php +++ b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/SiteListsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the browserSiteList objects and their properties. + * Get a list of the browserSiteList objects and their properties. This API is supported in the following national cloud deployments. * @param SiteListsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/internetexplorermode-list-sitelists?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?SiteListsRequestBuilderGetRequestConfiguration $requestConf } /** - * Create a new browserSiteList object to support Internet Explorer mode. + * Create a new browserSiteList object to support Internet Explorer mode. This API is supported in the following national cloud deployments. * @param BrowserSiteList $body The request body * @param SiteListsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(BrowserSiteList $body, ?SiteListsRequestBuilderPostRequestC } /** - * Get a list of the browserSiteList objects and their properties. + * Get a list of the browserSiteList objects and their properties. This API is supported in the following national cloud deployments. * @param SiteListsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?SiteListsRequestBuilderGetRequestConfig } /** - * Create a new browserSiteList object to support Internet Explorer mode. + * Create a new browserSiteList object to support Internet Explorer mode. This API is supported in the following national cloud deployments. * @param BrowserSiteList $body The request body * @param SiteListsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/SiteListsRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/SiteListsRequestBuilderGetQueryParameters.php index 4e2ff45054f..b5d6fc6cd1c 100644 --- a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/SiteListsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/SiteListsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the browserSiteList objects and their properties. + * Get a list of the browserSiteList objects and their properties. This API is supported in the following national cloud deployments. */ class SiteListsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/HealthOverviewsRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/HealthOverviewsRequestBuilder.php index 25b063d9671..3df50abb3ef 100644 --- a/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/HealthOverviewsRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/HealthOverviewsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the serviceHealth resources from the healthOverviews navigation property. This operation provides the health report of all subscribed services for a tenant. + * Retrieve the serviceHealth resources from the healthOverviews navigation property. This operation provides the health report of all subscribed services for a tenant. This API is supported in the following national cloud deployments. * @param HealthOverviewsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/serviceannouncement-list-healthoverviews?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(ServiceHealth $body, ?HealthOverviewsRequestBuilderPostRequ } /** - * Retrieve the serviceHealth resources from the healthOverviews navigation property. This operation provides the health report of all subscribed services for a tenant. + * Retrieve the serviceHealth resources from the healthOverviews navigation property. This operation provides the health report of all subscribed services for a tenant. This API is supported in the following national cloud deployments. * @param HealthOverviewsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/HealthOverviewsRequestBuilderGetQueryParameters.php b/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/HealthOverviewsRequestBuilderGetQueryParameters.php index 33b49c561e7..236f16b535d 100644 --- a/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/HealthOverviewsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/HealthOverviewsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the serviceHealth resources from the healthOverviews navigation property. This operation provides the health report of all subscribed services for a tenant. + * Retrieve the serviceHealth resources from the healthOverviews navigation property. This operation provides the health report of all subscribed services for a tenant. This API is supported in the following national cloud deployments. */ class HealthOverviewsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/ServiceHealthItemRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/ServiceHealthItemRequestBuilder.php index f186cabff18..14a940f994e 100644 --- a/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/ServiceHealthItemRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/ServiceHealthItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?ServiceHealthItemRequestBuilderDeleteRequestConfiguratio } /** - * Retrieve the properties and relationships of a serviceHealth object. This operation provides the health information of a specified service for a tenant. + * Retrieve the properties and relationships of a serviceHealth object. This operation provides the health information of a specified service for a tenant. This API is supported in the following national cloud deployments. * @param ServiceHealthItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/servicehealth-get?view=graph-rest-1.0 Find more info here @@ -113,7 +113,7 @@ public function toDeleteRequestInformation(?ServiceHealthItemRequestBuilderDelet } /** - * Retrieve the properties and relationships of a serviceHealth object. This operation provides the health information of a specified service for a tenant. + * Retrieve the properties and relationships of a serviceHealth object. This operation provides the health information of a specified service for a tenant. This API is supported in the following national cloud deployments. * @param ServiceHealthItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/ServiceHealthItemRequestBuilderGetQueryParameters.php b/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/ServiceHealthItemRequestBuilderGetQueryParameters.php index 59ef33595d3..6c1c589e9b8 100644 --- a/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/ServiceHealthItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/ServiceHealthItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a serviceHealth object. This operation provides the health information of a specified service for a tenant. + * Retrieve the properties and relationships of a serviceHealth object. This operation provides the health information of a specified service for a tenant. This API is supported in the following national cloud deployments. */ class ServiceHealthItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Admin/ServiceAnnouncement/Issues/IssuesRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Issues/IssuesRequestBuilder.php index bb5cd46469f..e52dab14167 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Issues/IssuesRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Issues/IssuesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve serviceHealthIssue resources from the issues navigation property. This operation retrieves information about all service health issues that exist for the tenant. + * Retrieve serviceHealthIssue resources from the issues navigation property. This operation retrieves information about all service health issues that exist for the tenant. This API is supported in the following national cloud deployments. * @param IssuesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/serviceannouncement-list-issues?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(ServiceHealthIssue $body, ?IssuesRequestBuilderPostRequestC } /** - * Retrieve serviceHealthIssue resources from the issues navigation property. This operation retrieves information about all service health issues that exist for the tenant. + * Retrieve serviceHealthIssue resources from the issues navigation property. This operation retrieves information about all service health issues that exist for the tenant. This API is supported in the following national cloud deployments. * @param IssuesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Admin/ServiceAnnouncement/Issues/IssuesRequestBuilderGetQueryParameters.php b/src/Generated/Admin/ServiceAnnouncement/Issues/IssuesRequestBuilderGetQueryParameters.php index 826f804348c..9caff8469c4 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Issues/IssuesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Admin/ServiceAnnouncement/Issues/IssuesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve serviceHealthIssue resources from the issues navigation property. This operation retrieves information about all service health issues that exist for the tenant. + * Retrieve serviceHealthIssue resources from the issues navigation property. This operation retrieves information about all service health issues that exist for the tenant. This API is supported in the following national cloud deployments. */ class IssuesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Admin/ServiceAnnouncement/Issues/Item/ServiceHealthIssueItemRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Issues/Item/ServiceHealthIssueItemRequestBuilder.php index 94515d41819..0305c951473 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Issues/Item/ServiceHealthIssueItemRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Issues/Item/ServiceHealthIssueItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?ServiceHealthIssueItemRequestBuilderDeleteRequestConfigu } /** - * Retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue does not exist for the tenant. + * Retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue does not exist for the tenant. This API is supported in the following national cloud deployments. * @param ServiceHealthIssueItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/servicehealthissue-get?view=graph-rest-1.0 Find more info here @@ -113,7 +113,7 @@ public function toDeleteRequestInformation(?ServiceHealthIssueItemRequestBuilder } /** - * Retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue does not exist for the tenant. + * Retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue does not exist for the tenant. This API is supported in the following national cloud deployments. * @param ServiceHealthIssueItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Admin/ServiceAnnouncement/Issues/Item/ServiceHealthIssueItemRequestBuilderGetQueryParameters.php b/src/Generated/Admin/ServiceAnnouncement/Issues/Item/ServiceHealthIssueItemRequestBuilderGetQueryParameters.php index db60591fc58..252276cbdc0 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Issues/Item/ServiceHealthIssueItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Admin/ServiceAnnouncement/Issues/Item/ServiceHealthIssueItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue does not exist for the tenant. + * Retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue does not exist for the tenant. This API is supported in the following national cloud deployments. */ class ServiceHealthIssueItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchivePostResponse.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchivePostResponse.php new file mode 100644 index 00000000000..5b0927592bf --- /dev/null +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchivePostResponse.php @@ -0,0 +1,114 @@ +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 ArchivePostResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ArchivePostResponse { + return new ArchivePostResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return bool|null + */ + public function getValue(): ?bool { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_bool($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 { + $writer->writeBooleanValue('value', $this->getValue()); + $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 value property value. The value property + * @param bool|null $value Value to set for the value property. + */ + public function setValue(?bool $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveRequestBuilder.php index 1a0e2465e5a..3aeeb3517bf 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Archive a list of serviceUpdateMessages for the signed in user. + * Archive a list of serviceUpdateMessages for the signed in user. This API is supported in the following national cloud deployments. * @param ArchivePostRequestBody $body The request body * @param ArchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(ArchivePostRequestBody $body, ?ArchiveRequestBuilderPostReq '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [ArchiveResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [ArchivePostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Archive a list of serviceUpdateMessages for the signed in user. + * Archive a list of serviceUpdateMessages for the signed in user. This API is supported in the following national cloud deployments. * @param ArchivePostRequestBody $body The request body * @param ArchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveResponse.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveResponse.php deleted file mode 100644 index fc8ec5d105e..00000000000 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 ArchiveResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): ArchiveResponse { - return new ArchiveResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return bool|null - */ - public function getValue(): ?bool { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_bool($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 { - $writer->writeBooleanValue('value', $this->getValue()); - $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 value property value. The value property - * @param bool|null $value Value to set for the value property. - */ - public function setValue(?bool $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoritePostResponse.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoritePostResponse.php new file mode 100644 index 00000000000..f8861436a0a --- /dev/null +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoritePostResponse.php @@ -0,0 +1,114 @@ +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 FavoritePostResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): FavoritePostResponse { + return new FavoritePostResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return bool|null + */ + public function getValue(): ?bool { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_bool($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 { + $writer->writeBooleanValue('value', $this->getValue()); + $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 value property value. The value property + * @param bool|null $value Value to set for the value property. + */ + public function setValue(?bool $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteRequestBuilder.php index 11da069ef58..c305740ffde 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Change the status of a list of serviceUpdateMessages to favorite for the signed in user. + * Change the status of a list of serviceUpdateMessages to favorite for the signed in user. This API is supported in the following national cloud deployments. * @param FavoritePostRequestBody $body The request body * @param FavoriteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(FavoritePostRequestBody $body, ?FavoriteRequestBuilderPostR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [FavoriteResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [FavoritePostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Change the status of a list of serviceUpdateMessages to favorite for the signed in user. + * Change the status of a list of serviceUpdateMessages to favorite for the signed in user. This API is supported in the following national cloud deployments. * @param FavoritePostRequestBody $body The request body * @param FavoriteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteResponse.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteResponse.php deleted file mode 100644 index cb9f7137ceb..00000000000 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 FavoriteResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): FavoriteResponse { - return new FavoriteResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return bool|null - */ - public function getValue(): ?bool { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_bool($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 { - $writer->writeBooleanValue('value', $this->getValue()); - $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 value property value. The value property - * @param bool|null $value Value to set for the value property. - */ - public function setValue(?bool $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/AttachmentsRequestBuilder.php index af006d548ec..f76cf78a4f1 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/AttachmentsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the list of attachments associated with a service message. + * Get the list of attachments associated with a service message. This API is supported in the following national cloud deployments. * @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/serviceupdatemessage-list-attachments?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(ServiceAnnouncementAttachment $body, ?AttachmentsRequestBui } /** - * Get the list of attachments associated with a service message. + * Get the list of attachments associated with a service message. This API is supported in the following national cloud deployments. * @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php index 6a46aa97eb4..f777044a0f5 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the list of attachments associated with a service message. + * Get the list of attachments associated with a service message. This API is supported in the following national cloud deployments. */ class AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/ServiceAnnouncementAttachmentItemRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/ServiceAnnouncementAttachmentItemRequestBuilder.php index 23284e608f5..345c8adcd2e 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/ServiceAnnouncementAttachmentItemRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/ServiceAnnouncementAttachmentItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?ServiceAnnouncementAttachmentItemRequestBuilderDeleteReq } /** - * Read the properties and relationships of a serviceAnnouncementAttachment object. + * Read the properties and relationships of a serviceAnnouncementAttachment object. This API is supported in the following national cloud deployments. * @param ServiceAnnouncementAttachmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/serviceannouncementattachment-get?view=graph-rest-1.0 Find more info here @@ -113,7 +113,7 @@ public function toDeleteRequestInformation(?ServiceAnnouncementAttachmentItemReq } /** - * Read the properties and relationships of a serviceAnnouncementAttachment object. + * Read the properties and relationships of a serviceAnnouncementAttachment object. This API is supported in the following national cloud deployments. * @param ServiceAnnouncementAttachmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/ServiceAnnouncementAttachmentItemRequestBuilderGetQueryParameters.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/ServiceAnnouncementAttachmentItemRequestBuilderGetQueryParameters.php index f1151e29861..b8559e08c92 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/ServiceAnnouncementAttachmentItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/ServiceAnnouncementAttachmentItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a serviceAnnouncementAttachment object. + * Read the properties and relationships of a serviceAnnouncementAttachment object. This API is supported in the following national cloud deployments. */ class ServiceAnnouncementAttachmentItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Item/ServiceUpdateMessageItemRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Item/ServiceUpdateMessageItemRequestBuilder.php index 77fa11ffba9..07c84209593 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/Item/ServiceUpdateMessageItemRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/Item/ServiceUpdateMessageItemRequestBuilder.php @@ -66,7 +66,7 @@ public function delete(?ServiceUpdateMessageItemRequestBuilderDeleteRequestConfi } /** - * Retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message does not exist for the tenant. + * Retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message does not exist for the tenant. This API is supported in the following national cloud deployments. * @param ServiceUpdateMessageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/serviceupdatemessage-get?view=graph-rest-1.0 Find more info here @@ -121,7 +121,7 @@ public function toDeleteRequestInformation(?ServiceUpdateMessageItemRequestBuild } /** - * Retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message does not exist for the tenant. + * Retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message does not exist for the tenant. This API is supported in the following national cloud deployments. * @param ServiceUpdateMessageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Item/ServiceUpdateMessageItemRequestBuilderGetQueryParameters.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Item/ServiceUpdateMessageItemRequestBuilderGetQueryParameters.php index 1105d479657..fb6deb63670 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/Item/ServiceUpdateMessageItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/Item/ServiceUpdateMessageItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message does not exist for the tenant. + * Retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message does not exist for the tenant. This API is supported in the following national cloud deployments. */ class ServiceUpdateMessageItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadPostResponse.php b/src/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadPostResponse.php new file mode 100644 index 00000000000..ef6857c4bce --- /dev/null +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadPostResponse.php @@ -0,0 +1,114 @@ +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 MarkReadPostResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): MarkReadPostResponse { + return new MarkReadPostResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return bool|null + */ + public function getValue(): ?bool { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_bool($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 { + $writer->writeBooleanValue('value', $this->getValue()); + $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 value property value. The value property + * @param bool|null $value Value to set for the value property. + */ + public function setValue(?bool $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadRequestBuilder.php index 2da6ec31116..eb5546a882d 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Mark a list of serviceUpdateMessages as read for the signed in user. + * Mark a list of serviceUpdateMessages as read for the signed in user. This API is supported in the following national cloud deployments. * @param MarkReadPostRequestBody $body The request body * @param MarkReadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(MarkReadPostRequestBody $body, ?MarkReadRequestBuilderPostR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [MarkReadResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [MarkReadPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Mark a list of serviceUpdateMessages as read for the signed in user. + * Mark a list of serviceUpdateMessages as read for the signed in user. This API is supported in the following national cloud deployments. * @param MarkReadPostRequestBody $body The request body * @param MarkReadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadResponse.php b/src/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadResponse.php deleted file mode 100644 index a65eb8f61fd..00000000000 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 MarkReadResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): MarkReadResponse { - return new MarkReadResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return bool|null - */ - public function getValue(): ?bool { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_bool($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 { - $writer->writeBooleanValue('value', $this->getValue()); - $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 value property value. The value property - * @param bool|null $value Value to set for the value property. - */ - public function setValue(?bool $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadPostResponse.php b/src/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadPostResponse.php new file mode 100644 index 00000000000..7acf2efd2b0 --- /dev/null +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadPostResponse.php @@ -0,0 +1,114 @@ +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 MarkUnreadPostResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): MarkUnreadPostResponse { + return new MarkUnreadPostResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return bool|null + */ + public function getValue(): ?bool { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_bool($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 { + $writer->writeBooleanValue('value', $this->getValue()); + $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 value property value. The value property + * @param bool|null $value Value to set for the value property. + */ + public function setValue(?bool $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadRequestBuilder.php index b922066bfa2..3c0f1168567 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Mark a list of serviceUpdateMessages as unread for the signed in user. + * Mark a list of serviceUpdateMessages as unread for the signed in user. This API is supported in the following national cloud deployments. * @param MarkUnreadPostRequestBody $body The request body * @param MarkUnreadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(MarkUnreadPostRequestBody $body, ?MarkUnreadRequestBuilderP '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [MarkUnreadResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [MarkUnreadPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Mark a list of serviceUpdateMessages as unread for the signed in user. + * Mark a list of serviceUpdateMessages as unread for the signed in user. This API is supported in the following national cloud deployments. * @param MarkUnreadPostRequestBody $body The request body * @param MarkUnreadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadResponse.php b/src/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadResponse.php deleted file mode 100644 index cf2f1334e3a..00000000000 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 MarkUnreadResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): MarkUnreadResponse { - return new MarkUnreadResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return bool|null - */ - public function getValue(): ?bool { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_bool($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 { - $writer->writeBooleanValue('value', $this->getValue()); - $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 value property value. The value property - * @param bool|null $value Value to set for the value property. - */ - public function setValue(?bool $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/MessagesRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Messages/MessagesRequestBuilder.php index 7281c84799d..3f09e92c157 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/MessagesRequestBuilder.php @@ -101,7 +101,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the serviceUpdateMessage resources from the messages navigation property. This operation retrieves all service update messages that exist for the tenant. + * Retrieve the serviceUpdateMessage resources from the messages navigation property. This operation retrieves all service update messages that exist for the tenant. This API is supported in the following national cloud deployments. * @param MessagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/serviceannouncement-list-messages?view=graph-rest-1.0 Find more info here @@ -139,7 +139,7 @@ public function post(ServiceUpdateMessage $body, ?MessagesRequestBuilderPostRequ } /** - * Retrieve the serviceUpdateMessage resources from the messages navigation property. This operation retrieves all service update messages that exist for the tenant. + * Retrieve the serviceUpdateMessage resources from the messages navigation property. This operation retrieves all service update messages that exist for the tenant. This API is supported in the following national cloud deployments. * @param MessagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/MessagesRequestBuilderGetQueryParameters.php b/src/Generated/Admin/ServiceAnnouncement/Messages/MessagesRequestBuilderGetQueryParameters.php index 3cc5b89c633..0496790ebde 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/MessagesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/MessagesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the serviceUpdateMessage resources from the messages navigation property. This operation retrieves all service update messages that exist for the tenant. + * Retrieve the serviceUpdateMessage resources from the messages navigation property. This operation retrieves all service update messages that exist for the tenant. This API is supported in the following national cloud deployments. */ class MessagesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchivePostResponse.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchivePostResponse.php new file mode 100644 index 00000000000..e9465da8980 --- /dev/null +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchivePostResponse.php @@ -0,0 +1,114 @@ +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 UnarchivePostResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): UnarchivePostResponse { + return new UnarchivePostResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return bool|null + */ + public function getValue(): ?bool { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_bool($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 { + $writer->writeBooleanValue('value', $this->getValue()); + $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 value property value. The value property + * @param bool|null $value Value to set for the value property. + */ + public function setValue(?bool $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchiveRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchiveRequestBuilder.php index eb76c0cb25f..f7981b12cd5 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchiveRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchiveRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Unarchive a list of serviceUpdateMessages for the signed in user. + * Unarchive a list of serviceUpdateMessages for the signed in user. This API is supported in the following national cloud deployments. * @param UnarchivePostRequestBody $body The request body * @param UnarchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(UnarchivePostRequestBody $body, ?UnarchiveRequestBuilderPos '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [UnarchiveResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [UnarchivePostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Unarchive a list of serviceUpdateMessages for the signed in user. + * Unarchive a list of serviceUpdateMessages for the signed in user. This API is supported in the following national cloud deployments. * @param UnarchivePostRequestBody $body The request body * @param UnarchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchiveResponse.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchiveResponse.php deleted file mode 100644 index c9363bdfc1a..00000000000 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchiveResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 UnarchiveResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): UnarchiveResponse { - return new UnarchiveResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return bool|null - */ - public function getValue(): ?bool { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_bool($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 { - $writer->writeBooleanValue('value', $this->getValue()); - $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 value property value. The value property - * @param bool|null $value Value to set for the value property. - */ - public function setValue(?bool $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoritePostResponse.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoritePostResponse.php new file mode 100644 index 00000000000..87e0c560442 --- /dev/null +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoritePostResponse.php @@ -0,0 +1,114 @@ +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 UnfavoritePostResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): UnfavoritePostResponse { + return new UnfavoritePostResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return bool|null + */ + public function getValue(): ?bool { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_bool($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 { + $writer->writeBooleanValue('value', $this->getValue()); + $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 value property value. The value property + * @param bool|null $value Value to set for the value property. + */ + public function setValue(?bool $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoriteRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoriteRequestBuilder.php index ba16ce92595..b8802e51c9c 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoriteRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoriteRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove the favorite status of serviceUpdateMessages for the signed in user. + * Remove the favorite status of serviceUpdateMessages for the signed in user. This API is supported in the following national cloud deployments. * @param UnfavoritePostRequestBody $body The request body * @param UnfavoriteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(UnfavoritePostRequestBody $body, ?UnfavoriteRequestBuilderP '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [UnfavoriteResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [UnfavoritePostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Remove the favorite status of serviceUpdateMessages for the signed in user. + * Remove the favorite status of serviceUpdateMessages for the signed in user. This API is supported in the following national cloud deployments. * @param UnfavoritePostRequestBody $body The request body * @param UnfavoriteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoriteResponse.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoriteResponse.php deleted file mode 100644 index c9023a152bd..00000000000 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoriteResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 UnfavoriteResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): UnfavoriteResponse { - return new UnfavoriteResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return bool|null - */ - public function getValue(): ?bool { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_bool($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 { - $writer->writeBooleanValue('value', $this->getValue()); - $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 value property value. The value property - * @param bool|null $value Value to set for the value property. - */ - public function setValue(?bool $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Admin/Sharepoint/Settings/SettingsRequestBuilder.php b/src/Generated/Admin/Sharepoint/Settings/SettingsRequestBuilder.php index 4af851df8d5..52cc01eff67 100644 --- a/src/Generated/Admin/Sharepoint/Settings/SettingsRequestBuilder.php +++ b/src/Generated/Admin/Sharepoint/Settings/SettingsRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?SettingsRequestBuilderDeleteRequestConfiguration $reques } /** - * Get the tenant-level settings for SharePoint and OneDrive. + * Get the tenant-level settings for SharePoint and OneDrive. This API is supported in the following national cloud deployments. * @param SettingsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/sharepointsettings-get?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?SettingsRequestBuilderGetRequestConfiguration $requestConfi } /** - * Update one or more tenant-level settings for SharePoint and OneDrive. + * Update one or more tenant-level settings for SharePoint and OneDrive. This API is supported in the following national cloud deployments. * @param SharepointSettings $body The request body * @param SettingsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?SettingsRequestBuilderDeleteRequestC } /** - * Get the tenant-level settings for SharePoint and OneDrive. + * Get the tenant-level settings for SharePoint and OneDrive. This API is supported in the following national cloud deployments. * @param SettingsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -127,7 +127,7 @@ public function toGetRequestInformation(?SettingsRequestBuilderGetRequestConfigu } /** - * Update one or more tenant-level settings for SharePoint and OneDrive. + * Update one or more tenant-level settings for SharePoint and OneDrive. This API is supported in the following national cloud deployments. * @param SharepointSettings $body The request body * @param SettingsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Admin/Sharepoint/Settings/SettingsRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Sharepoint/Settings/SettingsRequestBuilderGetQueryParameters.php index 68bf30ed6bb..0e35c416b52 100644 --- a/src/Generated/Admin/Sharepoint/Settings/SettingsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Admin/Sharepoint/Settings/SettingsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the tenant-level settings for SharePoint and OneDrive. + * Get the tenant-level settings for SharePoint and OneDrive. This API is supported in the following national cloud deployments. */ class SettingsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Agreements/Item/Acceptances/AcceptancesRequestBuilder.php b/src/Generated/Agreements/Item/Acceptances/AcceptancesRequestBuilder.php index 308892beab0..e70edcf9c9f 100644 --- a/src/Generated/Agreements/Item/Acceptances/AcceptancesRequestBuilder.php +++ b/src/Generated/Agreements/Item/Acceptances/AcceptancesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the details about the acceptance records for a specific agreement. + * Get the details about the acceptance records for a specific agreement. This API is supported in the following national cloud deployments. * @param AcceptancesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/agreement-list-acceptances?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(AgreementAcceptance $body, ?AcceptancesRequestBuilderPostRe } /** - * Get the details about the acceptance records for a specific agreement. + * Get the details about the acceptance records for a specific agreement. This API is supported in the following national cloud deployments. * @param AcceptancesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Agreements/Item/Acceptances/AcceptancesRequestBuilderGetQueryParameters.php b/src/Generated/Agreements/Item/Acceptances/AcceptancesRequestBuilderGetQueryParameters.php index 9f5a72eb9ac..542e105c5f9 100644 --- a/src/Generated/Agreements/Item/Acceptances/AcceptancesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Agreements/Item/Acceptances/AcceptancesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the details about the acceptance records for a specific agreement. + * Get the details about the acceptance records for a specific agreement. This API is supported in the following national cloud deployments. */ class AcceptancesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Agreements/Item/File/FileRequestBuilder.php b/src/Generated/Agreements/Item/File/FileRequestBuilder.php index da1e0356442..3b8ca575b80 100644 --- a/src/Generated/Agreements/Item/File/FileRequestBuilder.php +++ b/src/Generated/Agreements/Item/File/FileRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?FileRequestBuilderDeleteRequestConfiguration $requestCon } /** - * Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the Accept-Language header. + * Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the Accept-Language header. This API is supported in the following national cloud deployments. * @param FileRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/agreementfile-get?view=graph-rest-1.0 Find more info here @@ -113,7 +113,7 @@ public function toDeleteRequestInformation(?FileRequestBuilderDeleteRequestConfi } /** - * Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the Accept-Language header. + * Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the Accept-Language header. This API is supported in the following national cloud deployments. * @param FileRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Agreements/Item/File/FileRequestBuilderGetQueryParameters.php b/src/Generated/Agreements/Item/File/FileRequestBuilderGetQueryParameters.php index aaaa81e521d..f4e2795c4ee 100644 --- a/src/Generated/Agreements/Item/File/FileRequestBuilderGetQueryParameters.php +++ b/src/Generated/Agreements/Item/File/FileRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the Accept-Language header. + * Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the Accept-Language header. This API is supported in the following national cloud deployments. */ class FileRequestBuilderGetQueryParameters { diff --git a/src/Generated/Agreements/Item/File/Localizations/LocalizationsRequestBuilder.php b/src/Generated/Agreements/Item/File/Localizations/LocalizationsRequestBuilder.php index cdf9cdc4dd5..e8243cfdc73 100644 --- a/src/Generated/Agreements/Item/File/Localizations/LocalizationsRequestBuilder.php +++ b/src/Generated/Agreements/Item/File/Localizations/LocalizationsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the default and localized agreement files. + * Get a list of the default and localized agreement files. This API is supported in the following national cloud deployments. * @param LocalizationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/agreementfile-list-localizations?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(AgreementFileLocalization $body, ?LocalizationsRequestBuild } /** - * Get a list of the default and localized agreement files. + * Get a list of the default and localized agreement files. This API is supported in the following national cloud deployments. * @param LocalizationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Agreements/Item/File/Localizations/LocalizationsRequestBuilderGetQueryParameters.php b/src/Generated/Agreements/Item/File/Localizations/LocalizationsRequestBuilderGetQueryParameters.php index ff838c2a2af..4bd3ece96a5 100644 --- a/src/Generated/Agreements/Item/File/Localizations/LocalizationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Agreements/Item/File/Localizations/LocalizationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the default and localized agreement files. + * Get a list of the default and localized agreement files. This API is supported in the following national cloud deployments. */ class LocalizationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Agreements/Item/Files/FilesRequestBuilder.php b/src/Generated/Agreements/Item/Files/FilesRequestBuilder.php index 185e434428f..2606e5f9496 100644 --- a/src/Generated/Agreements/Item/Files/FilesRequestBuilder.php +++ b/src/Generated/Agreements/Item/Files/FilesRequestBuilder.php @@ -71,7 +71,7 @@ public function get(?FilesRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Create a new localized agreement file. + * Create a new localized agreement file. This API is supported in the following national cloud deployments. * @param AgreementFileLocalization $body The request body * @param FilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -112,7 +112,7 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat } /** - * Create a new localized agreement file. + * Create a new localized agreement file. This API is supported in the following national cloud deployments. * @param AgreementFileLocalization $body The request body * @param FilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/AppDefinitionsRequestBuilder.php b/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/AppDefinitionsRequestBuilder.php index 2835d50e07b..aa3c59227d1 100644 --- a/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/AppDefinitionsRequestBuilder.php +++ b/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/AppDefinitionsRequestBuilder.php @@ -71,7 +71,7 @@ public function get(?AppDefinitionsRequestBuilderGetRequestConfiguration $reques } /** - * Update an app previously published to the Microsoft Teams app catalog. To update an app, the distributionMethod property for the app must be set to organization. This API specifically updates an app published to your organization's app catalog (the tenant app catalog). + * Update an app previously published to the Microsoft Teams app catalog. To update an app, the distributionMethod property for the app must be set to organization. This API specifically updates an app published to your organization's app catalog (the tenant app catalog). This API is supported in the following national cloud deployments. * @param TeamsAppDefinition $body The request body * @param AppDefinitionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -112,7 +112,7 @@ public function toGetRequestInformation(?AppDefinitionsRequestBuilderGetRequestC } /** - * Update an app previously published to the Microsoft Teams app catalog. To update an app, the distributionMethod property for the app must be set to organization. This API specifically updates an app published to your organization's app catalog (the tenant app catalog). + * Update an app previously published to the Microsoft Teams app catalog. To update an app, the distributionMethod property for the app must be set to organization. This API specifically updates an app published to your organization's app catalog (the tenant app catalog). This API is supported in the following national cloud deployments. * @param TeamsAppDefinition $body The request body * @param AppDefinitionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/Bot/BotRequestBuilder.php b/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/Bot/BotRequestBuilder.php index e70181cafab..943fd7a3489 100644 --- a/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/Bot/BotRequestBuilder.php +++ b/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/Bot/BotRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?BotRequestBuilderDeleteRequestConfiguration $requestConf } /** - * Get the bot associated with a specific definition of the TeamsApp. + * Get the bot associated with a specific definition of the TeamsApp. This API is supported in the following national cloud deployments. * @param BotRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/teamworkbot-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?BotRequestBuilderDeleteRequestConfig } /** - * Get the bot associated with a specific definition of the TeamsApp. + * Get the bot associated with a specific definition of the TeamsApp. This API is supported in the following national cloud deployments. * @param BotRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/Bot/BotRequestBuilderGetQueryParameters.php b/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/Bot/BotRequestBuilderGetQueryParameters.php index 975e30c3174..961f1b94058 100644 --- a/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/Bot/BotRequestBuilderGetQueryParameters.php +++ b/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/Bot/BotRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the bot associated with a specific definition of the TeamsApp. + * Get the bot associated with a specific definition of the TeamsApp. This API is supported in the following national cloud deployments. */ class BotRequestBuilderGetQueryParameters { diff --git a/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/TeamsAppDefinitionItemRequestBuilder.php b/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/TeamsAppDefinitionItemRequestBuilder.php index db9ea7eea9d..8a66f2cb625 100644 --- a/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/TeamsAppDefinitionItemRequestBuilder.php +++ b/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/TeamsAppDefinitionItemRequestBuilder.php @@ -76,7 +76,7 @@ public function get(?TeamsAppDefinitionItemRequestBuilderGetRequestConfiguration } /** - * Publish an app to the Microsoft Teams apps catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource will have a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center. + * Publish an app to the Microsoft Teams app catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource has a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center. This API is supported in the following national cloud deployments. * @param TeamsAppDefinition $body The request body * @param TeamsAppDefinitionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -134,7 +134,7 @@ public function toGetRequestInformation(?TeamsAppDefinitionItemRequestBuilderGet } /** - * Publish an app to the Microsoft Teams apps catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource will have a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center. + * Publish an app to the Microsoft Teams app catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource has a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center. This API is supported in the following national cloud deployments. * @param TeamsAppDefinition $body The request body * @param TeamsAppDefinitionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/AppCatalogs/TeamsApps/Item/TeamsAppItemRequestBuilder.php b/src/Generated/AppCatalogs/TeamsApps/Item/TeamsAppItemRequestBuilder.php index 5c9d3f84170..deb9a954d37 100644 --- a/src/Generated/AppCatalogs/TeamsApps/Item/TeamsAppItemRequestBuilder.php +++ b/src/Generated/AppCatalogs/TeamsApps/Item/TeamsAppItemRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete teamsApp + * This API is supported in the following national cloud deployments. * @param TeamsAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/teamsapp-delete?view=graph-rest-1.0 Find more info here @@ -96,7 +96,7 @@ public function patch(TeamsApp $body, ?TeamsAppItemRequestBuilderPatchRequestCon } /** - * Delete teamsApp + * This API is supported in the following national cloud deployments. * @param TeamsAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/AppCatalogs/TeamsApps/TeamsAppsRequestBuilder.php b/src/Generated/AppCatalogs/TeamsApps/TeamsAppsRequestBuilder.php index 31c91ea6df9..a94cde31100 100644 --- a/src/Generated/AppCatalogs/TeamsApps/TeamsAppsRequestBuilder.php +++ b/src/Generated/AppCatalogs/TeamsApps/TeamsAppsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List apps from the Microsoft Teams app catalog.This includes apps from the Microsoft Teams store, as well as apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. + * List apps from the Microsoft Teams app catalog.This includes apps from the Microsoft Teams store, as well as apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. This API is supported in the following national cloud deployments. * @param TeamsAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/appcatalogs-list-teamsapps?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?TeamsAppsRequestBuilderGetRequestConfiguration $requestConf } /** - * Publish an app to the Microsoft Teams apps catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource will have a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center. + * Publish an app to the Microsoft Teams app catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource has a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center. This API is supported in the following national cloud deployments. * @param TeamsApp $body The request body * @param TeamsAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(TeamsApp $body, ?TeamsAppsRequestBuilderPostRequestConfigur } /** - * List apps from the Microsoft Teams app catalog.This includes apps from the Microsoft Teams store, as well as apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. + * List apps from the Microsoft Teams app catalog.This includes apps from the Microsoft Teams store, as well as apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. This API is supported in the following national cloud deployments. * @param TeamsAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?TeamsAppsRequestBuilderGetRequestConfig } /** - * Publish an app to the Microsoft Teams apps catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource will have a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center. + * Publish an app to the Microsoft Teams app catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource has a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center. This API is supported in the following national cloud deployments. * @param TeamsApp $body The request body * @param TeamsAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/AppCatalogs/TeamsApps/TeamsAppsRequestBuilderGetQueryParameters.php b/src/Generated/AppCatalogs/TeamsApps/TeamsAppsRequestBuilderGetQueryParameters.php index b8904c45d4c..14ea92250e4 100644 --- a/src/Generated/AppCatalogs/TeamsApps/TeamsAppsRequestBuilderGetQueryParameters.php +++ b/src/Generated/AppCatalogs/TeamsApps/TeamsAppsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List apps from the Microsoft Teams app catalog.This includes apps from the Microsoft Teams store, as well as apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. + * List apps from the Microsoft Teams app catalog.This includes apps from the Microsoft Teams store, as well as apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. This API is supported in the following national cloud deployments. */ class TeamsAppsRequestBuilderGetQueryParameters { diff --git a/src/Generated/ApplicationTemplates/ApplicationTemplatesRequestBuilder.php b/src/Generated/ApplicationTemplates/ApplicationTemplatesRequestBuilder.php index d79079cf69d..69fe0f5dcb7 100644 --- a/src/Generated/ApplicationTemplates/ApplicationTemplatesRequestBuilder.php +++ b/src/Generated/ApplicationTemplates/ApplicationTemplatesRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of applicationTemplate objects from the Azure AD application gallery. + * Retrieve a list of applicationTemplate objects from the Azure AD application gallery. This API is supported in the following national cloud deployments. * @param ApplicationTemplatesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/applicationtemplate-list?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?ApplicationTemplatesRequestBuilderGetRequestConfiguration $ } /** - * Retrieve a list of applicationTemplate objects from the Azure AD application gallery. + * Retrieve a list of applicationTemplate objects from the Azure AD application gallery. This API is supported in the following national cloud deployments. * @param ApplicationTemplatesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/ApplicationTemplates/ApplicationTemplatesRequestBuilderGetQueryParameters.php b/src/Generated/ApplicationTemplates/ApplicationTemplatesRequestBuilderGetQueryParameters.php index 2f887a0fdbd..3a15e1d039c 100644 --- a/src/Generated/ApplicationTemplates/ApplicationTemplatesRequestBuilderGetQueryParameters.php +++ b/src/Generated/ApplicationTemplates/ApplicationTemplatesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of applicationTemplate objects from the Azure AD application gallery. + * Retrieve a list of applicationTemplate objects from the Azure AD application gallery. This API is supported in the following national cloud deployments. */ class ApplicationTemplatesRequestBuilderGetQueryParameters { diff --git a/src/Generated/ApplicationTemplates/Item/ApplicationTemplateItemRequestBuilder.php b/src/Generated/ApplicationTemplates/Item/ApplicationTemplateItemRequestBuilder.php index 8f4799fef4e..832bb57a2c4 100644 --- a/src/Generated/ApplicationTemplates/Item/ApplicationTemplateItemRequestBuilder.php +++ b/src/Generated/ApplicationTemplates/Item/ApplicationTemplateItemRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the properties of an applicationTemplate object. + * Retrieve the properties of an applicationTemplate object. This API is supported in the following national cloud deployments. * @param ApplicationTemplateItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/applicationtemplate-get?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function get(?ApplicationTemplateItemRequestBuilderGetRequestConfiguratio } /** - * Retrieve the properties of an applicationTemplate object. + * Retrieve the properties of an applicationTemplate object. This API is supported in the following national cloud deployments. * @param ApplicationTemplateItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/ApplicationTemplates/Item/ApplicationTemplateItemRequestBuilderGetQueryParameters.php b/src/Generated/ApplicationTemplates/Item/ApplicationTemplateItemRequestBuilderGetQueryParameters.php index 8e16a2abb37..9f91b85b3e5 100644 --- a/src/Generated/ApplicationTemplates/Item/ApplicationTemplateItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/ApplicationTemplates/Item/ApplicationTemplateItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties of an applicationTemplate object. + * Retrieve the properties of an applicationTemplate object. This API is supported in the following national cloud deployments. */ class ApplicationTemplateItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/ApplicationTemplates/Item/Instantiate/InstantiateRequestBuilder.php b/src/Generated/ApplicationTemplates/Item/Instantiate/InstantiateRequestBuilder.php index a4091abd0b7..852583d3e51 100644 --- a/src/Generated/ApplicationTemplates/Item/Instantiate/InstantiateRequestBuilder.php +++ b/src/Generated/ApplicationTemplates/Item/Instantiate/InstantiateRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Add an instance of an application from the Azure AD application gallery into your directory. You can also use this API to instantiate non-gallery apps. Use the following ID for the applicationTemplate object: 8adf8e6e-67b2-4cf2-a259-e3dc5476c621. + * Add an instance of an application from the Azure AD application gallery into your directory. You can also use this API to instantiate non-gallery apps. Use the following ID for the applicationTemplate object: 8adf8e6e-67b2-4cf2-a259-e3dc5476c621. This API is supported in the following national cloud deployments. * @param InstantiatePostRequestBody $body The request body * @param InstantiateRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(InstantiatePostRequestBody $body, ?InstantiateRequestBuilde } /** - * Add an instance of an application from the Azure AD application gallery into your directory. You can also use this API to instantiate non-gallery apps. Use the following ID for the applicationTemplate object: 8adf8e6e-67b2-4cf2-a259-e3dc5476c621. + * Add an instance of an application from the Azure AD application gallery into your directory. You can also use this API to instantiate non-gallery apps. Use the following ID for the applicationTemplate object: 8adf8e6e-67b2-4cf2-a259-e3dc5476c621. This API is supported in the following national cloud deployments. * @param InstantiatePostRequestBody $body The request body * @param InstantiateRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/ApplicationsRequestBuilder.php b/src/Generated/Applications/ApplicationsRequestBuilder.php index 0777915e6af..eb49f4acdfd 100644 --- a/src/Generated/Applications/ApplicationsRequestBuilder.php +++ b/src/Generated/Applications/ApplicationsRequestBuilder.php @@ -85,7 +85,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 is supported in the following national cloud deployments. * @param ApplicationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/application-list?view=graph-rest-1.0 Find more info here @@ -104,7 +104,7 @@ public function get(?ApplicationsRequestBuilderGetRequestConfiguration $requestC } /** - * Create a new application object. + * Create a new application object. This API is supported in the following national cloud deployments. * @param Application $body The request body * @param ApplicationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -124,7 +124,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 is supported in the following national cloud deployments. * @param ApplicationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -145,7 +145,7 @@ public function toGetRequestInformation(?ApplicationsRequestBuilderGetRequestCon } /** - * Create a new application object. + * Create a new application object. This API is supported in the following national cloud deployments. * @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 4c9f8d0d891..bce318bf69e 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 is supported in the following national cloud deployments. */ class ApplicationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Applications/Delta/DeltaGetResponse.php b/src/Generated/Applications/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..eed5d603001 --- /dev/null +++ b/src/Generated/Applications/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([Application::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, Application::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/Applications/Delta/DeltaRequestBuilder.php b/src/Generated/Applications/Delta/DeltaRequestBuilder.php index 98c8cc60304..dc5d724fa56 100644 --- a/src/Generated/Applications/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Applications/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Applications/Delta/DeltaResponse.php b/src/Generated/Applications/Delta/DeltaResponse.php deleted file mode 100644 index 4430b5fbe05..00000000000 --- a/src/Generated/Applications/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Application::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, Application::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/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php b/src/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php new file mode 100644 index 00000000000..f337e532161 --- /dev/null +++ b/src/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index 7ae1d81ec7f..c42e22594dd 100644 --- a/src/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetAvailableExtensionPropertiesPostRequestBody $body, ?GetA '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php b/src/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php deleted file mode 100644 index 64873fc1b59..00000000000 --- a/src/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/Applications/GetByIds/GetByIdsPostResponse.php b/src/Generated/Applications/GetByIds/GetByIdsPostResponse.php new file mode 100644 index 00000000000..a1e5f20914e --- /dev/null +++ b/src/Generated/Applications/GetByIds/GetByIdsPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/Applications/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/Applications/GetByIds/GetByIdsRequestBuilder.php index 7deac4ccc73..5945c1a15dc 100644 --- a/src/Generated/Applications/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/Applications/GetByIds/GetByIdsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetByIdsPostRequestBody $body, ?GetByIdsRequestBuilderPostR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/GetByIds/GetByIdsResponse.php b/src/Generated/Applications/GetByIds/GetByIdsResponse.php deleted file mode 100644 index 1ad2926c5d4..00000000000 --- a/src/Generated/Applications/GetByIds/GetByIdsResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/Applications/Item/AddKey/AddKeyRequestBuilder.php b/src/Generated/Applications/Item/AddKey/AddKeyRequestBuilder.php index ebbf619e0df..40c55cb9719 100644 --- a/src/Generated/Applications/Item/AddKey/AddKeyRequestBuilder.php +++ b/src/Generated/Applications/Item/AddKey/AddKeyRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Add a key credential to an application. This method, along with removeKey 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. Applications that don’t have any existing valid certificates (no certificates have been added yet, or all certificates have expired), won’t be able to use this service action. You can use the Update application operation to perform an update instead. + * Add a key credential to an application. This method, along with removeKey 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. Applications that don’t have any existing valid certificates (no certificates have been added yet, or all certificates have expired), won’t be able to use this service action. You can use the Update application operation to perform an update instead. This API is supported in the following national cloud deployments. * @param AddKeyPostRequestBody $body The request body * @param AddKeyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(AddKeyPostRequestBody $body, ?AddKeyRequestBuilderPostReque } /** - * Add a key credential to an application. This method, along with removeKey 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. Applications that don’t have any existing valid certificates (no certificates have been added yet, or all certificates have expired), won’t be able to use this service action. You can use the Update application operation to perform an update instead. + * Add a key credential to an application. This method, along with removeKey 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. Applications that don’t have any existing valid certificates (no certificates have been added yet, or all certificates have expired), won’t be able to use this service action. You can use the Update application operation to perform an update instead. This API is supported in the following national cloud deployments. * @param AddKeyPostRequestBody $body The request body * @param AddKeyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/AddPassword/AddPasswordRequestBuilder.php b/src/Generated/Applications/Item/AddPassword/AddPasswordRequestBuilder.php index 7e7fbfc72fb..408e3975aa3 100644 --- a/src/Generated/Applications/Item/AddPassword/AddPasswordRequestBuilder.php +++ b/src/Generated/Applications/Item/AddPassword/AddPasswordRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Adds a strong password or secret to an application. + * Adds a strong password or secret to an application. This API is supported in the following national cloud deployments. * @param AddPasswordPostRequestBody $body The request body * @param AddPasswordRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(AddPasswordPostRequestBody $body, ?AddPasswordRequestBuilde } /** - * Adds a strong password or secret to an application. + * Adds a strong password or secret to an application. This API is supported in the following national cloud deployments. * @param AddPasswordPostRequestBody $body The request body * @param AddPasswordRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.php b/src/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.php index d30892616b4..945de6c1356 100644 --- a/src/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. + * Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/appmanagementpolicy-delete-appliesto?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function delete(?RefRequestBuilderDeleteRequestConfiguration $requestConf } /** - * Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. + * Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilderDeleteQueryParameters.php b/src/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilderDeleteQueryParameters.php index 27a28fec35f..ade05e56ccb 100644 --- a/src/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilderDeleteQueryParameters.php +++ b/src/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilderDeleteQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. + * Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. This API is supported in the following national cloud deployments. */ class RefRequestBuilderDeleteQueryParameters { diff --git a/src/Generated/Applications/Item/AppManagementPolicies/Ref/RefRequestBuilder.php b/src/Generated/Applications/Item/AppManagementPolicies/Ref/RefRequestBuilder.php index 0d9b9a33993..dee58bbf1c2 100644 --- a/src/Generated/Applications/Item/AppManagementPolicies/Ref/RefRequestBuilder.php +++ b/src/Generated/Applications/Item/AppManagementPolicies/Ref/RefRequestBuilder.php @@ -51,7 +51,7 @@ public function get(?RefRequestBuilderGetRequestConfiguration $requestConfigurat } /** - * Assign an appManagementPolicy policy object to an application or service principal object. The application or service principal adopts this policy over the tenant-wide tenantAppManagementPolicy setting. Only one policy object can be assigned to an application or service principal. + * Assign an appManagementPolicy policy object to an application or service principal object. The application or service principal adopts this policy over the tenant-wide tenantAppManagementPolicy setting. Only one policy object can be assigned to an application or service principal. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } /** - * Assign an appManagementPolicy policy object to an application or service principal object. The application or service principal adopts this policy over the tenant-wide tenantAppManagementPolicy setting. Only one policy object can be assigned to an application or service principal. + * Assign an appManagementPolicy policy object to an application or service principal object. The application or service principal adopts this policy over the tenant-wide tenantAppManagementPolicy setting. Only one policy object can be assigned to an application or service principal. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/ApplicationItemRequestBuilder.php b/src/Generated/Applications/Item/ApplicationItemRequestBuilder.php index 0ffb0a4b866..abc691d0ac4 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 is supported in the following national cloud deployments. * @param ApplicationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/application-delete?view=graph-rest-1.0 Find more info here @@ -219,7 +219,7 @@ public function delete(?ApplicationItemRequestBuilderDeleteRequestConfiguration } /** - * Get the properties and relationships of an application object. + * Get the properties and relationships of an application object. This API is supported in the following national cloud deployments. * @param ApplicationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/application-get?view=graph-rest-1.0 Find more info here @@ -238,7 +238,7 @@ public function get(?ApplicationItemRequestBuilderGetRequestConfiguration $reque } /** - * Update the properties of an application object. + * Update the properties of an application object. This API is supported in the following national cloud deployments. * @param Application $body The request body * @param ApplicationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -258,7 +258,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 is supported in the following national cloud deployments. * @param ApplicationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -275,7 +275,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 is supported in the following national cloud deployments. * @param ApplicationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -296,7 +296,7 @@ public function toGetRequestInformation(?ApplicationItemRequestBuilderGetRequest } /** - * Update the properties of an application object. + * Update the properties of an application object. This API is supported in the following national cloud deployments. * @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..6a7b5e8a5b7 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 is supported in the following national cloud deployments. */ class ApplicationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php b/src/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php new file mode 100644 index 00000000000..4cef563266e --- /dev/null +++ b/src/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Applications/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php b/src/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php index d1ee3552035..6e5ea85b50a 100644 --- a/src/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php +++ b/src/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. * @param CheckMemberGroupsPostRequestBody $body The request body * @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberGroupsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberGroupsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. * @param CheckMemberGroupsPostRequestBody $body The request body * @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsResponse.php b/src/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsResponse.php deleted file mode 100644 index 4a1c35add98..00000000000 --- a/src/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Applications/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php b/src/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php new file mode 100644 index 00000000000..1e6bbde626b --- /dev/null +++ b/src/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Applications/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php b/src/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php index e75c62e5365..970e773e628 100644 --- a/src/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php +++ b/src/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php @@ -43,7 +43,7 @@ public function post(CheckMemberObjectsPostRequestBody $body, ?CheckMemberObject '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberObjectsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberObjectsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsResponse.php b/src/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsResponse.php deleted file mode 100644 index cf0b57a1e49..00000000000 --- a/src/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Applications/Item/ExtensionProperties/ExtensionPropertiesRequestBuilder.php b/src/Generated/Applications/Item/ExtensionProperties/ExtensionPropertiesRequestBuilder.php index b7129b3cc7a..eca2cefe3f3 100644 --- a/src/Generated/Applications/Item/ExtensionProperties/ExtensionPropertiesRequestBuilder.php +++ b/src/Generated/Applications/Item/ExtensionProperties/ExtensionPropertiesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the list of directory extension definitions, represented by extensionProperty objects on an application. + * Retrieve the list of directory extension definitions, represented by extensionProperty objects on an application. This API is supported in the following national cloud deployments. * @param ExtensionPropertiesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/application-list-extensionproperty?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ExtensionPropertiesRequestBuilderGetRequestConfiguration $r } /** - * Create a new directory extension definition, represented by an extensionProperty object. + * Create a new directory extension definition, represented by an extensionProperty object. This API is supported in the following national cloud deployments. * @param ExtensionProperty $body The request body * @param ExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(ExtensionProperty $body, ?ExtensionPropertiesRequestBuilder } /** - * Retrieve the list of directory extension definitions, represented by extensionProperty objects on an application. + * Retrieve the list of directory extension definitions, represented by extensionProperty objects on an application. This API is supported in the following national cloud deployments. * @param ExtensionPropertiesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ExtensionPropertiesRequestBuilderGetReq } /** - * Create a new directory extension definition, represented by an extensionProperty object. + * Create a new directory extension definition, represented by an extensionProperty object. This API is supported in the following national cloud deployments. * @param ExtensionProperty $body The request body * @param ExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/ExtensionProperties/ExtensionPropertiesRequestBuilderGetQueryParameters.php b/src/Generated/Applications/Item/ExtensionProperties/ExtensionPropertiesRequestBuilderGetQueryParameters.php index 41897b102a6..f67b8f955bd 100644 --- a/src/Generated/Applications/Item/ExtensionProperties/ExtensionPropertiesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Applications/Item/ExtensionProperties/ExtensionPropertiesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the list of directory extension definitions, represented by extensionProperty objects on an application. + * Retrieve the list of directory extension definitions, represented by extensionProperty objects on an application. This API is supported in the following national cloud deployments. */ class ExtensionPropertiesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Applications/Item/ExtensionProperties/Item/ExtensionPropertyItemRequestBuilder.php b/src/Generated/Applications/Item/ExtensionProperties/Item/ExtensionPropertyItemRequestBuilder.php index daef3e81914..b31de3b945b 100644 --- a/src/Generated/Applications/Item/ExtensionProperties/Item/ExtensionPropertyItemRequestBuilder.php +++ b/src/Generated/Applications/Item/ExtensionProperties/Item/ExtensionPropertyItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a directory extension definition represented by an extensionProperty object. You can delete only directory extensions that aren't synced from on-premises active directory (AD). + * Delete a directory extension definition represented by an extensionProperty object. You can delete only directory extensions that aren't synced from on-premises active directory (AD). This API is supported in the following national cloud deployments. * @param ExtensionPropertyItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/extensionproperty-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?ExtensionPropertyItemRequestBuilderDeleteRequestConfigur } /** - * Read a directory extension definition represented by an extensionProperty object. + * Read a directory extension definition represented by an extensionProperty object. This API is supported in the following national cloud deployments. * @param ExtensionPropertyItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/extensionproperty-get?view=graph-rest-1.0 Find more info here @@ -89,7 +89,7 @@ public function patch(ExtensionProperty $body, ?ExtensionPropertyItemRequestBuil } /** - * Delete a directory extension definition represented by an extensionProperty object. You can delete only directory extensions that aren't synced from on-premises active directory (AD). + * Delete a directory extension definition represented by an extensionProperty object. You can delete only directory extensions that aren't synced from on-premises active directory (AD). This API is supported in the following national cloud deployments. * @param ExtensionPropertyItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?ExtensionPropertyItemRequestBuilderD } /** - * Read a directory extension definition represented by an extensionProperty object. + * Read a directory extension definition represented by an extensionProperty object. This API is supported in the following national cloud deployments. * @param ExtensionPropertyItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Applications/Item/ExtensionProperties/Item/ExtensionPropertyItemRequestBuilderGetQueryParameters.php b/src/Generated/Applications/Item/ExtensionProperties/Item/ExtensionPropertyItemRequestBuilderGetQueryParameters.php index aef171b9882..54614b1f2e5 100644 --- a/src/Generated/Applications/Item/ExtensionProperties/Item/ExtensionPropertyItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Applications/Item/ExtensionProperties/Item/ExtensionPropertyItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read a directory extension definition represented by an extensionProperty object. + * Read a directory extension definition represented by an extensionProperty object. This API is supported in the following national cloud deployments. */ class ExtensionPropertyItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Applications/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.php b/src/Generated/Applications/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.php index 6533220aff3..a9ceeb4ca6b 100644 --- a/src/Generated/Applications/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.php +++ b/src/Generated/Applications/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the federatedIdentityCredential objects and their properties. + * Get a list of the federatedIdentityCredential objects and their properties. This API is supported in the following national cloud deployments. * @param FederatedIdentityCredentialsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/application-list-federatedidentitycredentials?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?FederatedIdentityCredentialsRequestBuilderGetRequestConfigu } /** - * Create a new federatedIdentityCredential object for an application. By configuring a trust relationship between your Azure AD application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + * Create a new federatedIdentityCredential object for an application. By configuring a trust relationship between your Azure AD application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. This API is supported in the following national cloud deployments. * @param FederatedIdentityCredential $body The request body * @param FederatedIdentityCredentialsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(FederatedIdentityCredential $body, ?FederatedIdentityCreden } /** - * Get a list of the federatedIdentityCredential objects and their properties. + * Get a list of the federatedIdentityCredential objects and their properties. This API is supported in the following national cloud deployments. * @param FederatedIdentityCredentialsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?FederatedIdentityCredentialsRequestBuil } /** - * Create a new federatedIdentityCredential object for an application. By configuring a trust relationship between your Azure AD application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + * Create a new federatedIdentityCredential object for an application. By configuring a trust relationship between your Azure AD application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. This API is supported in the following national cloud deployments. * @param FederatedIdentityCredential $body The request body * @param FederatedIdentityCredentialsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilderGetQueryParameters.php b/src/Generated/Applications/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilderGetQueryParameters.php index 5a209e05920..75d3d3faaf1 100644 --- a/src/Generated/Applications/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Applications/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the federatedIdentityCredential objects and their properties. + * Get a list of the federatedIdentityCredential objects and their properties. This API is supported in the following national cloud deployments. */ class FederatedIdentityCredentialsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.php b/src/Generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.php index faa78411c89..b6216abc865 100644 --- a/src/Generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.php +++ b/src/Generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a federatedIdentityCredential object from an application. + * Delete a federatedIdentityCredential object from an application. This API is supported in the following national cloud deployments. * @param FederatedIdentityCredentialItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/federatedidentitycredential-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?FederatedIdentityCredentialItemRequestBuilderDeleteReque } /** - * Read the properties and relationships of a federatedIdentityCredential object. + * Read the properties and relationships of a federatedIdentityCredential object. This API is supported in the following national cloud deployments. * @param FederatedIdentityCredentialItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/federatedidentitycredential-get?view=graph-rest-1.0 Find more info here @@ -70,7 +70,7 @@ public function get(?FederatedIdentityCredentialItemRequestBuilderGetRequestConf } /** - * Update the properties of a federatedIdentityCredential object. + * Update the properties of a federatedIdentityCredential object. This API is supported in the following national cloud deployments. * @param FederatedIdentityCredential $body The request body * @param FederatedIdentityCredentialItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -90,7 +90,7 @@ public function patch(FederatedIdentityCredential $body, ?FederatedIdentityCrede } /** - * Delete a federatedIdentityCredential object from an application. + * Delete a federatedIdentityCredential object from an application. This API is supported in the following national cloud deployments. * @param FederatedIdentityCredentialItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?FederatedIdentityCredentialItemReque } /** - * Read the properties and relationships of a federatedIdentityCredential object. + * Read the properties and relationships of a federatedIdentityCredential object. This API is supported in the following national cloud deployments. * @param FederatedIdentityCredentialItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -128,7 +128,7 @@ public function toGetRequestInformation(?FederatedIdentityCredentialItemRequestB } /** - * Update the properties of a federatedIdentityCredential object. + * Update the properties of a federatedIdentityCredential object. This API is supported in the following national cloud deployments. * @param FederatedIdentityCredential $body The request body * @param FederatedIdentityCredentialItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilderGetQueryParameters.php b/src/Generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilderGetQueryParameters.php index d8b85d9a11c..a6f461857a5 100644 --- a/src/Generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a federatedIdentityCredential object. + * Read the properties and relationships of a federatedIdentityCredential object. This API is supported in the following national cloud deployments. */ class FederatedIdentityCredentialItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsPostResponse.php b/src/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsPostResponse.php new file mode 100644 index 00000000000..93bf69238eb --- /dev/null +++ b/src/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Applications/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index 5f0fc1e81fc..595924b2f9b 100644 --- a/src/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsReque '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetMemberGroupsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetMemberGroupsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsResponse.php b/src/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsResponse.php deleted file mode 100644 index 05e4745a20a..00000000000 --- a/src/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Applications/Item/GetMemberObjects/GetMemberObjectsPostResponse.php b/src/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsPostResponse.php new file mode 100644 index 00000000000..8a637098ee8 --- /dev/null +++ b/src/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Applications/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php b/src/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php index 401272a9887..f647146cc9f 100644 --- a/src/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php +++ b/src/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. * @param GetMemberObjectsPostRequestBody $body The request body * @param GetMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetMemberObjectsPostRequestBody $body, ?GetMemberObjectsReq '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetMemberObjectsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetMemberObjectsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. * @param GetMemberObjectsPostRequestBody $body The request body * @param GetMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsResponse.php b/src/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsResponse.php deleted file mode 100644 index 5f814476086..00000000000 --- a/src/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Applications/Item/Owners/Item/Ref/RefRequestBuilder.php b/src/Generated/Applications/Item/Owners/Item/Ref/RefRequestBuilder.php index 17bd6276d51..5192380b18a 100644 --- a/src/Generated/Applications/Item/Owners/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Applications/Item/Owners/Item/Ref/RefRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove an owner from an application. As a recommended best practice, apps should have at least two owners. + * Remove an owner from an application. As a recommended best practice, apps should have at least two owners. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/application-delete-owners?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function delete(?RefRequestBuilderDeleteRequestConfiguration $requestConf } /** - * Remove an owner from an application. As a recommended best practice, apps should have at least two owners. + * Remove an owner from an application. As a recommended best practice, apps should have at least two owners. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Applications/Item/Owners/Item/Ref/RefRequestBuilderDeleteQueryParameters.php b/src/Generated/Applications/Item/Owners/Item/Ref/RefRequestBuilderDeleteQueryParameters.php index c573cfd073d..1fc447ab3a5 100644 --- a/src/Generated/Applications/Item/Owners/Item/Ref/RefRequestBuilderDeleteQueryParameters.php +++ b/src/Generated/Applications/Item/Owners/Item/Ref/RefRequestBuilderDeleteQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Remove an owner from an application. As a recommended best practice, apps should have at least two owners. + * Remove an owner from an application. As a recommended best practice, apps should have at least two owners. This API is supported in the following national cloud deployments. */ class RefRequestBuilderDeleteQueryParameters { diff --git a/src/Generated/Applications/Item/Owners/Ref/RefRequestBuilder.php b/src/Generated/Applications/Item/Owners/Ref/RefRequestBuilder.php index d4a55800013..53d6f439901 100644 --- a/src/Generated/Applications/Item/Owners/Ref/RefRequestBuilder.php +++ b/src/Generated/Applications/Item/Owners/Ref/RefRequestBuilder.php @@ -52,7 +52,7 @@ public function get(?RefRequestBuilderGetRequestConfiguration $requestConfigurat } /** - * Add an owner to an application by posting to the owners collection. + * Add an owner to an application by posting to the owners collection. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -93,7 +93,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } /** - * Add an owner to an application by posting to the owners collection. + * Add an owner to an application by posting to the owners collection. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.php b/src/Generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.php index af8514db661..10d3885094b 100644 --- a/src/Generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.php +++ b/src/Generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.php @@ -31,7 +31,7 @@ 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 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. This API is supported in the following national cloud deployments. * @param RemoveKeyPostRequestBody $body The request body * @param RemoveKeyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,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 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. This API is supported in the following national cloud deployments. * @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/RemovePassword/RemovePasswordRequestBuilder.php b/src/Generated/Applications/Item/RemovePassword/RemovePasswordRequestBuilder.php index a7e18c21153..ae1fd3a86f5 100644 --- a/src/Generated/Applications/Item/RemovePassword/RemovePasswordRequestBuilder.php +++ b/src/Generated/Applications/Item/RemovePassword/RemovePasswordRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove a password from an application. + * Remove a password from an application. This API is supported in the following national cloud deployments. * @param RemovePasswordPostRequestBody $body The request body * @param RemovePasswordRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(RemovePasswordPostRequestBody $body, ?RemovePasswordRequest } /** - * Remove a password from an application. + * Remove a password from an application. This API is supported in the following national cloud deployments. * @param RemovePasswordPostRequestBody $body The request body * @param RemovePasswordRequestBuilderPostRequestConfiguration|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 4cf221d3f00..e5aa882e224 100644 --- a/src/Generated/Applications/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Applications/Item/Restore/RestoreRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. * @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 090706e498b..77514b39567 100644 --- a/src/Generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherRequestBuilder.php +++ b/src/Generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherRequestBuilder.php @@ -31,7 +31,7 @@ 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 verifiedPublisher on an application. For more information, including prerequisites to setting a verified publisher, see Publisher verification. This API is supported in the following national cloud deployments. * @param SetVerifiedPublisherPostRequestBody $body The request body * @param SetVerifiedPublisherRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,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 verifiedPublisher on an application. For more information, including prerequisites to setting a verified publisher, see Publisher verification. This API is supported in the following national cloud deployments. * @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/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.php index 423734d46c7..8d3cd3041a8 100644 --- a/src/Generated/Applications/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Acquire an OAuth access token to authorize the Azure AD provisioning service to provision users into an application. + * Acquire an OAuth access token to authorize the Azure AD provisioning service to provision users into an application. This API is supported in the following national cloud deployments. * @param AcquireAccessTokenPostRequestBody $body The request body * @param AcquireAccessTokenRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(AcquireAccessTokenPostRequestBody $body, ?AcquireAccessToke } /** - * Acquire an OAuth access token to authorize the Azure AD provisioning service to provision users into an application. + * Acquire an OAuth access token to authorize the Azure AD provisioning service to provision users into an application. This API is supported in the following national cloud deployments. * @param AcquireAccessTokenPostRequestBody $body The request body * @param AcquireAccessTokenRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Pause/PauseRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Pause/PauseRequestBuilder.php index 8adeb21acf4..6aefba915dd 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Pause/PauseRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Pause/PauseRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Temporarily stop a running synchronization job. All the progress, including job state, is persisted, and the job will continue from where it left off when a start call is made. + * Temporarily stop a running synchronization job. All the progress, including job state, is persisted, and the job will continue from where it left off when a start call is made. This API is supported in the following national cloud deployments. * @param PauseRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/synchronization-synchronizationjob-pause?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?PauseRequestBuilderPostRequestConfiguration $requestConfig } /** - * Temporarily stop a running synchronization job. All the progress, including job state, is persisted, and the job will continue from where it left off when a start call is made. + * Temporarily stop a running synchronization job. All the progress, including job state, is persisted, and the job will continue from where it left off when a start call is made. This API is supported in the following national cloud deployments. * @param PauseRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.php index b86c287437f..0f641f74618 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Select a user and provision the account on-demand. The rate limit for this API is 5 requests per 10 seconds. + * Select a user and provision the account on-demand. The rate limit for this API is 5 requests per 10 seconds. This API is supported in the following national cloud deployments. * @param ProvisionOnDemandPostRequestBody $body The request body * @param ProvisionOnDemandRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(ProvisionOnDemandPostRequestBody $body, ?ProvisionOnDemandR } /** - * Select a user and provision the account on-demand. The rate limit for this API is 5 requests per 10 seconds. + * Select a user and provision the account on-demand. The rate limit for this API is 5 requests per 10 seconds. This API is supported in the following national cloud deployments. * @param ProvisionOnDemandPostRequestBody $body The request body * @param ProvisionOnDemandRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.php index 6f5a9cd4de6..344aab39ee1 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restart a stopped synchronization job, forcing it to reprocess all the objects in the directory. Optionally clears existing the synchronization state and previous errors. + * Restart a stopped synchronization job, forcing it to reprocess all the objects in the directory. Optionally clears existing the synchronization state and previous errors. This API is supported in the following national cloud deployments. * @param RestartPostRequestBody $body The request body * @param RestartRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(RestartPostRequestBody $body, ?RestartRequestBuilderPostReq } /** - * Restart a stopped synchronization job, forcing it to reprocess all the objects in the directory. Optionally clears existing the synchronization state and previous errors. + * Restart a stopped synchronization job, forcing it to reprocess all the objects in the directory. Optionally clears existing the synchronization state and previous errors. This API is supported in the following national cloud deployments. * @param RestartPostRequestBody $body The request body * @param RestartRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.php index 318b7a94e84..8aaa811f2a4 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Discover the latest schema definition for provisioning to an application. + * Discover the latest schema definition for provisioning to an application. This API is supported in the following national cloud deployments. * @param DiscoverRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/synchronization-directorydefinition-discover?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?DiscoverRequestBuilderPostRequestConfiguration $requestCon } /** - * Discover the latest schema definition for provisioning to an application. + * Discover the latest schema definition for provisioning to an application. This API is supported in the following national cloud deployments. * @param DiscoverRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsGetResponse.php b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsGetResponse.php new file mode 100644 index 00000000000..a97a19848e4 --- /dev/null +++ b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([FilterOperatorSchema::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, FilterOperatorSchema::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/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.php index 99d5a290943..a5726c03fc0 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?FilterOperatorsRequestBuilderGetRequestConfiguration $reque '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [FilterOperatorsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [FilterOperatorsGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsResponse.php b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsResponse.php deleted file mode 100644 index fb44ec6c125..00000000000 --- a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([FilterOperatorSchema::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, FilterOperatorSchema::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/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsGetResponse.php b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsGetResponse.php new file mode 100644 index 00000000000..c9ab86352f4 --- /dev/null +++ b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AttributeMappingFunctionSchema::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, AttributeMappingFunctionSchema::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/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.php index aa401e0ef2f..dbe083cb7e1 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?FunctionsRequestBuilderGetRequestConfiguration $requestConf '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [FunctionsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [FunctionsGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsResponse.php b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsResponse.php deleted file mode 100644 index 638fe9e62e2..00000000000 --- a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AttributeMappingFunctionSchema::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, AttributeMappingFunctionSchema::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/Applications/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.php index 4ba707cea56..4280ab794cc 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. + * Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. This API is supported in the following national cloud deployments. * @param ParseExpressionPostRequestBody $body The request body * @param ParseExpressionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(ParseExpressionPostRequestBody $body, ?ParseExpressionReque } /** - * Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. + * Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. This API is supported in the following national cloud deployments. * @param ParseExpressionPostRequestBody $body The request body * @param ParseExpressionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.php index c0fa3a6215a..8c24891042a 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.php @@ -82,7 +82,7 @@ public function delete(?SchemaRequestBuilderDeleteRequestConfiguration $requestC } /** - * Retrieve the schema for a given synchronization job or template. + * Retrieve the schema for a given synchronization job or template. This API is supported in the following national cloud deployments. * @param SchemaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/synchronization-synchronizationschema-get?view=graph-rest-1.0 Find more info here @@ -138,7 +138,7 @@ public function toDeleteRequestInformation(?SchemaRequestBuilderDeleteRequestCon } /** - * Retrieve the schema for a given synchronization job or template. + * Retrieve the schema for a given synchronization job or template. This API is supported in the following national cloud deployments. * @param SchemaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilderGetQueryParameters.php b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilderGetQueryParameters.php index 61e0ce6eb96..59ef1a556c6 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilderGetQueryParameters.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the schema for a given synchronization job or template. + * Retrieve the schema for a given synchronization job or template. This API is supported in the following national cloud deployments. */ class SchemaRequestBuilderGetQueryParameters { diff --git a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.php index 2c8749e9099..4f31390fe48 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Start an existing synchronization job. If the job is in a paused state, it will continue processing changes from the point where it was paused. If the job is in quarantine, the quarantine status will be cleared. Do not create scripts to call the start job continuously while it's running because that can cause the service to stop running. Use the start job only when the job is currently paused or in quarantine. + * Start an existing synchronization job. If the job is in a paused state, it continues processing changes from the point where it was paused. If the job is in quarantine, the quarantine status is cleared. Don't create scripts to call the start job continuously while it's running because that can cause the service to stop running. Use the start job only when the job is currently paused or in quarantine. This API is supported in the following national cloud deployments. * @param StartRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/synchronization-synchronizationjob-start?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?StartRequestBuilderPostRequestConfiguration $requestConfig } /** - * Start an existing synchronization job. If the job is in a paused state, it will continue processing changes from the point where it was paused. If the job is in quarantine, the quarantine status will be cleared. Do not create scripts to call the start job continuously while it's running because that can cause the service to stop running. Use the start job only when the job is currently paused or in quarantine. + * Start an existing synchronization job. If the job is in a paused state, it continues processing changes from the point where it was paused. If the job is in quarantine, the quarantine status is cleared. Don't create scripts to call the start job continuously while it's running because that can cause the service to stop running. Use the start job only when the job is currently paused or in quarantine. This API is supported in the following national cloud deployments. * @param StartRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Applications/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.php index 99ef1c2e2f4..b6884f72b84 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.php @@ -80,7 +80,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Stop the synchronization job, and permanently delete all the state associated with it. Synchronized accounts are left as-is. + * Stop the synchronization job, and permanently delete all the state associated with it. Synchronized accounts are left as-is. This API is supported in the following national cloud deployments. * @param SynchronizationJobItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/synchronization-synchronizationjob-delete?view=graph-rest-1.0 Find more info here @@ -99,7 +99,7 @@ public function delete(?SynchronizationJobItemRequestBuilderDeleteRequestConfigu } /** - * Retrieve the existing synchronization job and its properties. + * Retrieve the existing synchronization job and its properties. This API is supported in the following national cloud deployments. * @param SynchronizationJobItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/synchronization-synchronizationjob-get?view=graph-rest-1.0 Find more info here @@ -137,7 +137,7 @@ public function patch(SynchronizationJob $body, ?SynchronizationJobItemRequestBu } /** - * Stop the synchronization job, and permanently delete all the state associated with it. Synchronized accounts are left as-is. + * Stop the synchronization job, and permanently delete all the state associated with it. Synchronized accounts are left as-is. This API is supported in the following national cloud deployments. * @param SynchronizationJobItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -154,7 +154,7 @@ public function toDeleteRequestInformation(?SynchronizationJobItemRequestBuilder } /** - * Retrieve the existing synchronization job and its properties. + * Retrieve the existing synchronization job and its properties. This API is supported in the following national cloud deployments. * @param SynchronizationJobItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Applications/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilderGetQueryParameters.php b/src/Generated/Applications/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilderGetQueryParameters.php index e304c209330..35b08f2e868 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the existing synchronization job and its properties. + * Retrieve the existing synchronization job and its properties. This API is supported in the following national cloud deployments. */ class SynchronizationJobItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Applications/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.php index 53aecef814c..231e88a086d 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Validate that the credentials are valid in the tenant. + * Validate that the credentials are valid in the tenant. This API is supported in the following national cloud deployments. * @param ValidateCredentialsPostRequestBody $body The request body * @param ValidateCredentialsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ValidateCredentialsPostRequestBody $body, ?ValidateCredenti } /** - * Validate that the credentials are valid in the tenant. + * Validate that the credentials are valid in the tenant. This API is supported in the following national cloud deployments. * @param ValidateCredentialsPostRequestBody $body The request body * @param ValidateCredentialsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/Synchronization/Jobs/JobsRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Jobs/JobsRequestBuilder.php index 99953860cd6..26cde2f760c 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/JobsRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/JobsRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List existing jobs for a given application instance (service principal). + * List existing jobs for a given application instance (service principal). This API is supported in the following national cloud deployments. * @param JobsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/synchronization-synchronization-list-jobs?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?JobsRequestBuilderGetRequestConfiguration $requestConfigura } /** - * Create new synchronization job with a default synchronization schema. The job is created in a disabled state. Call Start job to start synchronization. + * Create new synchronization job with a default synchronization schema. The job is created in a disabled state. Call Start job to start synchronization. This API is supported in the following national cloud deployments. * @param SynchronizationJob $body The request body * @param JobsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(SynchronizationJob $body, ?JobsRequestBuilderPostRequestCon } /** - * List existing jobs for a given application instance (service principal). + * List existing jobs for a given application instance (service principal). This API is supported in the following national cloud deployments. * @param JobsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?JobsRequestBuilderGetRequestConfigurati } /** - * Create new synchronization job with a default synchronization schema. The job is created in a disabled state. Call Start job to start synchronization. + * Create new synchronization job with a default synchronization schema. The job is created in a disabled state. Call Start job to start synchronization. This API is supported in the following national cloud deployments. * @param SynchronizationJob $body The request body * @param JobsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/Synchronization/Jobs/JobsRequestBuilderGetQueryParameters.php b/src/Generated/Applications/Item/Synchronization/Jobs/JobsRequestBuilderGetQueryParameters.php index 2a960132db2..af89a977bb1 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/JobsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/JobsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List existing jobs for a given application instance (service principal). + * List existing jobs for a given application instance (service principal). This API is supported in the following national cloud deployments. */ class JobsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.php index f0d1a5b61a7..77694fd20b6 100644 --- a/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Discover the latest schema definition for provisioning to an application. + * Discover the latest schema definition for provisioning to an application. This API is supported in the following national cloud deployments. * @param DiscoverRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/synchronization-directorydefinition-discover?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?DiscoverRequestBuilderPostRequestConfiguration $requestCon } /** - * Discover the latest schema definition for provisioning to an application. + * Discover the latest schema definition for provisioning to an application. This API is supported in the following national cloud deployments. * @param DiscoverRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsGetResponse.php b/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsGetResponse.php new file mode 100644 index 00000000000..303cd98bb6d --- /dev/null +++ b/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([FilterOperatorSchema::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, FilterOperatorSchema::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/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.php index de658e5eaeb..e1f1888586d 100644 --- a/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?FilterOperatorsRequestBuilderGetRequestConfiguration $reque '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [FilterOperatorsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [FilterOperatorsGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsResponse.php b/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsResponse.php deleted file mode 100644 index f02d2f129f8..00000000000 --- a/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([FilterOperatorSchema::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, FilterOperatorSchema::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/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsGetResponse.php b/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsGetResponse.php new file mode 100644 index 00000000000..101de4055d9 --- /dev/null +++ b/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AttributeMappingFunctionSchema::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, AttributeMappingFunctionSchema::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/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.php index 3943edf0692..c9002934a7a 100644 --- a/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?FunctionsRequestBuilderGetRequestConfiguration $requestConf '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [FunctionsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [FunctionsGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsResponse.php b/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsResponse.php deleted file mode 100644 index 81590c872a8..00000000000 --- a/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AttributeMappingFunctionSchema::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, AttributeMappingFunctionSchema::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/Applications/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.php index 859e61bc3c1..f944fc0aa51 100644 --- a/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. + * Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. This API is supported in the following national cloud deployments. * @param ParseExpressionPostRequestBody $body The request body * @param ParseExpressionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(ParseExpressionPostRequestBody $body, ?ParseExpressionReque } /** - * Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. + * Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. This API is supported in the following national cloud deployments. * @param ParseExpressionPostRequestBody $body The request body * @param ParseExpressionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.php index b1693682375..dc2f220ae93 100644 --- a/src/Generated/Applications/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?SynchronizationTemplateItemRequestBuilderDeleteRequestCo } /** - * Pre-configured synchronization settings for a particular application. + * Preconfigured synchronization settings for a particular application. * @param SynchronizationTemplateItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -76,7 +76,7 @@ public function get(?SynchronizationTemplateItemRequestBuilderGetRequestConfigur } /** - * Update (override) the synchronization template associated with a given application. + * Update (override) the synchronization template associated with a given application. This API is supported in the following national cloud deployments. * @param SynchronizationTemplate $body The request body * @param SynchronizationTemplateItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -113,7 +113,7 @@ public function toDeleteRequestInformation(?SynchronizationTemplateItemRequestBu } /** - * Pre-configured synchronization settings for a particular application. + * Preconfigured synchronization settings for a particular application. * @param SynchronizationTemplateItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -134,7 +134,7 @@ public function toGetRequestInformation(?SynchronizationTemplateItemRequestBuild } /** - * Update (override) the synchronization template associated with a given application. + * Update (override) the synchronization template associated with a given application. This API is supported in the following national cloud deployments. * @param SynchronizationTemplate $body The request body * @param SynchronizationTemplateItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilderGetQueryParameters.php b/src/Generated/Applications/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilderGetQueryParameters.php index cbba061eb0d..c9b62a0d78a 100644 --- a/src/Generated/Applications/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Applications/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Pre-configured synchronization settings for a particular application. + * Preconfigured synchronization settings for a particular application. */ class SynchronizationTemplateItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Applications/Item/Synchronization/Templates/TemplatesRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Templates/TemplatesRequestBuilder.php index 7323d58db89..f83948373e2 100644 --- a/src/Generated/Applications/Item/Synchronization/Templates/TemplatesRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Templates/TemplatesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List the synchronization templates associated with a given application or service principal. + * List the synchronization templates associated with a given application or service principal. This API is supported in the following national cloud deployments. * @param TemplatesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/synchronization-synchronization-list-templates?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(SynchronizationTemplate $body, ?TemplatesRequestBuilderPost } /** - * List the synchronization templates associated with a given application or service principal. + * List the synchronization templates associated with a given application or service principal. This API is supported in the following national cloud deployments. * @param TemplatesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Applications/Item/Synchronization/Templates/TemplatesRequestBuilderGetQueryParameters.php b/src/Generated/Applications/Item/Synchronization/Templates/TemplatesRequestBuilderGetQueryParameters.php index 6c5df816fbb..335f99056de 100644 --- a/src/Generated/Applications/Item/Synchronization/Templates/TemplatesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Applications/Item/Synchronization/Templates/TemplatesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List the synchronization templates associated with a given application or service principal. + * List the synchronization templates associated with a given application or service principal. This API is supported in the following national cloud deployments. */ class TemplatesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.php b/src/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.php index e81f77e3598..428b384cb2f 100644 --- a/src/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove a tokenIssuancePolicy from an application. + * Remove a tokenIssuancePolicy from an application. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/application-delete-tokenissuancepolicies?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function delete(?RefRequestBuilderDeleteRequestConfiguration $requestConf } /** - * Remove a tokenIssuancePolicy from an application. + * Remove a tokenIssuancePolicy from an application. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilderDeleteQueryParameters.php b/src/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilderDeleteQueryParameters.php index 00b91375172..60d6ed35edc 100644 --- a/src/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilderDeleteQueryParameters.php +++ b/src/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilderDeleteQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Remove a tokenIssuancePolicy from an application. + * Remove a tokenIssuancePolicy from an application. This API is supported in the following national cloud deployments. */ class RefRequestBuilderDeleteQueryParameters { diff --git a/src/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.php b/src/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.php index 45640b46b44..01a45ea55c1 100644 --- a/src/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.php +++ b/src/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.php @@ -33,7 +33,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List the tokenIssuancePolicy objects that are assigned to an application. + * List the tokenIssuancePolicy objects that are assigned to an application. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/application-list-tokenissuancepolicies?view=graph-rest-1.0 Find more info here @@ -52,7 +52,7 @@ public function get(?RefRequestBuilderGetRequestConfiguration $requestConfigurat } /** - * Assign a tokenIssuancePolicy to an application. + * Assign a tokenIssuancePolicy to an application. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -72,7 +72,7 @@ public function post(ReferenceCreate $body, ?RefRequestBuilderPostRequestConfigu } /** - * List the tokenIssuancePolicy objects that are assigned to an application. + * List the tokenIssuancePolicy objects that are assigned to an application. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -93,7 +93,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } /** - * Assign a tokenIssuancePolicy to an application. + * Assign a tokenIssuancePolicy to an application. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilderGetQueryParameters.php b/src/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilderGetQueryParameters.php index 3d2150f27b6..bcbc962b9e9 100644 --- a/src/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilderGetQueryParameters.php +++ b/src/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List the tokenIssuancePolicy objects that are assigned to an application. + * List the tokenIssuancePolicy objects that are assigned to an application. This API is supported in the following national cloud deployments. */ class RefRequestBuilderGetQueryParameters { diff --git a/src/Generated/Applications/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.php b/src/Generated/Applications/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.php index a9881e0f07e..81461cf12ce 100644 --- a/src/Generated/Applications/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.php +++ b/src/Generated/Applications/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.php @@ -60,7 +60,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List the tokenIssuancePolicy objects that are assigned to an application. + * List the tokenIssuancePolicy objects that are assigned to an application. This API is supported in the following national cloud deployments. * @param TokenIssuancePoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/application-list-tokenissuancepolicies?view=graph-rest-1.0 Find more info here @@ -79,7 +79,7 @@ public function get(?TokenIssuancePoliciesRequestBuilderGetRequestConfiguration } /** - * List the tokenIssuancePolicy objects that are assigned to an application. + * List the tokenIssuancePolicy objects that are assigned to an application. This API is supported in the following national cloud deployments. * @param TokenIssuancePoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Applications/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilderGetQueryParameters.php b/src/Generated/Applications/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilderGetQueryParameters.php index bed7206fbc5..ae0cc665e97 100644 --- a/src/Generated/Applications/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Applications/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List the tokenIssuancePolicy objects that are assigned to an application. + * List the tokenIssuancePolicy objects that are assigned to an application. This API is supported in the following national cloud deployments. */ class TokenIssuancePoliciesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.php b/src/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.php index ccabf243f9b..b2f9eee5b99 100644 --- a/src/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove a tokenLifetimePolicy from an application. + * Remove a tokenLifetimePolicy from an application. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/application-delete-tokenlifetimepolicies?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function delete(?RefRequestBuilderDeleteRequestConfiguration $requestConf } /** - * Remove a tokenLifetimePolicy from an application. + * Remove a tokenLifetimePolicy from an application. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilderDeleteQueryParameters.php b/src/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilderDeleteQueryParameters.php index ca691807339..fd7a7e4f4eb 100644 --- a/src/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilderDeleteQueryParameters.php +++ b/src/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilderDeleteQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Remove a tokenLifetimePolicy from an application. + * Remove a tokenLifetimePolicy from an application. This API is supported in the following national cloud deployments. */ class RefRequestBuilderDeleteQueryParameters { diff --git a/src/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.php b/src/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.php index e54c27610c5..85c05818f78 100644 --- a/src/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.php +++ b/src/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.php @@ -33,7 +33,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. + * List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/application-list-tokenlifetimepolicies?view=graph-rest-1.0 Find more info here @@ -52,7 +52,7 @@ public function get(?RefRequestBuilderGetRequestConfiguration $requestConfigurat } /** - * Assign a tokenLifetimePolicy to an application. You can have multiple tokenLifetimePolicy policies in a tenant but can assign only one tokenLifetimePolicy per application. + * Assign a tokenLifetimePolicy to an application. You can have multiple tokenLifetimePolicy policies in a tenant but can assign only one tokenLifetimePolicy per application. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -72,7 +72,7 @@ public function post(ReferenceCreate $body, ?RefRequestBuilderPostRequestConfigu } /** - * List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. + * List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -93,7 +93,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } /** - * Assign a tokenLifetimePolicy to an application. You can have multiple tokenLifetimePolicy policies in a tenant but can assign only one tokenLifetimePolicy per application. + * Assign a tokenLifetimePolicy to an application. You can have multiple tokenLifetimePolicy policies in a tenant but can assign only one tokenLifetimePolicy per application. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilderGetQueryParameters.php b/src/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilderGetQueryParameters.php index e4032916c07..082dfd24842 100644 --- a/src/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilderGetQueryParameters.php +++ b/src/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. + * List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. This API is supported in the following national cloud deployments. */ class RefRequestBuilderGetQueryParameters { diff --git a/src/Generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.php b/src/Generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.php index 1633d7440ba..e9afbc30b4e 100644 --- a/src/Generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.php +++ b/src/Generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.php @@ -60,7 +60,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. + * List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. This API is supported in the following national cloud deployments. * @param TokenLifetimePoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/application-list-tokenlifetimepolicies?view=graph-rest-1.0 Find more info here @@ -79,7 +79,7 @@ public function get(?TokenLifetimePoliciesRequestBuilderGetRequestConfiguration } /** - * List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. + * List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. This API is supported in the following national cloud deployments. * @param TokenLifetimePoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilderGetQueryParameters.php b/src/Generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilderGetQueryParameters.php index 893a129a766..f679f7bccca 100644 --- a/src/Generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. + * List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. This API is supported in the following national cloud deployments. */ class TokenLifetimePoliciesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.php b/src/Generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.php index a9b98a3eeb9..0640c274793 100644 --- a/src/Generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.php +++ b/src/Generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.php @@ -31,7 +31,7 @@ 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 application, removing all verified publisher properties. For more information, see Publisher verification. This API is supported in the following national cloud deployments. * @param UnsetVerifiedPublisherRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/application-unsetverifiedpublisher?view=graph-rest-1.0 Find more info here @@ -50,7 +50,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 application, removing all verified publisher properties. For more information, see Publisher verification. This API is supported in the following national cloud deployments. * @param UnsetVerifiedPublisherRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Applications/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/Applications/ValidateProperties/ValidatePropertiesRequestBuilder.php index 3fe99a79417..3427956a132 100644 --- a/src/Generated/Applications/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/Applications/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ValidatePropertiesPostRequestBody $body, ?ValidatePropertie } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|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 91cf7a42904..5093a481a40 100644 --- a/src/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.php +++ b/src/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.php @@ -35,7 +35,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 is supported in the following national cloud deployments. * @param ApplicationsWithAppIdRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/application-delete?view=graph-rest-1.0 Find more info here @@ -54,7 +54,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 is supported in the following national cloud deployments. * @param ApplicationsWithAppIdRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/application-get?view=graph-rest-1.0 Find more info here @@ -73,7 +73,7 @@ public function get(?ApplicationsWithAppIdRequestBuilderGetRequestConfiguration } /** - * Update the properties of an application object. + * Update the properties of an application object. This API is supported in the following national cloud deployments. * @param Application $body The request body * @param ApplicationsWithAppIdRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -93,7 +93,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 is supported in the following national cloud deployments. * @param ApplicationsWithAppIdRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -110,7 +110,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 is supported in the following national cloud deployments. * @param ApplicationsWithAppIdRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -131,7 +131,7 @@ public function toGetRequestInformation(?ApplicationsWithAppIdRequestBuilderGetR } /** - * Update the properties of an application object. + * Update the properties of an application object. This API is supported in the following national cloud deployments. * @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 b0b87a14213..5acdfcdceac 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 is supported in the following national cloud deployments. */ class ApplicationsWithAppIdRequestBuilderGetQueryParameters { diff --git a/src/Generated/AuditLogs/DirectoryAudits/DirectoryAuditsRequestBuilder.php b/src/Generated/AuditLogs/DirectoryAudits/DirectoryAuditsRequestBuilder.php index 2ce2928dd23..9d6b604c8f1 100644 --- a/src/Generated/AuditLogs/DirectoryAudits/DirectoryAuditsRequestBuilder.php +++ b/src/Generated/AuditLogs/DirectoryAudits/DirectoryAuditsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the list of audit logs generated by Azure Active Directory (Azure AD). This includes audit logs generated by various services within Azure AD, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on. + * Get the list of audit logs generated by Azure Active Directory (Azure AD). This includes audit logs generated by various services within Azure AD, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on. This API is supported in the following national cloud deployments. * @param DirectoryAuditsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directoryaudit-list?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(DirectoryAudit $body, ?DirectoryAuditsRequestBuilderPostReq } /** - * Get the list of audit logs generated by Azure Active Directory (Azure AD). This includes audit logs generated by various services within Azure AD, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on. + * Get the list of audit logs generated by Azure Active Directory (Azure AD). This includes audit logs generated by various services within Azure AD, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on. This API is supported in the following national cloud deployments. * @param DirectoryAuditsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/AuditLogs/DirectoryAudits/DirectoryAuditsRequestBuilderGetQueryParameters.php b/src/Generated/AuditLogs/DirectoryAudits/DirectoryAuditsRequestBuilderGetQueryParameters.php index a72f1f0fade..87dd82307b1 100644 --- a/src/Generated/AuditLogs/DirectoryAudits/DirectoryAuditsRequestBuilderGetQueryParameters.php +++ b/src/Generated/AuditLogs/DirectoryAudits/DirectoryAuditsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the list of audit logs generated by Azure Active Directory (Azure AD). This includes audit logs generated by various services within Azure AD, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on. + * Get the list of audit logs generated by Azure Active Directory (Azure AD). This includes audit logs generated by various services within Azure AD, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on. This API is supported in the following national cloud deployments. */ class DirectoryAuditsRequestBuilderGetQueryParameters { diff --git a/src/Generated/AuditLogs/DirectoryAudits/Item/DirectoryAuditItemRequestBuilder.php b/src/Generated/AuditLogs/DirectoryAudits/Item/DirectoryAuditItemRequestBuilder.php index f8741fe247e..99edd681979 100644 --- a/src/Generated/AuditLogs/DirectoryAudits/Item/DirectoryAuditItemRequestBuilder.php +++ b/src/Generated/AuditLogs/DirectoryAudits/Item/DirectoryAuditItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?DirectoryAuditItemRequestBuilderDeleteRequestConfigurati } /** - * Get a specific Azure Active Directory audit log item. This includes an audit log item generated by various services within Azure Active Directory like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on. + * Get a specific Azure Active Directory audit log item. This includes an audit log item generated by various services within Azure Active Directory like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on. This API is supported in the following national cloud deployments. * @param DirectoryAuditItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directoryaudit-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?DirectoryAuditItemRequestBuilderDele } /** - * Get a specific Azure Active Directory audit log item. This includes an audit log item generated by various services within Azure Active Directory like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on. + * Get a specific Azure Active Directory audit log item. This includes an audit log item generated by various services within Azure Active Directory like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on. This API is supported in the following national cloud deployments. * @param DirectoryAuditItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/AuditLogs/DirectoryAudits/Item/DirectoryAuditItemRequestBuilderGetQueryParameters.php b/src/Generated/AuditLogs/DirectoryAudits/Item/DirectoryAuditItemRequestBuilderGetQueryParameters.php index d262eb2fe0d..bd6ad6c617a 100644 --- a/src/Generated/AuditLogs/DirectoryAudits/Item/DirectoryAuditItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/AuditLogs/DirectoryAudits/Item/DirectoryAuditItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a specific Azure Active Directory audit log item. This includes an audit log item generated by various services within Azure Active Directory like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on. + * Get a specific Azure Active Directory audit log item. This includes an audit log item generated by various services within Azure Active Directory like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on. This API is supported in the following national cloud deployments. */ class DirectoryAuditItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/AuditLogs/Provisioning/ProvisioningRequestBuilder.php b/src/Generated/AuditLogs/Provisioning/ProvisioningRequestBuilder.php index 636ad807c0f..fd3839b4ebc 100644 --- a/src/Generated/AuditLogs/Provisioning/ProvisioningRequestBuilder.php +++ b/src/Generated/AuditLogs/Provisioning/ProvisioningRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get all provisioning events that occurred in your tenant, such as the deletion of a group in a target application or the creation of a user when provisioning user accounts from your HR system. + * Get all provisioning events that occurred in your tenant, such as the deletion of a group in a target application or the creation of a user when provisioning user accounts from your HR system. This API is supported in the following national cloud deployments. * @param ProvisioningRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/provisioningobjectsummary-list?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(ProvisioningObjectSummary $body, ?ProvisioningRequestBuilde } /** - * Get all provisioning events that occurred in your tenant, such as the deletion of a group in a target application or the creation of a user when provisioning user accounts from your HR system. + * Get all provisioning events that occurred in your tenant, such as the deletion of a group in a target application or the creation of a user when provisioning user accounts from your HR system. This API is supported in the following national cloud deployments. * @param ProvisioningRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/AuditLogs/Provisioning/ProvisioningRequestBuilderGetQueryParameters.php b/src/Generated/AuditLogs/Provisioning/ProvisioningRequestBuilderGetQueryParameters.php index 3697b1346d6..5274d9b31a3 100644 --- a/src/Generated/AuditLogs/Provisioning/ProvisioningRequestBuilderGetQueryParameters.php +++ b/src/Generated/AuditLogs/Provisioning/ProvisioningRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get all provisioning events that occurred in your tenant, such as the deletion of a group in a target application or the creation of a user when provisioning user accounts from your HR system. + * Get all provisioning events that occurred in your tenant, such as the deletion of a group in a target application or the creation of a user when provisioning user accounts from your HR system. This API is supported in the following national cloud deployments. */ class ProvisioningRequestBuilderGetQueryParameters { diff --git a/src/Generated/AuditLogs/SignIns/Item/SignInItemRequestBuilder.php b/src/Generated/AuditLogs/SignIns/Item/SignInItemRequestBuilder.php index 459a7d35005..e3d0c53c298 100644 --- a/src/Generated/AuditLogs/SignIns/Item/SignInItemRequestBuilder.php +++ b/src/Generated/AuditLogs/SignIns/Item/SignInItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?SignInItemRequestBuilderDeleteRequestConfiguration $requ } /** - * Retrieve a specific Azure AD user sign-in event for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. + * Retrieve a specific Azure AD user sign-in event for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. This API is supported in the following national cloud deployments. * @param SignInItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/signin-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?SignInItemRequestBuilderDeleteReques } /** - * Retrieve a specific Azure AD user sign-in event for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. + * Retrieve a specific Azure AD user sign-in event for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. This API is supported in the following national cloud deployments. * @param SignInItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/AuditLogs/SignIns/Item/SignInItemRequestBuilderGetQueryParameters.php b/src/Generated/AuditLogs/SignIns/Item/SignInItemRequestBuilderGetQueryParameters.php index 5e1dcad26d4..95d7b5d246f 100644 --- a/src/Generated/AuditLogs/SignIns/Item/SignInItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/AuditLogs/SignIns/Item/SignInItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a specific Azure AD user sign-in event for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. + * Retrieve a specific Azure AD user sign-in event for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. This API is supported in the following national cloud deployments. */ class SignInItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/AuditLogs/SignIns/SignInsRequestBuilder.php b/src/Generated/AuditLogs/SignIns/SignInsRequestBuilder.php index e185cecd011..9fef62bebab 100644 --- a/src/Generated/AuditLogs/SignIns/SignInsRequestBuilder.php +++ b/src/Generated/AuditLogs/SignIns/SignInsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the Azure AD user sign-ins for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. The maximum and default page size is 1,000 objects and by default, the most recent sign-ins are returned first. Only sign-in events that occurred within the Azure Active Directory (Azure AD) default retention period are available. + * Retrieve the Azure AD user sign-ins for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. The maximum and default page size is 1,000 objects and by default, the most recent sign-ins are returned first. Only sign-in events that occurred within the Azure Active Directory (Azure AD) default retention period are available. This API is supported in the following national cloud deployments. * @param SignInsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/signin-list?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(SignIn $body, ?SignInsRequestBuilderPostRequestConfiguratio } /** - * Retrieve the Azure AD user sign-ins for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. The maximum and default page size is 1,000 objects and by default, the most recent sign-ins are returned first. Only sign-in events that occurred within the Azure Active Directory (Azure AD) default retention period are available. + * Retrieve the Azure AD user sign-ins for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. The maximum and default page size is 1,000 objects and by default, the most recent sign-ins are returned first. Only sign-in events that occurred within the Azure Active Directory (Azure AD) default retention period are available. This API is supported in the following national cloud deployments. * @param SignInsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/AuditLogs/SignIns/SignInsRequestBuilderGetQueryParameters.php b/src/Generated/AuditLogs/SignIns/SignInsRequestBuilderGetQueryParameters.php index 8c89bb04e00..e39a9a02d71 100644 --- a/src/Generated/AuditLogs/SignIns/SignInsRequestBuilderGetQueryParameters.php +++ b/src/Generated/AuditLogs/SignIns/SignInsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the Azure AD user sign-ins for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. The maximum and default page size is 1,000 objects and by default, the most recent sign-ins are returned first. Only sign-in events that occurred within the Azure Active Directory (Azure AD) default retention period are available. + * Retrieve the Azure AD user sign-ins for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. The maximum and default page size is 1,000 objects and by default, the most recent sign-ins are returned first. Only sign-in events that occurred within the Azure Active Directory (Azure AD) default retention period are available. This API is supported in the following national cloud deployments. */ class SignInsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Chats/ChatsRequestBuilder.php b/src/Generated/Chats/ChatsRequestBuilder.php index ed311a15c0d..c652f0c672e 100644 --- a/src/Generated/Chats/ChatsRequestBuilder.php +++ b/src/Generated/Chats/ChatsRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. + * Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. This API is supported in the following national cloud deployments. * @param ChatsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chat-list?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?ChatsRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Create a new chat object. + * Create a new chat object. This API is supported in the following national cloud deployments. * @param Chat $body The request body * @param ChatsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(Chat $body, ?ChatsRequestBuilderPostRequestConfiguration $r } /** - * Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. + * Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. This API is supported in the following national cloud deployments. * @param ChatsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?ChatsRequestBuilderGetRequestConfigurat } /** - * Create a new chat object. + * Create a new chat object. This API is supported in the following national cloud deployments. * @param Chat $body The request body * @param ChatsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Chats/ChatsRequestBuilderGetQueryParameters.php b/src/Generated/Chats/ChatsRequestBuilderGetQueryParameters.php index ae7fc745ba7..d28807842d2 100644 --- a/src/Generated/Chats/ChatsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Chats/ChatsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. + * Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. This API is supported in the following national cloud deployments. */ class ChatsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Chats/GetAllMessages/GetAllMessagesGetResponse.php b/src/Generated/Chats/GetAllMessages/GetAllMessagesGetResponse.php new file mode 100644 index 00000000000..08bfc26fab6 --- /dev/null +++ b/src/Generated/Chats/GetAllMessages/GetAllMessagesGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ChatMessage::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, ChatMessage::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/Chats/GetAllMessages/GetAllMessagesRequestBuilder.php b/src/Generated/Chats/GetAllMessages/GetAllMessagesRequestBuilder.php index 86bb5be3f77..642d29e184d 100644 --- a/src/Generated/Chats/GetAllMessages/GetAllMessagesRequestBuilder.php +++ b/src/Generated/Chats/GetAllMessages/GetAllMessagesRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?GetAllMessagesRequestBuilderGetRequestConfiguration $reques '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetAllMessagesResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetAllMessagesGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Chats/GetAllMessages/GetAllMessagesResponse.php b/src/Generated/Chats/GetAllMessages/GetAllMessagesResponse.php deleted file mode 100644 index da4e4a6d74f..00000000000 --- a/src/Generated/Chats/GetAllMessages/GetAllMessagesResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ChatMessage::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, ChatMessage::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/Chats/Item/ChatItemRequestBuilder.php b/src/Generated/Chats/Item/ChatItemRequestBuilder.php index db766f0e8ae..0e6e51f3090 100644 --- a/src/Generated/Chats/Item/ChatItemRequestBuilder.php +++ b/src/Generated/Chats/Item/ChatItemRequestBuilder.php @@ -146,7 +146,7 @@ public function delete(?ChatItemRequestBuilderDeleteRequestConfiguration $reques } /** - * Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. + * Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. This API is supported in the following national cloud deployments. * @param ChatItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chat-get?view=graph-rest-1.0 Find more info here @@ -165,7 +165,7 @@ public function get(?ChatItemRequestBuilderGetRequestConfiguration $requestConfi } /** - * Update the properties of a chat object. + * Update the properties of a chat object. This API is supported in the following national cloud deployments. * @param Chat $body The request body * @param ChatItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -202,7 +202,7 @@ public function toDeleteRequestInformation(?ChatItemRequestBuilderDeleteRequestC } /** - * Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. + * Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. This API is supported in the following national cloud deployments. * @param ChatItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -223,7 +223,7 @@ public function toGetRequestInformation(?ChatItemRequestBuilderGetRequestConfigu } /** - * Update the properties of a chat object. + * Update the properties of a chat object. This API is supported in the following national cloud deployments. * @param Chat $body The request body * @param ChatItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Chats/Item/ChatItemRequestBuilderGetQueryParameters.php b/src/Generated/Chats/Item/ChatItemRequestBuilderGetQueryParameters.php index e5b3cfc9215..3d941c10194 100644 --- a/src/Generated/Chats/Item/ChatItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Chats/Item/ChatItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. + * Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. This API is supported in the following national cloud deployments. */ class ChatItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Chats/Item/HideForUser/HideForUserRequestBuilder.php b/src/Generated/Chats/Item/HideForUser/HideForUserRequestBuilder.php index 62300e8bdff..0d67d01c3f3 100644 --- a/src/Generated/Chats/Item/HideForUser/HideForUserRequestBuilder.php +++ b/src/Generated/Chats/Item/HideForUser/HideForUserRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Hide a chat for a user. + * Hide a chat for a user. This API is supported in the following national cloud deployments. * @param HideForUserPostRequestBody $body The request body * @param HideForUserRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(HideForUserPostRequestBody $body, ?HideForUserRequestBuilde } /** - * Hide a chat for a user. + * Hide a chat for a user. This API is supported in the following national cloud deployments. * @param HideForUserPostRequestBody $body The request body * @param HideForUserRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.php b/src/Generated/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.php index 0edaf0f415b..46dcfe99595 100644 --- a/src/Generated/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.php +++ b/src/Generated/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List all app installations within a chat. + * List all app installations within a chat. This API is supported in the following national cloud deployments. * @param InstalledAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chat-list-installedapps?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?InstalledAppsRequestBuilderGetRequestConfiguration $request } /** - * Install a teamsApp to the specified chat. + * Install a teamsApp to the specified chat. This API is supported in the following national cloud deployments. * @param TeamsAppInstallation $body The request body * @param InstalledAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(TeamsAppInstallation $body, ?InstalledAppsRequestBuilderPos } /** - * List all app installations within a chat. + * List all app installations within a chat. This API is supported in the following national cloud deployments. * @param InstalledAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?InstalledAppsRequestBuilderGetRequestCo } /** - * Install a teamsApp to the specified chat. + * Install a teamsApp to the specified chat. This API is supported in the following national cloud deployments. * @param TeamsAppInstallation $body The request body * @param InstalledAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Chats/Item/InstalledApps/InstalledAppsRequestBuilderGetQueryParameters.php b/src/Generated/Chats/Item/InstalledApps/InstalledAppsRequestBuilderGetQueryParameters.php index c87ac232e0d..997b517746e 100644 --- a/src/Generated/Chats/Item/InstalledApps/InstalledAppsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Chats/Item/InstalledApps/InstalledAppsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List all app installations within a chat. + * List all app installations within a chat. This API is supported in the following national cloud deployments. */ class InstalledAppsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php b/src/Generated/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php index 6266bad1456..fb67f6b3197 100644 --- a/src/Generated/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php +++ b/src/Generated/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php @@ -56,7 +56,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Uninstall an app installed within a chat. + * Uninstall an app installed within a chat. This API is supported in the following national cloud deployments. * @param TeamsAppInstallationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chat-delete-installedapps?view=graph-rest-1.0 Find more info here @@ -75,7 +75,7 @@ public function delete(?TeamsAppInstallationItemRequestBuilderDeleteRequestConfi } /** - * Get an app installed in a chat. + * Get an app installed in a chat. This API is supported in the following national cloud deployments. * @param TeamsAppInstallationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chat-get-installedapps?view=graph-rest-1.0 Find more info here @@ -113,7 +113,7 @@ public function patch(TeamsAppInstallation $body, ?TeamsAppInstallationItemReque } /** - * Uninstall an app installed within a chat. + * Uninstall an app installed within a chat. This API is supported in the following national cloud deployments. * @param TeamsAppInstallationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -130,7 +130,7 @@ public function toDeleteRequestInformation(?TeamsAppInstallationItemRequestBuild } /** - * Get an app installed in a chat. + * Get an app installed in a chat. This API is supported in the following national cloud deployments. * @param TeamsAppInstallationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilderGetQueryParameters.php b/src/Generated/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilderGetQueryParameters.php index b7aa79acb9f..37e0dd42534 100644 --- a/src/Generated/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an app installed in a chat. + * Get an app installed in a chat. This API is supported in the following national cloud deployments. */ class TeamsAppInstallationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.php b/src/Generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.php index 99bcd7c3da1..fef9a67d0d8 100644 --- a/src/Generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.php +++ b/src/Generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Upgrade an app installation within a chat. + * Upgrade an app installation within a chat. This API is supported in the following national cloud deployments. * @param UpgradePostRequestBody $body The request body * @param UpgradeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(UpgradePostRequestBody $body, ?UpgradeRequestBuilderPostReq } /** - * Upgrade an app installation within a chat. + * Upgrade an app installation within a chat. This API is supported in the following national cloud deployments. * @param UpgradePostRequestBody $body The request body * @param UpgradeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.php b/src/Generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.php index b0e86cf591f..a0594a04f66 100644 --- a/src/Generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.php +++ b/src/Generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Mark a chat as read for a user. + * Mark a chat as read for a user. This API is supported in the following national cloud deployments. * @param MarkChatReadForUserPostRequestBody $body The request body * @param MarkChatReadForUserRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(MarkChatReadForUserPostRequestBody $body, ?MarkChatReadForU } /** - * Mark a chat as read for a user. + * Mark a chat as read for a user. This API is supported in the following national cloud deployments. * @param MarkChatReadForUserPostRequestBody $body The request body * @param MarkChatReadForUserRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.php b/src/Generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.php index 22a0a71023e..442a26d1942 100644 --- a/src/Generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.php +++ b/src/Generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Mark a chat as unread for a user. + * Mark a chat as unread for a user. This API is supported in the following national cloud deployments. * @param MarkChatUnreadForUserPostRequestBody $body The request body * @param MarkChatUnreadForUserRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(MarkChatUnreadForUserPostRequestBody $body, ?MarkChatUnread } /** - * Mark a chat as unread for a user. + * Mark a chat as unread for a user. This API is supported in the following national cloud deployments. * @param MarkChatUnreadForUserPostRequestBody $body The request body * @param MarkChatUnreadForUserRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Chats/Item/Members/Add/AddPostResponse.php b/src/Generated/Chats/Item/Members/Add/AddPostResponse.php new file mode 100644 index 00000000000..230b90efdb6 --- /dev/null +++ b/src/Generated/Chats/Item/Members/Add/AddPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ActionResultPart::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, ActionResultPart::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/Chats/Item/Members/Add/AddRequestBuilder.php b/src/Generated/Chats/Item/Members/Add/AddRequestBuilder.php index 6a4450f5ec9..18767e8d727 100644 --- a/src/Generated/Chats/Item/Members/Add/AddRequestBuilder.php +++ b/src/Generated/Chats/Item/Members/Add/AddRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConf '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [AddResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [AddPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Chats/Item/Members/Add/AddResponse.php b/src/Generated/Chats/Item/Members/Add/AddResponse.php deleted file mode 100644 index 2a1d1326167..00000000000 --- a/src/Generated/Chats/Item/Members/Add/AddResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ActionResultPart::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, ActionResultPart::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/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.php index 7825a4ab4f9..57e5a8f758b 100644 --- a/src/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove a conversationMember from a chat. + * Remove a conversationMember from a chat. This API is supported in the following national cloud deployments. * @param ConversationMemberItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chat-delete-members?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?ConversationMemberItemRequestBuilderDeleteRequestConfigu } /** - * Retrieve a conversationMember from a chat or channel. + * Retrieve a conversationMember from a chat or channel. This API is supported in the following national cloud deployments. * @param ConversationMemberItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/conversationmember-get?view=graph-rest-1.0 Find more info here @@ -89,7 +89,7 @@ public function patch(ConversationMember $body, ?ConversationMemberItemRequestBu } /** - * Remove a conversationMember from a chat. + * Remove a conversationMember from a chat. This API is supported in the following national cloud deployments. * @param ConversationMemberItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?ConversationMemberItemRequestBuilder } /** - * Retrieve a conversationMember from a chat or channel. + * Retrieve a conversationMember from a chat or channel. This API is supported in the following national cloud deployments. * @param ConversationMemberItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilderGetQueryParameters.php b/src/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilderGetQueryParameters.php index 13da59c62c1..e0eda4685f9 100644 --- a/src/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a conversationMember from a chat or channel. + * Retrieve a conversationMember from a chat or channel. This API is supported in the following national cloud deployments. */ class ConversationMemberItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Chats/Item/Members/MembersRequestBuilder.php b/src/Generated/Chats/Item/Members/MembersRequestBuilder.php index 834919b96bc..7295faa631f 100644 --- a/src/Generated/Chats/Item/Members/MembersRequestBuilder.php +++ b/src/Generated/Chats/Item/Members/MembersRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List all conversation members in a chat or channel. + * List all conversation members in a chat or channel. This API is supported in the following national cloud deployments. * @param MembersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/conversationmember-list?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?MembersRequestBuilderGetRequestConfiguration $requestConfig } /** - * Add a conversationMember to a chat. + * Add a conversationMember to a chat. This API is supported in the following national cloud deployments. * @param ConversationMember $body The request body * @param MembersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(ConversationMember $body, ?MembersRequestBuilderPostRequest } /** - * List all conversation members in a chat or channel. + * List all conversation members in a chat or channel. This API is supported in the following national cloud deployments. * @param MembersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } /** - * Add a conversationMember to a chat. + * Add a conversationMember to a chat. This API is supported in the following national cloud deployments. * @param ConversationMember $body The request body * @param MembersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Chats/Item/Members/MembersRequestBuilderGetQueryParameters.php b/src/Generated/Chats/Item/Members/MembersRequestBuilderGetQueryParameters.php index ff4f301d815..35164d82280 100644 --- a/src/Generated/Chats/Item/Members/MembersRequestBuilderGetQueryParameters.php +++ b/src/Generated/Chats/Item/Members/MembersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List all conversation members in a chat or channel. + * List all conversation members in a chat or channel. This API is supported in the following national cloud deployments. */ class MembersRequestBuilderGetQueryParameters { diff --git a/src/Generated/Chats/Item/Messages/Delta/DeltaGetResponse.php b/src/Generated/Chats/Item/Messages/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..1132d481c25 --- /dev/null +++ b/src/Generated/Chats/Item/Messages/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([ChatMessage::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, ChatMessage::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/Chats/Item/Messages/Delta/DeltaRequestBuilder.php b/src/Generated/Chats/Item/Messages/Delta/DeltaRequestBuilder.php index 4d1848cf3d2..e1bcdac76fd 100644 --- a/src/Generated/Chats/Item/Messages/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Chats/Item/Messages/Delta/DeltaResponse.php b/src/Generated/Chats/Item/Messages/Delta/DeltaResponse.php deleted file mode 100644 index 3a24b25ef67..00000000000 --- a/src/Generated/Chats/Item/Messages/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ChatMessage::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, ChatMessage::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/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.php index ead3dc2444c..25342d98c84 100644 --- a/src/Generated/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.php @@ -98,7 +98,7 @@ public function delete(?ChatMessageItemRequestBuilderDeleteRequestConfiguration } /** - * Retrieve a single message or a message reply in a channel or a chat. + * Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param ChatMessageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessage-get?view=graph-rest-1.0 Find more info here @@ -153,7 +153,7 @@ public function toDeleteRequestInformation(?ChatMessageItemRequestBuilderDeleteR } /** - * Retrieve a single message or a message reply in a channel or a chat. + * Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param ChatMessageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Chats/Item/Messages/Item/ChatMessageItemRequestBuilderGetQueryParameters.php b/src/Generated/Chats/Item/Messages/Item/ChatMessageItemRequestBuilderGetQueryParameters.php index 158f17022c8..cfa3aa67896 100644 --- a/src/Generated/Chats/Item/Messages/Item/ChatMessageItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Chats/Item/Messages/Item/ChatMessageItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a single message or a message reply in a channel or a chat. + * Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. */ class ChatMessageItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php index 5587e97ece0..ff2f26e3e24 100644 --- a/src/Generated/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. * @param HostedContentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessage-list-hostedcontents?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(ChatMessageHostedContent $body, ?HostedContentsRequestBuild } /** - * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. * @param HostedContentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilderGetQueryParameters.php b/src/Generated/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilderGetQueryParameters.php index fa9fc33534f..27a3d140ee2 100644 --- a/src/Generated/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. */ class HostedContentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php index fa8a28e6ef2..8721f66fe61 100644 --- a/src/Generated/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?ChatMessageHostedContentItemRequestBuilderDeleteRequestC } /** - * Retrieve the properties and relationships of chatMessageHostedContent object. + * Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. * @param ChatMessageHostedContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessagehostedcontent-get?view=graph-rest-1.0 Find more info here @@ -113,7 +113,7 @@ public function toDeleteRequestInformation(?ChatMessageHostedContentItemRequestB } /** - * Retrieve the properties and relationships of chatMessageHostedContent object. + * Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. * @param ChatMessageHostedContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilderGetQueryParameters.php b/src/Generated/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilderGetQueryParameters.php index 17830de8c94..da16cdf6879 100644 --- a/src/Generated/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of chatMessageHostedContent object. + * Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. */ class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaGetResponse.php b/src/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..7db16f3b861 --- /dev/null +++ b/src/Generated/Chats/Item/Messages/Item/Replies/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([ChatMessage::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, ChatMessage::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/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.php index 51e0b8e7734..ef671850c9c 100644 --- a/src/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaResponse.php b/src/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaResponse.php deleted file mode 100644 index 72e7000f71f..00000000000 --- a/src/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ChatMessage::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, ChatMessage::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/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php index 16f0a4cd7b6..a0ea31a00b4 100644 --- a/src/Generated/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php @@ -90,7 +90,7 @@ public function delete(?ChatMessageItemRequestBuilderDeleteRequestConfiguration } /** - * Retrieve a single message or a message reply in a channel or a chat. + * Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param ChatMessageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessage-get?view=graph-rest-1.0 Find more info here @@ -145,7 +145,7 @@ public function toDeleteRequestInformation(?ChatMessageItemRequestBuilderDeleteR } /** - * Retrieve a single message or a message reply in a channel or a chat. + * Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param ChatMessageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilderGetQueryParameters.php b/src/Generated/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilderGetQueryParameters.php index 7cf3056cac7..93ba3073079 100644 --- a/src/Generated/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a single message or a message reply in a channel or a chat. + * Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. */ class ChatMessageItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php index b48a0868b10..7424d40668e 100644 --- a/src/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. * @param HostedContentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessage-list-hostedcontents?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(ChatMessageHostedContent $body, ?HostedContentsRequestBuild } /** - * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. * @param HostedContentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilderGetQueryParameters.php b/src/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilderGetQueryParameters.php index 680367f20a5..1811a8c8249 100644 --- a/src/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. */ class HostedContentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php index 2d5d4b81d96..e002a289616 100644 --- a/src/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?ChatMessageHostedContentItemRequestBuilderDeleteRequestC } /** - * Retrieve the properties and relationships of chatMessageHostedContent object. + * Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. * @param ChatMessageHostedContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessagehostedcontent-get?view=graph-rest-1.0 Find more info here @@ -113,7 +113,7 @@ public function toDeleteRequestInformation(?ChatMessageHostedContentItemRequestB } /** - * Retrieve the properties and relationships of chatMessageHostedContent object. + * Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. * @param ChatMessageHostedContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilderGetQueryParameters.php b/src/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilderGetQueryParameters.php index 7d202c0b1f0..3d0754e3784 100644 --- a/src/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of chatMessageHostedContent object. + * Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. */ class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php index 59239b12f11..603b7304c2a 100644 --- a/src/Generated/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a single chatMessage or a chat message reply in a channel or a chat. + * Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param SoftDeleteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessage-softdelete?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?SoftDeleteRequestBuilderPostRequestConfiguration $requestC } /** - * Delete a single chatMessage or a chat message reply in a channel or a chat. + * Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param SoftDeleteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php index b888ef7d1f4..b824c50de3e 100644 --- a/src/Generated/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param UndoSoftDeleteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessage-undosoftdelete?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?UndoSoftDeleteRequestBuilderPostRequestConfiguration $requ } /** - * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param UndoSoftDeleteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.php index cfd20426925..9ba297c4f57 100644 --- a/src/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + * List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. * @param RepliesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessage-list-replies?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?RepliesRequestBuilderGetRequestConfiguration $requestConfig } /** - * Create a new reply to a chatMessage in a specified channel. + * Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. * @param ChatMessage $body The request body * @param RepliesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(ChatMessage $body, ?RepliesRequestBuilderPostRequestConfigu } /** - * List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + * List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. * @param RepliesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?RepliesRequestBuilderGetRequestConfigur } /** - * Create a new reply to a chatMessage in a specified channel. + * Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. * @param ChatMessage $body The request body * @param RepliesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilderGetQueryParameters.php b/src/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilderGetQueryParameters.php index c9ae8824876..ab8c689d32e 100644 --- a/src/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + * List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. */ class RepliesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php index e278e75a654..835816eff28 100644 --- a/src/Generated/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a single chatMessage or a chat message reply in a channel or a chat. + * Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param SoftDeleteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessage-softdelete?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?SoftDeleteRequestBuilderPostRequestConfiguration $requestC } /** - * Delete a single chatMessage or a chat message reply in a channel or a chat. + * Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param SoftDeleteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php index bab008aedb7..d1c6a03f7ee 100644 --- a/src/Generated/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param UndoSoftDeleteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessage-undosoftdelete?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?UndoSoftDeleteRequestBuilderPostRequestConfiguration $requ } /** - * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param UndoSoftDeleteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Chats/Item/Messages/MessagesRequestBuilder.php b/src/Generated/Chats/Item/Messages/MessagesRequestBuilder.php index a3cefa39aac..b83bab75791 100644 --- a/src/Generated/Chats/Item/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/MessagesRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + * Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. * @param MessagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chat-list-messages?view=graph-rest-1.0 Find more info here @@ -80,11 +80,11 @@ public function get(?MessagesRequestBuilderGetRequestConfiguration $requestConfi } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. This API is supported in the following national cloud deployments. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0 Find more info here */ public function post(ChatMessage $body, ?MessagesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -100,7 +100,7 @@ public function post(ChatMessage $body, ?MessagesRequestBuilderPostRequestConfig } /** - * Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + * Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. * @param MessagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. This API is supported in the following national cloud deployments. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Chats/Item/Messages/MessagesRequestBuilderGetQueryParameters.php b/src/Generated/Chats/Item/Messages/MessagesRequestBuilderGetQueryParameters.php index 3887cac98ca..2fef303e74f 100644 --- a/src/Generated/Chats/Item/Messages/MessagesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Chats/Item/Messages/MessagesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + * Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. */ class MessagesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Chats/Item/PermissionGrants/Delta/DeltaGetResponse.php b/src/Generated/Chats/Item/PermissionGrants/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..9305721e87e --- /dev/null +++ b/src/Generated/Chats/Item/PermissionGrants/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([DirectoryObject::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, DirectoryObject::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/Chats/Item/PermissionGrants/Delta/DeltaRequestBuilder.php b/src/Generated/Chats/Item/PermissionGrants/Delta/DeltaRequestBuilder.php index 363ebfb5065..caca7b672ce 100644 --- a/src/Generated/Chats/Item/PermissionGrants/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Chats/Item/PermissionGrants/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Chats/Item/PermissionGrants/Delta/DeltaResponse.php b/src/Generated/Chats/Item/PermissionGrants/Delta/DeltaResponse.php deleted file mode 100644 index e8314b9b0f5..00000000000 --- a/src/Generated/Chats/Item/PermissionGrants/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php b/src/Generated/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php new file mode 100644 index 00000000000..ea71b443e13 --- /dev/null +++ b/src/Generated/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index 7be400a79b7..27098b59002 100644 --- a/src/Generated/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetAvailableExtensionPropertiesPostRequestBody $body, ?GetA '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php b/src/Generated/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php deleted file mode 100644 index 0032ba65f5f..00000000000 --- a/src/Generated/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/Chats/Item/PermissionGrants/GetByIds/GetByIdsPostResponse.php b/src/Generated/Chats/Item/PermissionGrants/GetByIds/GetByIdsPostResponse.php new file mode 100644 index 00000000000..42e204cf800 --- /dev/null +++ b/src/Generated/Chats/Item/PermissionGrants/GetByIds/GetByIdsPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/Chats/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/Chats/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.php index 6e653a21bc4..d38909a5959 100644 --- a/src/Generated/Chats/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/Chats/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetByIdsPostRequestBody $body, ?GetByIdsRequestBuilderPostR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Chats/Item/PermissionGrants/GetByIds/GetByIdsResponse.php b/src/Generated/Chats/Item/PermissionGrants/GetByIds/GetByIdsResponse.php deleted file mode 100644 index 268040b4c24..00000000000 --- a/src/Generated/Chats/Item/PermissionGrants/GetByIds/GetByIdsResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php b/src/Generated/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php new file mode 100644 index 00000000000..8cbcc6dfc15 --- /dev/null +++ b/src/Generated/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php b/src/Generated/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php index 77a87cb3d01..8b058df9f30 100644 --- a/src/Generated/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php +++ b/src/Generated/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. * @param CheckMemberGroupsPostRequestBody $body The request body * @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberGroupsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberGroupsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. * @param CheckMemberGroupsPostRequestBody $body The request body * @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.php b/src/Generated/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.php deleted file mode 100644 index 1fa75ddffd3..00000000000 --- a/src/Generated/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php b/src/Generated/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php new file mode 100644 index 00000000000..af3d1a57ea0 --- /dev/null +++ b/src/Generated/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php b/src/Generated/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php index c1700a67261..f0cec0f0af0 100644 --- a/src/Generated/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php +++ b/src/Generated/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php @@ -43,7 +43,7 @@ public function post(CheckMemberObjectsPostRequestBody $body, ?CheckMemberObject '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberObjectsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberObjectsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.php b/src/Generated/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.php deleted file mode 100644 index bb527d4662c..00000000000 --- a/src/Generated/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.php b/src/Generated/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.php new file mode 100644 index 00000000000..141f50f7af7 --- /dev/null +++ b/src/Generated/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index e4c0e955990..8a948616a9a 100644 --- a/src/Generated/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsReque '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetMemberGroupsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetMemberGroupsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.php b/src/Generated/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.php deleted file mode 100644 index cd87e6f2e17..00000000000 --- a/src/Generated/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.php b/src/Generated/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.php new file mode 100644 index 00000000000..cfe5f07662e --- /dev/null +++ b/src/Generated/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php b/src/Generated/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php index 5a382d32829..72f21458448 100644 --- a/src/Generated/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php +++ b/src/Generated/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. * @param GetMemberObjectsPostRequestBody $body The request body * @param GetMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetMemberObjectsPostRequestBody $body, ?GetMemberObjectsReq '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetMemberObjectsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetMemberObjectsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. * @param GetMemberObjectsPostRequestBody $body The request body * @param GetMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.php b/src/Generated/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.php deleted file mode 100644 index d9f5c0c4847..00000000000 --- a/src/Generated/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Chats/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Chats/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.php index b0fce9b17d7..40889bf94dc 100644 --- a/src/Generated/Chats/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Chats/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.php b/src/Generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.php index 24a83e52f5b..fb5754c3d9f 100644 --- a/src/Generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.php +++ b/src/Generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.php @@ -85,7 +85,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. + * List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is supported in the following national cloud deployments. * @param PermissionGrantsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chat-list-permissiongrants?view=graph-rest-1.0 Find more info here @@ -123,7 +123,7 @@ public function post(ResourceSpecificPermissionGrant $body, ?PermissionGrantsReq } /** - * List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. + * List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is supported in the following national cloud deployments. * @param PermissionGrantsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilderGetQueryParameters.php b/src/Generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilderGetQueryParameters.php index aaf5fab6715..e04a48f5725 100644 --- a/src/Generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. + * List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is supported in the following national cloud deployments. */ class PermissionGrantsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Chats/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/Chats/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.php index 6a6c3aa5fd9..6c0ba2e773f 100644 --- a/src/Generated/Chats/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/Chats/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ValidatePropertiesPostRequestBody $body, ?ValidatePropertie } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.php b/src/Generated/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.php index a6700c87e1d..9256552afd0 100644 --- a/src/Generated/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.php +++ b/src/Generated/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Unpin a message from a chat. + * Unpin a message from a chat. This API is supported in the following national cloud deployments. * @param PinnedChatMessageInfoItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chat-delete-pinnedmessages?view=graph-rest-1.0 Find more info here @@ -96,7 +96,7 @@ public function patch(PinnedChatMessageInfo $body, ?PinnedChatMessageInfoItemReq } /** - * Unpin a message from a chat. + * Unpin a message from a chat. This API is supported in the following national cloud deployments. * @param PinnedChatMessageInfoItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.php b/src/Generated/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.php index ae616eecfce..7a3ab2dc3a8 100644 --- a/src/Generated/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.php +++ b/src/Generated/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of pinnedChatMessages in a chat. + * Get a list of pinnedChatMessages in a chat. This API is supported in the following national cloud deployments. * @param PinnedMessagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chat-list-pinnedmessages?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?PinnedMessagesRequestBuilderGetRequestConfiguration $reques } /** - * Pin a chat message in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can pin a chat message. + * Pin a chat message in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can pin a chat message. This API is supported in the following national cloud deployments. * @param PinnedChatMessageInfo $body The request body * @param PinnedMessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(PinnedChatMessageInfo $body, ?PinnedMessagesRequestBuilderP } /** - * Get a list of pinnedChatMessages in a chat. + * Get a list of pinnedChatMessages in a chat. This API is supported in the following national cloud deployments. * @param PinnedMessagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?PinnedMessagesRequestBuilderGetRequestC } /** - * Pin a chat message in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can pin a chat message. + * Pin a chat message in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can pin a chat message. This API is supported in the following national cloud deployments. * @param PinnedChatMessageInfo $body The request body * @param PinnedMessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilderGetQueryParameters.php b/src/Generated/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilderGetQueryParameters.php index 9ca365ba7cf..b8b40b31371 100644 --- a/src/Generated/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of pinnedChatMessages in a chat. + * Get a list of pinnedChatMessages in a chat. This API is supported in the following national cloud deployments. */ class PinnedMessagesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.php b/src/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.php index 30b32299c0d..d060cf33f90 100644 --- a/src/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.php +++ b/src/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Send an activity feed notification in scope of a chat. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. + * Send an activity feed notification in scope of a chat. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. This API is supported in the following national cloud deployments. * @param SendActivityNotificationPostRequestBody $body The request body * @param SendActivityNotificationRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(SendActivityNotificationPostRequestBody $body, ?SendActivit } /** - * Send an activity feed notification in scope of a chat. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. + * Send an activity feed notification in scope of a chat. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. This API is supported in the following national cloud deployments. * @param SendActivityNotificationPostRequestBody $body The request body * @param SendActivityNotificationRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php b/src/Generated/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php index cb58eae6c4c..9c0b0dcad47 100644 --- a/src/Generated/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php +++ b/src/Generated/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The application that is linked to the tab. This cannot be changed after tab creation. + * The application that is linked to the tab. This can't be changed after tab creation. * @param TeamsAppRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -50,7 +50,7 @@ public function get(?TeamsAppRequestBuilderGetRequestConfiguration $requestConfi } /** - * The application that is linked to the tab. This cannot be changed after tab creation. + * The application that is linked to the tab. This can't be changed after tab creation. * @param TeamsAppRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilderGetQueryParameters.php b/src/Generated/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilderGetQueryParameters.php index 01f363341f9..d96f4b9617d 100644 --- a/src/Generated/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilderGetQueryParameters.php +++ b/src/Generated/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The application that is linked to the tab. This cannot be changed after tab creation. + * The application that is linked to the tab. This can't be changed after tab creation. */ class TeamsAppRequestBuilderGetQueryParameters { diff --git a/src/Generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.php b/src/Generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.php index e19db8d8d3c..7dec0c04cd4 100644 --- a/src/Generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.php +++ b/src/Generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove (unpin) a tab from the specified chat. + * Remove (unpin) a tab from the specified chat. This API is supported in the following national cloud deployments. * @param TeamsTabItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chat-delete-tabs?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function delete(?TeamsTabItemRequestBuilderDeleteRequestConfiguration $re } /** - * Retrieve the properties and relationships of the specified tab in a chat. + * Retrieve the properties and relationships of the specified tab in a chat. This API is supported in the following national cloud deployments. * @param TeamsTabItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chat-get-tabs?view=graph-rest-1.0 Find more info here @@ -78,7 +78,7 @@ public function get(?TeamsTabItemRequestBuilderGetRequestConfiguration $requestC } /** - * Update the properties of the specified tab in a chat. This can be used to configure the content of the tab. + * Update the properties of the specified tab in a chat. This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. * @param TeamsTab $body The request body * @param TeamsTabItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -98,7 +98,7 @@ public function patch(TeamsTab $body, ?TeamsTabItemRequestBuilderPatchRequestCon } /** - * Remove (unpin) a tab from the specified chat. + * Remove (unpin) a tab from the specified chat. This API is supported in the following national cloud deployments. * @param TeamsTabItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -115,7 +115,7 @@ public function toDeleteRequestInformation(?TeamsTabItemRequestBuilderDeleteRequ } /** - * Retrieve the properties and relationships of the specified tab in a chat. + * Retrieve the properties and relationships of the specified tab in a chat. This API is supported in the following national cloud deployments. * @param TeamsTabItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -136,7 +136,7 @@ public function toGetRequestInformation(?TeamsTabItemRequestBuilderGetRequestCon } /** - * Update the properties of the specified tab in a chat. This can be used to configure the content of the tab. + * Update the properties of the specified tab in a chat. This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. * @param TeamsTab $body The request body * @param TeamsTabItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilderGetQueryParameters.php b/src/Generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilderGetQueryParameters.php index 4cd94568320..a22e4fdae90 100644 --- a/src/Generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of the specified tab in a chat. + * Retrieve the properties and relationships of the specified tab in a chat. This API is supported in the following national cloud deployments. */ class TeamsTabItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Chats/Item/Tabs/TabsRequestBuilder.php b/src/Generated/Chats/Item/Tabs/TabsRequestBuilder.php index d11b98614d5..ffee9a92aab 100644 --- a/src/Generated/Chats/Item/Tabs/TabsRequestBuilder.php +++ b/src/Generated/Chats/Item/Tabs/TabsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the list of tabs in the specified chat. + * Retrieve the list of tabs in the specified chat. This API is supported in the following national cloud deployments. * @param TabsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chat-list-tabs?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?TabsRequestBuilderGetRequestConfiguration $requestConfigura } /** - * Add (pin) a tab to the specified chat. The corresponding app must already be installed in the chat. + * Add (pin) a tab to the specified chat. The corresponding app must already be installed in the chat. This API is supported in the following national cloud deployments. * @param TeamsTab $body The request body * @param TabsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(TeamsTab $body, ?TabsRequestBuilderPostRequestConfiguration } /** - * Retrieve the list of tabs in the specified chat. + * Retrieve the list of tabs in the specified chat. This API is supported in the following national cloud deployments. * @param TabsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?TabsRequestBuilderGetRequestConfigurati } /** - * Add (pin) a tab to the specified chat. The corresponding app must already be installed in the chat. + * Add (pin) a tab to the specified chat. The corresponding app must already be installed in the chat. This API is supported in the following national cloud deployments. * @param TeamsTab $body The request body * @param TabsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Chats/Item/Tabs/TabsRequestBuilderGetQueryParameters.php b/src/Generated/Chats/Item/Tabs/TabsRequestBuilderGetQueryParameters.php index 4f6d698907e..9f15f491fe1 100644 --- a/src/Generated/Chats/Item/Tabs/TabsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Chats/Item/Tabs/TabsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the list of tabs in the specified chat. + * Retrieve the list of tabs in the specified chat. This API is supported in the following national cloud deployments. */ class TabsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.php b/src/Generated/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.php index eb442920fce..9e92fcd3c34 100644 --- a/src/Generated/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.php +++ b/src/Generated/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Unhide a chat for a user. + * Unhide a chat for a user. This API is supported in the following national cloud deployments. * @param UnhideForUserPostRequestBody $body The request body * @param UnhideForUserRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(UnhideForUserPostRequestBody $body, ?UnhideForUserRequestBu } /** - * Unhide a chat for a user. + * Unhide a chat for a user. This API is supported in the following national cloud deployments. * @param UnhideForUserPostRequestBody $body The request body * @param UnhideForUserRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/CallRecords/CallRecordsRequestBuilder.php b/src/Generated/Communications/CallRecords/CallRecordsRequestBuilder.php index 387b75ab0a6..b84cc909a86 100644 --- a/src/Generated/Communications/CallRecords/CallRecordsRequestBuilder.php +++ b/src/Generated/Communications/CallRecords/CallRecordsRequestBuilder.php @@ -56,7 +56,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. + * Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. This API is supported in the following national cloud deployments. * @param CallRecordsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -113,7 +113,7 @@ public function post(CallRecord $body, ?CallRecordsRequestBuilderPostRequestConf } /** - * Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. + * Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. This API is supported in the following national cloud deployments. * @param CallRecordsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Communications/CallRecords/CallRecordsRequestBuilderGetQueryParameters.php b/src/Generated/Communications/CallRecords/CallRecordsRequestBuilderGetQueryParameters.php index bca41cdc204..aca9ec634da 100644 --- a/src/Generated/Communications/CallRecords/CallRecordsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Communications/CallRecords/CallRecordsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. + * Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. This API is supported in the following national cloud deployments. */ class CallRecordsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Communications/CallRecords/Item/CallRecordItemRequestBuilder.php b/src/Generated/Communications/CallRecords/Item/CallRecordItemRequestBuilder.php index 089a121b80d..d50341ecf79 100644 --- a/src/Generated/Communications/CallRecords/Item/CallRecordItemRequestBuilder.php +++ b/src/Generated/Communications/CallRecords/Item/CallRecordItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?CallRecordItemRequestBuilderDeleteRequestConfiguration $ } /** - * Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. + * Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. This API is supported in the following national cloud deployments. * @param CallRecordItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/callrecords-callrecord-get?view=graph-rest-1.0 Find more info here @@ -113,7 +113,7 @@ public function toDeleteRequestInformation(?CallRecordItemRequestBuilderDeleteRe } /** - * Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. + * Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. This API is supported in the following national cloud deployments. * @param CallRecordItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Communications/CallRecords/Item/CallRecordItemRequestBuilderGetQueryParameters.php b/src/Generated/Communications/CallRecords/Item/CallRecordItemRequestBuilderGetQueryParameters.php index 33272b8777d..ac20d39f2a3 100644 --- a/src/Generated/Communications/CallRecords/Item/CallRecordItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Communications/CallRecords/Item/CallRecordItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. + * Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. This API is supported in the following national cloud deployments. */ class CallRecordItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Communications/CallRecords/Item/Sessions/SessionsRequestBuilder.php b/src/Generated/Communications/CallRecords/Item/Sessions/SessionsRequestBuilder.php index 70f2f28975d..7d756bd720e 100644 --- a/src/Generated/Communications/CallRecords/Item/Sessions/SessionsRequestBuilder.php +++ b/src/Generated/Communications/CallRecords/Item/Sessions/SessionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the list of sessions associated with a callRecord object. If the sessions list is truncated, a sessions@odata.nextLink value will be provided to retrieve the next page of sessions. The maximum page size for sessions is 60 entries. + * Retrieve the list of sessions associated with a callRecord object. If the sessions list is truncated, a sessions@odata.nextLink value will be provided to retrieve the next page of sessions. The maximum page size for sessions is 60 entries. This API is supported in the following national cloud deployments. * @param SessionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/callrecords-session-list?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(Session $body, ?SessionsRequestBuilderPostRequestConfigurat } /** - * Retrieve the list of sessions associated with a callRecord object. If the sessions list is truncated, a sessions@odata.nextLink value will be provided to retrieve the next page of sessions. The maximum page size for sessions is 60 entries. + * Retrieve the list of sessions associated with a callRecord object. If the sessions list is truncated, a sessions@odata.nextLink value will be provided to retrieve the next page of sessions. The maximum page size for sessions is 60 entries. This API is supported in the following national cloud deployments. * @param SessionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Communications/CallRecords/Item/Sessions/SessionsRequestBuilderGetQueryParameters.php b/src/Generated/Communications/CallRecords/Item/Sessions/SessionsRequestBuilderGetQueryParameters.php index dcce72c4015..36bcf51c511 100644 --- a/src/Generated/Communications/CallRecords/Item/Sessions/SessionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Communications/CallRecords/Item/Sessions/SessionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the list of sessions associated with a callRecord object. If the sessions list is truncated, a sessions@odata.nextLink value will be provided to retrieve the next page of sessions. The maximum page size for sessions is 60 entries. + * Retrieve the list of sessions associated with a callRecord object. If the sessions list is truncated, a sessions@odata.nextLink value will be provided to retrieve the next page of sessions. The maximum page size for sessions is 60 entries. This API is supported in the following national cloud deployments. */ class SessionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse.php b/src/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse.php new file mode 100644 index 00000000000..573afc49c66 --- /dev/null +++ b/src/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectRoutingLogRow::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, DirectRoutingLogRow::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/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse.php b/src/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse.php deleted file mode 100644 index 39959854dbf..00000000000 --- a/src/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectRoutingLogRow::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, DirectRoutingLogRow::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/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder.php b/src/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder.php index 07d6c4aa732..906da6615c7 100644 --- a/src/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder.php +++ b/src/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder.php @@ -48,7 +48,7 @@ public function get(?MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateT '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse.php b/src/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse.php new file mode 100644 index 00000000000..1de86c3fb65 --- /dev/null +++ b/src/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([PstnCallLogRow::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, PstnCallLogRow::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/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeResponse.php b/src/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeResponse.php deleted file mode 100644 index adf024fdaa3..00000000000 --- a/src/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([PstnCallLogRow::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, PstnCallLogRow::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/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder.php b/src/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder.php index c4d1c2ed584..7724002cf00 100644 --- a/src/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder.php +++ b/src/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder.php @@ -48,7 +48,7 @@ public function get(?MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithTo '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetPstnCallsWithFromDateTimeWithToDateTimeResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Communications/Calls/CallsRequestBuilder.php b/src/Generated/Communications/Calls/CallsRequestBuilder.php index b6ac26c2b04..047f3976042 100644 --- a/src/Generated/Communications/Calls/CallsRequestBuilder.php +++ b/src/Generated/Communications/Calls/CallsRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the properties and relationships of a call object. + * Retrieve the properties and relationships of a call object. This API is supported in the following national cloud deployments. * @param CallsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -79,7 +79,7 @@ public function get(?CallsRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Create call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting. You will need to register the calling bot and go through the list of permissions needed as mentioned below. + * Create call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting. You will need to register the calling bot and go through the list of permissions needed as mentioned below. This API is supported in the following national cloud deployments. * @param Call $body The request body * @param CallsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -99,7 +99,7 @@ public function post(Call $body, ?CallsRequestBuilderPostRequestConfiguration $r } /** - * Retrieve the properties and relationships of a call object. + * Retrieve the properties and relationships of a call object. This API is supported in the following national cloud deployments. * @param CallsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -120,7 +120,7 @@ public function toGetRequestInformation(?CallsRequestBuilderGetRequestConfigurat } /** - * Create call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting. You will need to register the calling bot and go through the list of permissions needed as mentioned below. + * Create call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting. You will need to register the calling bot and go through the list of permissions needed as mentioned below. This API is supported in the following national cloud deployments. * @param Call $body The request body * @param CallsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/Calls/CallsRequestBuilderGetQueryParameters.php b/src/Generated/Communications/Calls/CallsRequestBuilderGetQueryParameters.php index 0e7f5645262..529fe26f500 100644 --- a/src/Generated/Communications/Calls/CallsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Communications/Calls/CallsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a call object. + * Retrieve the properties and relationships of a call object. This API is supported in the following national cloud deployments. */ class CallsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewRequestBuilder.php b/src/Generated/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewRequestBuilder.php index 31c5d5d0ae8..ef64de37cdd 100644 --- a/src/Generated/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Add the large gallery view to a call. For details about how to identify a large gallery view participant in a roster so that you can retrieve the relevant data to subscribe to the video feed, see Identify large gallery view participants in a roster. + * Add the large gallery view to a call. For details about how to identify a large gallery view participant in a roster so that you can retrieve the relevant data to subscribe to the video feed, see Identify large gallery view participants in a roster. This API is supported in the following national cloud deployments. * @param AddLargeGalleryViewPostRequestBody $body The request body * @param AddLargeGalleryViewRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(AddLargeGalleryViewPostRequestBody $body, ?AddLargeGalleryV } /** - * Add the large gallery view to a call. For details about how to identify a large gallery view participant in a roster so that you can retrieve the relevant data to subscribe to the video feed, see Identify large gallery view participants in a roster. + * Add the large gallery view to a call. For details about how to identify a large gallery view participant in a roster so that you can retrieve the relevant data to subscribe to the video feed, see Identify large gallery view participants in a roster. This API is supported in the following national cloud deployments. * @param AddLargeGalleryViewPostRequestBody $body The request body * @param AddLargeGalleryViewRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/Calls/Item/Answer/AnswerRequestBuilder.php b/src/Generated/Communications/Calls/Item/Answer/AnswerRequestBuilder.php index 87aa8daf0cb..84a25adacfd 100644 --- a/src/Generated/Communications/Calls/Item/Answer/AnswerRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Answer/AnswerRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Enable a bot to answer an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite to a group call is received, the notification will contain the chatInfo and meetingInfo parameters. The bot is expected to answer, reject, or redirect the call before the call times out. The current timeout value is 15 seconds for regular scenarios, and 5 seconds for policy-based recording scenarios. + * Enable a bot to answer an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite to a group call is received, the notification will contain the chatInfo and meetingInfo parameters. The bot is expected to answer, reject, or redirect the call before the call times out. The current timeout value is 15 seconds for regular scenarios, and 5 seconds for policy-based recording scenarios. This API is supported in the following national cloud deployments. * @param AnswerPostRequestBody $body The request body * @param AnswerRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(AnswerPostRequestBody $body, ?AnswerRequestBuilderPostReque } /** - * Enable a bot to answer an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite to a group call is received, the notification will contain the chatInfo and meetingInfo parameters. The bot is expected to answer, reject, or redirect the call before the call times out. The current timeout value is 15 seconds for regular scenarios, and 5 seconds for policy-based recording scenarios. + * Enable a bot to answer an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite to a group call is received, the notification will contain the chatInfo and meetingInfo parameters. The bot is expected to answer, reject, or redirect the call before the call times out. The current timeout value is 15 seconds for regular scenarios, and 5 seconds for policy-based recording scenarios. This API is supported in the following national cloud deployments. * @param AnswerPostRequestBody $body The request body * @param AnswerRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/Calls/Item/AudioRoutingGroups/AudioRoutingGroupsRequestBuilder.php b/src/Generated/Communications/Calls/Item/AudioRoutingGroups/AudioRoutingGroupsRequestBuilder.php index ae840513786..1d694178931 100644 --- a/src/Generated/Communications/Calls/Item/AudioRoutingGroups/AudioRoutingGroupsRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/AudioRoutingGroups/AudioRoutingGroupsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of audioRoutingGroup objects. + * Retrieve a list of audioRoutingGroup objects. This API is supported in the following national cloud deployments. * @param AudioRoutingGroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/call-list-audioroutinggroups?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?AudioRoutingGroupsRequestBuilderGetRequestConfiguration $re } /** - * Create a new audioRoutingGroup. + * Create a new audioRoutingGroup. This API is supported in the following national cloud deployments. * @param AudioRoutingGroup $body The request body * @param AudioRoutingGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(AudioRoutingGroup $body, ?AudioRoutingGroupsRequestBuilderP } /** - * Retrieve a list of audioRoutingGroup objects. + * Retrieve a list of audioRoutingGroup objects. This API is supported in the following national cloud deployments. * @param AudioRoutingGroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?AudioRoutingGroupsRequestBuilderGetRequ } /** - * Create a new audioRoutingGroup. + * Create a new audioRoutingGroup. This API is supported in the following national cloud deployments. * @param AudioRoutingGroup $body The request body * @param AudioRoutingGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/Calls/Item/AudioRoutingGroups/AudioRoutingGroupsRequestBuilderGetQueryParameters.php b/src/Generated/Communications/Calls/Item/AudioRoutingGroups/AudioRoutingGroupsRequestBuilderGetQueryParameters.php index 16af95485e7..4ea7877e443 100644 --- a/src/Generated/Communications/Calls/Item/AudioRoutingGroups/AudioRoutingGroupsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Communications/Calls/Item/AudioRoutingGroups/AudioRoutingGroupsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of audioRoutingGroup objects. + * Retrieve a list of audioRoutingGroup objects. This API is supported in the following national cloud deployments. */ class AudioRoutingGroupsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Communications/Calls/Item/AudioRoutingGroups/Item/AudioRoutingGroupItemRequestBuilder.php b/src/Generated/Communications/Calls/Item/AudioRoutingGroups/Item/AudioRoutingGroupItemRequestBuilder.php index 6b36c8ae48a..0e55b61447b 100644 --- a/src/Generated/Communications/Calls/Item/AudioRoutingGroups/Item/AudioRoutingGroupItemRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/AudioRoutingGroups/Item/AudioRoutingGroupItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete the specified audioRoutingGroup. + * Delete the specified audioRoutingGroup. This API is supported in the following national cloud deployments. * @param AudioRoutingGroupItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/audioroutinggroup-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?AudioRoutingGroupItemRequestBuilderDeleteRequestConfigur } /** - * Retrieve the properties and relationships of an audioRoutingGroup object. + * Retrieve the properties and relationships of an audioRoutingGroup object. This API is supported in the following national cloud deployments. * @param AudioRoutingGroupItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/audioroutinggroup-get?view=graph-rest-1.0 Find more info here @@ -70,7 +70,7 @@ public function get(?AudioRoutingGroupItemRequestBuilderGetRequestConfiguration } /** - * Modify sources and receivers of an audioRoutingGroup. + * Modify sources and receivers of an audioRoutingGroup. This API is supported in the following national cloud deployments. * @param AudioRoutingGroup $body The request body * @param AudioRoutingGroupItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -90,7 +90,7 @@ public function patch(AudioRoutingGroup $body, ?AudioRoutingGroupItemRequestBuil } /** - * Delete the specified audioRoutingGroup. + * Delete the specified audioRoutingGroup. This API is supported in the following national cloud deployments. * @param AudioRoutingGroupItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?AudioRoutingGroupItemRequestBuilderD } /** - * Retrieve the properties and relationships of an audioRoutingGroup object. + * Retrieve the properties and relationships of an audioRoutingGroup object. This API is supported in the following national cloud deployments. * @param AudioRoutingGroupItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -128,7 +128,7 @@ public function toGetRequestInformation(?AudioRoutingGroupItemRequestBuilderGetR } /** - * Modify sources and receivers of an audioRoutingGroup. + * Modify sources and receivers of an audioRoutingGroup. This API is supported in the following national cloud deployments. * @param AudioRoutingGroup $body The request body * @param AudioRoutingGroupItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/Calls/Item/AudioRoutingGroups/Item/AudioRoutingGroupItemRequestBuilderGetQueryParameters.php b/src/Generated/Communications/Calls/Item/AudioRoutingGroups/Item/AudioRoutingGroupItemRequestBuilderGetQueryParameters.php index 409d6d79a4c..a7f13d9ccdf 100644 --- a/src/Generated/Communications/Calls/Item/AudioRoutingGroups/Item/AudioRoutingGroupItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Communications/Calls/Item/AudioRoutingGroups/Item/AudioRoutingGroupItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of an audioRoutingGroup object. + * Retrieve the properties and relationships of an audioRoutingGroup object. This API is supported in the following national cloud deployments. */ class AudioRoutingGroupItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Communications/Calls/Item/CallItemRequestBuilder.php b/src/Generated/Communications/Calls/Item/CallItemRequestBuilder.php index 61c8c84b5c4..3aa3fedced2 100644 --- a/src/Generated/Communications/Calls/Item/CallItemRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/CallItemRequestBuilder.php @@ -176,7 +176,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete or hang up an active call. For group calls, this will only delete your call leg and the underlying group call will still continue. + * Delete or hang up an active call. For group calls, this will only delete your call leg and the underlying group call will still continue. This API is supported in the following national cloud deployments. * @param CallItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/call-delete?view=graph-rest-1.0 Find more info here @@ -195,7 +195,7 @@ public function delete(?CallItemRequestBuilderDeleteRequestConfiguration $reques } /** - * Retrieve the properties and relationships of a call object. + * Retrieve the properties and relationships of a call object. This API is supported in the following national cloud deployments. * @param CallItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/call-get?view=graph-rest-1.0 Find more info here @@ -233,7 +233,7 @@ public function patch(Call $body, ?CallItemRequestBuilderPatchRequestConfigurati } /** - * Delete or hang up an active call. For group calls, this will only delete your call leg and the underlying group call will still continue. + * Delete or hang up an active call. For group calls, this will only delete your call leg and the underlying group call will still continue. This API is supported in the following national cloud deployments. * @param CallItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -250,7 +250,7 @@ public function toDeleteRequestInformation(?CallItemRequestBuilderDeleteRequestC } /** - * Retrieve the properties and relationships of a call object. + * Retrieve the properties and relationships of a call object. This API is supported in the following national cloud deployments. * @param CallItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Communications/Calls/Item/CallItemRequestBuilderGetQueryParameters.php b/src/Generated/Communications/Calls/Item/CallItemRequestBuilderGetQueryParameters.php index f4a8f33823f..f65b90a546f 100644 --- a/src/Generated/Communications/Calls/Item/CallItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Communications/Calls/Item/CallItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a call object. + * Retrieve the properties and relationships of a call object. This API is supported in the following national cloud deployments. */ class CallItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingRequestBuilder.php b/src/Generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingRequestBuilder.php index dacb7812b2d..5d5762221f6 100644 --- a/src/Generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Cancels processing for any in-progress media operations. Media operations refer to the IVR operations playPrompt and recordResponse, which are by default queued to process in order. The cancelMediaProcessing method cancels any operation that is in-process as well as operations that are queued. For example, this method can be used to clean up the IVR operation queue for a new media operation. However, it will not cancel a subscribeToTone operation because it operates independent of any operation queue. + * Cancels processing for any in-progress media operations. Media operations refer to the IVR operations playPrompt and recordResponse, which are by default queued to process in order. The cancelMediaProcessing method cancels any operation that is in-process as well as operations that are queued. For example, this method can be used to clean up the IVR operation queue for a new media operation. However, it will not cancel a subscribeToTone operation because it operates independent of any operation queue. This API is supported in the following national cloud deployments. * @param CancelMediaProcessingPostRequestBody $body The request body * @param CancelMediaProcessingRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CancelMediaProcessingPostRequestBody $body, ?CancelMediaPro } /** - * Cancels processing for any in-progress media operations. Media operations refer to the IVR operations playPrompt and recordResponse, which are by default queued to process in order. The cancelMediaProcessing method cancels any operation that is in-process as well as operations that are queued. For example, this method can be used to clean up the IVR operation queue for a new media operation. However, it will not cancel a subscribeToTone operation because it operates independent of any operation queue. + * Cancels processing for any in-progress media operations. Media operations refer to the IVR operations playPrompt and recordResponse, which are by default queued to process in order. The cancelMediaProcessing method cancels any operation that is in-process as well as operations that are queued. For example, this method can be used to clean up the IVR operation queue for a new media operation. However, it will not cancel a subscribeToTone operation because it operates independent of any operation queue. This API is supported in the following national cloud deployments. * @param CancelMediaProcessingPostRequestBody $body The request body * @param CancelMediaProcessingRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRoleRequestBuilder.php b/src/Generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRoleRequestBuilder.php index a0e56b279ef..83bf243f6a2 100644 --- a/src/Generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRoleRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRoleRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Allow applications to share screen content with the participants of a group call. + * Allow applications to share screen content with the participants of a group call. This API is supported in the following national cloud deployments. * @param ChangeScreenSharingRolePostRequestBody $body The request body * @param ChangeScreenSharingRoleRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ChangeScreenSharingRolePostRequestBody $body, ?ChangeScreen } /** - * Allow applications to share screen content with the participants of a group call. + * Allow applications to share screen content with the participants of a group call. This API is supported in the following national cloud deployments. * @param ChangeScreenSharingRolePostRequestBody $body The request body * @param ChangeScreenSharingRoleRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/Calls/Item/ContentSharingSessions/ContentSharingSessionsRequestBuilder.php b/src/Generated/Communications/Calls/Item/ContentSharingSessions/ContentSharingSessionsRequestBuilder.php index 14c16dc8cee..87041165040 100644 --- a/src/Generated/Communications/Calls/Item/ContentSharingSessions/ContentSharingSessionsRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/ContentSharingSessions/ContentSharingSessionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of contentSharingSession objects in a call. + * Retrieve a list of contentSharingSession objects in a call. This API is supported in the following national cloud deployments. * @param ContentSharingSessionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/call-list-contentsharingsessions?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(ContentSharingSession $body, ?ContentSharingSessionsRequest } /** - * Retrieve a list of contentSharingSession objects in a call. + * Retrieve a list of contentSharingSession objects in a call. This API is supported in the following national cloud deployments. * @param ContentSharingSessionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Communications/Calls/Item/ContentSharingSessions/ContentSharingSessionsRequestBuilderGetQueryParameters.php b/src/Generated/Communications/Calls/Item/ContentSharingSessions/ContentSharingSessionsRequestBuilderGetQueryParameters.php index 568a8bcecab..7e1cf6df3fc 100644 --- a/src/Generated/Communications/Calls/Item/ContentSharingSessions/ContentSharingSessionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Communications/Calls/Item/ContentSharingSessions/ContentSharingSessionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of contentSharingSession objects in a call. + * Retrieve a list of contentSharingSession objects in a call. This API is supported in the following national cloud deployments. */ class ContentSharingSessionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Communications/Calls/Item/ContentSharingSessions/Item/ContentSharingSessionItemRequestBuilder.php b/src/Generated/Communications/Calls/Item/ContentSharingSessions/Item/ContentSharingSessionItemRequestBuilder.php index 5da564ec2c9..2f0969e27f5 100644 --- a/src/Generated/Communications/Calls/Item/ContentSharingSessions/Item/ContentSharingSessionItemRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/ContentSharingSessions/Item/ContentSharingSessionItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?ContentSharingSessionItemRequestBuilderDeleteRequestConf } /** - * Retrieve the properties of a contentSharingSession object in a call. + * Retrieve the properties of a contentSharingSession object in a call. This API is supported in the following national cloud deployments. * @param ContentSharingSessionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/contentsharingsession-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?ContentSharingSessionItemRequestBuil } /** - * Retrieve the properties of a contentSharingSession object in a call. + * Retrieve the properties of a contentSharingSession object in a call. This API is supported in the following national cloud deployments. * @param ContentSharingSessionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Communications/Calls/Item/ContentSharingSessions/Item/ContentSharingSessionItemRequestBuilderGetQueryParameters.php b/src/Generated/Communications/Calls/Item/ContentSharingSessions/Item/ContentSharingSessionItemRequestBuilderGetQueryParameters.php index 5762b19649d..1873dfd528e 100644 --- a/src/Generated/Communications/Calls/Item/ContentSharingSessions/Item/ContentSharingSessionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Communications/Calls/Item/ContentSharingSessions/Item/ContentSharingSessionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties of a contentSharingSession object in a call. + * Retrieve the properties of a contentSharingSession object in a call. This API is supported in the following national cloud deployments. */ class ContentSharingSessionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Communications/Calls/Item/KeepAlive/KeepAliveRequestBuilder.php b/src/Generated/Communications/Calls/Item/KeepAlive/KeepAliveRequestBuilder.php index 379ec958343..a051289743d 100644 --- a/src/Generated/Communications/Calls/Item/KeepAlive/KeepAliveRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/KeepAlive/KeepAliveRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Make a request to this API every 15 to 45 minutes to ensure that an ongoing call remains active. A call that does not receive this request within 45 minutes is considered inactive and will subsequently end. At least one successful request must be made within 45 minutes of the previous request, or the start of the call. We recommend that you send a request in shorter time intervals (every 15 minutes). Make sure that these requests are successful to prevent the call from timing out and ending. Attempting to send a request to a call that has already ended will result in a 404 Not-Found error. The resources related to the call should be cleaned up on the application side. + * Make a request to this API every 15 to 45 minutes to ensure that an ongoing call remains active. A call that does not receive this request within 45 minutes is considered inactive and will subsequently end. At least one successful request must be made within 45 minutes of the previous request, or the start of the call. We recommend that you send a request in shorter time intervals (every 15 minutes). Make sure that these requests are successful to prevent the call from timing out and ending. Attempting to send a request to a call that has already ended will result in a 404 Not-Found error. The resources related to the call should be cleaned up on the application side. This API is supported in the following national cloud deployments. * @param KeepAliveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/call-keepalive?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?KeepAliveRequestBuilderPostRequestConfiguration $requestCo } /** - * Make a request to this API every 15 to 45 minutes to ensure that an ongoing call remains active. A call that does not receive this request within 45 minutes is considered inactive and will subsequently end. At least one successful request must be made within 45 minutes of the previous request, or the start of the call. We recommend that you send a request in shorter time intervals (every 15 minutes). Make sure that these requests are successful to prevent the call from timing out and ending. Attempting to send a request to a call that has already ended will result in a 404 Not-Found error. The resources related to the call should be cleaned up on the application side. + * Make a request to this API every 15 to 45 minutes to ensure that an ongoing call remains active. A call that does not receive this request within 45 minutes is considered inactive and will subsequently end. At least one successful request must be made within 45 minutes of the previous request, or the start of the call. We recommend that you send a request in shorter time intervals (every 15 minutes). Make sure that these requests are successful to prevent the call from timing out and ending. Attempting to send a request to a call that has already ended will result in a 404 Not-Found error. The resources related to the call should be cleaned up on the application side. This API is supported in the following national cloud deployments. * @param KeepAliveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Communications/Calls/Item/Mute/MuteRequestBuilder.php b/src/Generated/Communications/Calls/Item/Mute/MuteRequestBuilder.php index b8797a07a4a..36e67542cfd 100644 --- a/src/Generated/Communications/Calls/Item/Mute/MuteRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Mute/MuteRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Allows the application to mute itself. This is a server mute, meaning that the server will drop all audio packets for this participant, even if the participant continues to stream audio. For more details about how to handle mute operations, see muteParticipantOperation + * Allows the application to mute itself. This is a server mute, meaning that the server will drop all audio packets for this participant, even if the participant continues to stream audio. For more details about how to handle mute operations, see muteParticipantOperation This API is supported in the following national cloud deployments. * @param MutePostRequestBody $body The request body * @param MuteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(MutePostRequestBody $body, ?MuteRequestBuilderPostRequestCo } /** - * Allows the application to mute itself. This is a server mute, meaning that the server will drop all audio packets for this participant, even if the participant continues to stream audio. For more details about how to handle mute operations, see muteParticipantOperation + * Allows the application to mute itself. This is a server mute, meaning that the server will drop all audio packets for this participant, even if the participant continues to stream audio. For more details about how to handle mute operations, see muteParticipantOperation This API is supported in the following national cloud deployments. * @param MutePostRequestBody $body The request body * @param MuteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/Calls/Item/Operations/Item/CommsOperationItemRequestBuilder.php b/src/Generated/Communications/Calls/Item/Operations/Item/CommsOperationItemRequestBuilder.php index 354fe5a1dfb..4017eba970c 100644 --- a/src/Generated/Communications/Calls/Item/Operations/Item/CommsOperationItemRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Operations/Item/CommsOperationItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?CommsOperationItemRequestBuilderDeleteRequestConfigurati } /** - * Get the status of an operation that adds the large gallery view to a call. + * Get the status of an operation that adds the large gallery view to a call. This API is supported in the following national cloud deployments. * @param CommsOperationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/addlargegalleryviewoperation-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?CommsOperationItemRequestBuilderDele } /** - * Get the status of an operation that adds the large gallery view to a call. + * Get the status of an operation that adds the large gallery view to a call. This API is supported in the following national cloud deployments. * @param CommsOperationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Communications/Calls/Item/Operations/Item/CommsOperationItemRequestBuilderGetQueryParameters.php b/src/Generated/Communications/Calls/Item/Operations/Item/CommsOperationItemRequestBuilderGetQueryParameters.php index 43d321a50fe..7e11075863f 100644 --- a/src/Generated/Communications/Calls/Item/Operations/Item/CommsOperationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Communications/Calls/Item/Operations/Item/CommsOperationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the status of an operation that adds the large gallery view to a call. + * Get the status of an operation that adds the large gallery view to a call. This API is supported in the following national cloud deployments. */ class CommsOperationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Communications/Calls/Item/Operations/OperationsRequestBuilder.php b/src/Generated/Communications/Calls/Item/Operations/OperationsRequestBuilder.php index 796f86a3a84..6c40da5183e 100644 --- a/src/Generated/Communications/Calls/Item/Operations/OperationsRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Operations/OperationsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the status of an operation that adds the large gallery view to a call. + * Get the status of an operation that adds the large gallery view to a call. This API is supported in the following national cloud deployments. * @param OperationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(CommsOperation $body, ?OperationsRequestBuilderPostRequestC } /** - * Get the status of an operation that adds the large gallery view to a call. + * Get the status of an operation that adds the large gallery view to a call. This API is supported in the following national cloud deployments. * @param OperationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Communications/Calls/Item/Operations/OperationsRequestBuilderGetQueryParameters.php b/src/Generated/Communications/Calls/Item/Operations/OperationsRequestBuilderGetQueryParameters.php index 65b144d6705..d8c05b9f7df 100644 --- a/src/Generated/Communications/Calls/Item/Operations/OperationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Communications/Calls/Item/Operations/OperationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the status of an operation that adds the large gallery view to a call. + * Get the status of an operation that adds the large gallery view to a call. This API is supported in the following national cloud deployments. */ class OperationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.php b/src/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.php index 43ede75d8df..01c3a10abfd 100644 --- a/src/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Invite participants to the active call. For more information about how to handle operations, see commsOperation. + * Invite participants to the active call. For more information about how to handle operations, see commsOperation. This API is supported in the following national cloud deployments. * @param InvitePostRequestBody $body The request body * @param InviteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(InvitePostRequestBody $body, ?InviteRequestBuilderPostReque } /** - * Invite participants to the active call. For more information about how to handle operations, see commsOperation. + * Invite participants to the active call. For more information about how to handle operations, see commsOperation. This API is supported in the following national cloud deployments. * @param InvitePostRequestBody $body The request body * @param InviteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/Calls/Item/Participants/Item/Mute/MuteRequestBuilder.php b/src/Generated/Communications/Calls/Item/Participants/Item/Mute/MuteRequestBuilder.php index daada5c40bd..c1586b84e7a 100644 --- a/src/Generated/Communications/Calls/Item/Participants/Item/Mute/MuteRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Participants/Item/Mute/MuteRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Mute a specific participant in the call. This is a server mute, meaning that the server will drop all audio packets for this participant, even if the participant continues to stream audio. For more information about how to handle mute operations, see muteParticipantOperation. + * Mute a specific participant in the call. This is a server mute, meaning that the server will drop all audio packets for this participant, even if the participant continues to stream audio. For more information about how to handle mute operations, see muteParticipantOperation. This API is supported in the following national cloud deployments. * @param MutePostRequestBody $body The request body * @param MuteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(MutePostRequestBody $body, ?MuteRequestBuilderPostRequestCo } /** - * Mute a specific participant in the call. This is a server mute, meaning that the server will drop all audio packets for this participant, even if the participant continues to stream audio. For more information about how to handle mute operations, see muteParticipantOperation. + * Mute a specific participant in the call. This is a server mute, meaning that the server will drop all audio packets for this participant, even if the participant continues to stream audio. For more information about how to handle mute operations, see muteParticipantOperation. This API is supported in the following national cloud deployments. * @param MutePostRequestBody $body The request body * @param MuteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.php b/src/Generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.php index 54803cf0e04..d156082e28a 100644 --- a/src/Generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.php @@ -56,7 +56,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. + * Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. This API is supported in the following national cloud deployments. * @param ParticipantItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0 Find more info here @@ -75,7 +75,7 @@ public function delete(?ParticipantItemRequestBuilderDeleteRequestConfiguration } /** - * Retrieve the properties and relationships of a participant object. + * Retrieve the properties and relationships of a participant object. This API is supported in the following national cloud deployments. * @param ParticipantItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/participant-get?view=graph-rest-1.0 Find more info here @@ -113,7 +113,7 @@ public function patch(Participant $body, ?ParticipantItemRequestBuilderPatchRequ } /** - * Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. + * Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. This API is supported in the following national cloud deployments. * @param ParticipantItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -130,7 +130,7 @@ public function toDeleteRequestInformation(?ParticipantItemRequestBuilderDeleteR } /** - * Retrieve the properties and relationships of a participant object. + * Retrieve the properties and relationships of a participant object. This API is supported in the following national cloud deployments. * @param ParticipantItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilderGetQueryParameters.php b/src/Generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilderGetQueryParameters.php index f57b05e8310..7c06554def5 100644 --- a/src/Generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a participant object. + * Retrieve the properties and relationships of a participant object. This API is supported in the following national cloud deployments. */ class ParticipantItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Communications/Calls/Item/Participants/Item/StartHoldMusic/StartHoldMusicRequestBuilder.php b/src/Generated/Communications/Calls/Item/Participants/Item/StartHoldMusic/StartHoldMusicRequestBuilder.php index b7b7b3dc33b..7b11d749a00 100644 --- a/src/Generated/Communications/Calls/Item/Participants/Item/StartHoldMusic/StartHoldMusicRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Participants/Item/StartHoldMusic/StartHoldMusicRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Put a participant on hold and play music in the background. + * Put a participant on hold and play music in the background. This API is supported in the following national cloud deployments. * @param StartHoldMusicPostRequestBody $body The request body * @param StartHoldMusicRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(StartHoldMusicPostRequestBody $body, ?StartHoldMusicRequest } /** - * Put a participant on hold and play music in the background. + * Put a participant on hold and play music in the background. This API is supported in the following national cloud deployments. * @param StartHoldMusicPostRequestBody $body The request body * @param StartHoldMusicRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/Calls/Item/Participants/Item/StopHoldMusic/StopHoldMusicRequestBuilder.php b/src/Generated/Communications/Calls/Item/Participants/Item/StopHoldMusic/StopHoldMusicRequestBuilder.php index 426dc04f259..8cd824da678 100644 --- a/src/Generated/Communications/Calls/Item/Participants/Item/StopHoldMusic/StopHoldMusicRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Participants/Item/StopHoldMusic/StopHoldMusicRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Reincorporate a participant previously put on hold to the call. + * Reincorporate a participant previously put on hold to the call. This API is supported in the following national cloud deployments. * @param StopHoldMusicPostRequestBody $body The request body * @param StopHoldMusicRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(StopHoldMusicPostRequestBody $body, ?StopHoldMusicRequestBu } /** - * Reincorporate a participant previously put on hold to the call. + * Reincorporate a participant previously put on hold to the call. This API is supported in the following national cloud deployments. * @param StopHoldMusicPostRequestBody $body The request body * @param StopHoldMusicRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/Calls/Item/Participants/ParticipantsRequestBuilder.php b/src/Generated/Communications/Calls/Item/Participants/ParticipantsRequestBuilder.php index 99c4d775ce0..0f9a8060954 100644 --- a/src/Generated/Communications/Calls/Item/Participants/ParticipantsRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Participants/ParticipantsRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of participant objects in the call. + * Retrieve a list of participant objects in the call. This API is supported in the following national cloud deployments. * @param ParticipantsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/call-list-participants?view=graph-rest-1.0 Find more info here @@ -99,7 +99,7 @@ public function post(Participant $body, ?ParticipantsRequestBuilderPostRequestCo } /** - * Retrieve a list of participant objects in the call. + * Retrieve a list of participant objects in the call. This API is supported in the following national cloud deployments. * @param ParticipantsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Communications/Calls/Item/Participants/ParticipantsRequestBuilderGetQueryParameters.php b/src/Generated/Communications/Calls/Item/Participants/ParticipantsRequestBuilderGetQueryParameters.php index 45bcc3ae5e0..55beba33920 100644 --- a/src/Generated/Communications/Calls/Item/Participants/ParticipantsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Communications/Calls/Item/Participants/ParticipantsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of participant objects in the call. + * Retrieve a list of participant objects in the call. This API is supported in the following national cloud deployments. */ class ParticipantsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Communications/Calls/Item/PlayPrompt/PlayPromptRequestBuilder.php b/src/Generated/Communications/Calls/Item/PlayPrompt/PlayPromptRequestBuilder.php index 525a395f63f..71076ac6c0e 100644 --- a/src/Generated/Communications/Calls/Item/PlayPrompt/PlayPromptRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/PlayPrompt/PlayPromptRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Play a prompt in the call. For more information about how to handle operations, see commsOperation + * Play a prompt in the call. For more information about how to handle operations, see commsOperation This API is supported in the following national cloud deployments. * @param PlayPromptPostRequestBody $body The request body * @param PlayPromptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(PlayPromptPostRequestBody $body, ?PlayPromptRequestBuilderP } /** - * Play a prompt in the call. For more information about how to handle operations, see commsOperation + * Play a prompt in the call. For more information about how to handle operations, see commsOperation This API is supported in the following national cloud deployments. * @param PlayPromptPostRequestBody $body The request body * @param PlayPromptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/Calls/Item/RecordResponse/RecordResponseRequestBuilder.php b/src/Generated/Communications/Calls/Item/RecordResponse/RecordResponseRequestBuilder.php index f10bb2eb87c..986a21dfc0e 100644 --- a/src/Generated/Communications/Calls/Item/RecordResponse/RecordResponseRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/RecordResponse/RecordResponseRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Records a short audio response from the caller.A bot can utilize this to capture a voice response from a caller after they are prompted for a response. For further information on how to handle operations, please review commsOperation This action is not intended to record the entire call. The maximum length of recording is 2 minutes. The recording is not saved permanently by the Cloud Communications Platform and is discarded shortly after the call ends. The bot must download the recording promptly after the recording operation finishes by using the recordingLocation value that's given in the completed notification. + * Records a short audio response from the caller.A bot can utilize this to capture a voice response from a caller after they are prompted for a response. For further information on how to handle operations, please review commsOperation This action is not intended to record the entire call. The maximum length of recording is 2 minutes. The recording is not saved permanently by the Cloud Communications Platform and is discarded shortly after the call ends. The bot must download the recording promptly after the recording operation finishes by using the recordingLocation value that's given in the completed notification. This API is supported in the following national cloud deployments. * @param RecordResponsePostRequestBody $body The request body * @param RecordResponseRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(RecordResponsePostRequestBody $body, ?RecordResponseRequest } /** - * Records a short audio response from the caller.A bot can utilize this to capture a voice response from a caller after they are prompted for a response. For further information on how to handle operations, please review commsOperation This action is not intended to record the entire call. The maximum length of recording is 2 minutes. The recording is not saved permanently by the Cloud Communications Platform and is discarded shortly after the call ends. The bot must download the recording promptly after the recording operation finishes by using the recordingLocation value that's given in the completed notification. + * Records a short audio response from the caller.A bot can utilize this to capture a voice response from a caller after they are prompted for a response. For further information on how to handle operations, please review commsOperation This action is not intended to record the entire call. The maximum length of recording is 2 minutes. The recording is not saved permanently by the Cloud Communications Platform and is discarded shortly after the call ends. The bot must download the recording promptly after the recording operation finishes by using the recordingLocation value that's given in the completed notification. This API is supported in the following national cloud deployments. * @param RecordResponsePostRequestBody $body The request body * @param RecordResponseRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/Calls/Item/Redirect/RedirectRequestBuilder.php b/src/Generated/Communications/Calls/Item/Redirect/RedirectRequestBuilder.php index 1ccfb9f74ca..cb32576cfd2 100644 --- a/src/Generated/Communications/Calls/Item/Redirect/RedirectRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Redirect/RedirectRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Redirect an incoming call that hasn't been answered or rejected yet. The terms 'redirecting' and 'forwarding' a call are used interchangeably. The bot is expected to redirect the call before the call times out. The current timeout value is 15 seconds. + * Redirect an incoming call that hasn't been answered or rejected yet. The terms 'redirecting' and 'forwarding' a call are used interchangeably. The bot is expected to redirect the call before the call times out. The current timeout value is 15 seconds. This API is supported in the following national cloud deployments. * @param RedirectPostRequestBody $body The request body * @param RedirectRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(RedirectPostRequestBody $body, ?RedirectRequestBuilderPostR } /** - * Redirect an incoming call that hasn't been answered or rejected yet. The terms 'redirecting' and 'forwarding' a call are used interchangeably. The bot is expected to redirect the call before the call times out. The current timeout value is 15 seconds. + * Redirect an incoming call that hasn't been answered or rejected yet. The terms 'redirecting' and 'forwarding' a call are used interchangeably. The bot is expected to redirect the call before the call times out. The current timeout value is 15 seconds. This API is supported in the following national cloud deployments. * @param RedirectPostRequestBody $body The request body * @param RedirectRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/Calls/Item/Reject/RejectRequestBuilder.php b/src/Generated/Communications/Calls/Item/Reject/RejectRequestBuilder.php index ea907f1f181..9ee912257fa 100644 --- a/src/Generated/Communications/Calls/Item/Reject/RejectRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Reject/RejectRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Enable a bot to reject an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite to a group call is received, the notification will contain the chatInfo and meetingInfo parameters. The bot is expected to answer or reject the call before the call times out. The current timeout value is 15 seconds. This API does not end existing calls that have already been answered. Use delete call to end a call. + * Enable a bot to reject an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite to a group call is received, the notification will contain the chatInfo and meetingInfo parameters. The bot is expected to answer or reject the call before the call times out. The current timeout value is 15 seconds. This API does not end existing calls that have already been answered. Use delete call to end a call. This API is supported in the following national cloud deployments. * @param RejectPostRequestBody $body The request body * @param RejectRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(RejectPostRequestBody $body, ?RejectRequestBuilderPostReque } /** - * Enable a bot to reject an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite to a group call is received, the notification will contain the chatInfo and meetingInfo parameters. The bot is expected to answer or reject the call before the call times out. The current timeout value is 15 seconds. This API does not end existing calls that have already been answered. Use delete call to end a call. + * Enable a bot to reject an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite to a group call is received, the notification will contain the chatInfo and meetingInfo parameters. The bot is expected to answer or reject the call before the call times out. The current timeout value is 15 seconds. This API does not end existing calls that have already been answered. Use delete call to end a call. This API is supported in the following national cloud deployments. * @param RejectPostRequestBody $body The request body * @param RejectRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/Calls/Item/SubscribeToTone/SubscribeToToneRequestBuilder.php b/src/Generated/Communications/Calls/Item/SubscribeToTone/SubscribeToToneRequestBuilder.php index a8e1814b5ff..a8b67fd9a0d 100644 --- a/src/Generated/Communications/Calls/Item/SubscribeToTone/SubscribeToToneRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/SubscribeToTone/SubscribeToToneRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Subscribe to DTMF (dual-tone multi-frequency signaling). This allows you to be notified when the user presses keys on a 'dialpad'. + * Subscribe to DTMF (dual-tone multi-frequency signaling). This allows you to be notified when the user presses keys on a 'dialpad'. This API is supported in the following national cloud deployments. * @param SubscribeToTonePostRequestBody $body The request body * @param SubscribeToToneRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(SubscribeToTonePostRequestBody $body, ?SubscribeToToneReque } /** - * Subscribe to DTMF (dual-tone multi-frequency signaling). This allows you to be notified when the user presses keys on a 'dialpad'. + * Subscribe to DTMF (dual-tone multi-frequency signaling). This allows you to be notified when the user presses keys on a 'dialpad'. This API is supported in the following national cloud deployments. * @param SubscribeToTonePostRequestBody $body The request body * @param SubscribeToToneRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/Calls/Item/Transfer/TransferRequestBuilder.php b/src/Generated/Communications/Calls/Item/Transfer/TransferRequestBuilder.php index 517f1082cff..978ebb5f2bf 100644 --- a/src/Generated/Communications/Calls/Item/Transfer/TransferRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Transfer/TransferRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Transfer an active peer-to-peer call or group call. A consultative transfer means that the transferor can inform the person they want to transfer the call to (the transferee), before the transfer is made. This is opposed to transfering the call directly. + * Transfer an active peer-to-peer call or group call. A consultative transfer means that the transferor can inform the person they want to transfer the call to (the transferee), before the transfer is made. This is opposed to transfering the call directly. This API is supported in the following national cloud deployments. * @param TransferPostRequestBody $body The request body * @param TransferRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(TransferPostRequestBody $body, ?TransferRequestBuilderPostR } /** - * Transfer an active peer-to-peer call or group call. A consultative transfer means that the transferor can inform the person they want to transfer the call to (the transferee), before the transfer is made. This is opposed to transfering the call directly. + * Transfer an active peer-to-peer call or group call. A consultative transfer means that the transferor can inform the person they want to transfer the call to (the transferee), before the transfer is made. This is opposed to transfering the call directly. This API is supported in the following national cloud deployments. * @param TransferPostRequestBody $body The request body * @param TransferRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/Calls/Item/Unmute/UnmuteRequestBuilder.php b/src/Generated/Communications/Calls/Item/Unmute/UnmuteRequestBuilder.php index f3a8059cbd0..0414dc33746 100644 --- a/src/Generated/Communications/Calls/Item/Unmute/UnmuteRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Unmute/UnmuteRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Allow the application to unmute itself. This is a server unmute, meaning that the server will start sending audio packets for this participant to other participants again. For more information about how to handle unmute operations, see unmuteParticipantOperation. + * Allow the application to unmute itself. This is a server unmute, meaning that the server will start sending audio packets for this participant to other participants again. For more information about how to handle unmute operations, see unmuteParticipantOperation. This API is supported in the following national cloud deployments. * @param UnmutePostRequestBody $body The request body * @param UnmuteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(UnmutePostRequestBody $body, ?UnmuteRequestBuilderPostReque } /** - * Allow the application to unmute itself. This is a server unmute, meaning that the server will start sending audio packets for this participant to other participants again. For more information about how to handle unmute operations, see unmuteParticipantOperation. + * Allow the application to unmute itself. This is a server unmute, meaning that the server will start sending audio packets for this participant to other participants again. For more information about how to handle unmute operations, see unmuteParticipantOperation. This API is supported in the following national cloud deployments. * @param UnmutePostRequestBody $body The request body * @param UnmuteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusRequestBuilder.php b/src/Generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusRequestBuilder.php index 490a80b7ed1..38322f44caf 100644 --- a/src/Generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Update the application's recording status associated with a call. This requires the use of the Teams policy-based recording solution. + * Update the application's recording status associated with a call. This requires the use of the Teams policy-based recording solution. This API is supported in the following national cloud deployments. * @param UpdateRecordingStatusPostRequestBody $body The request body * @param UpdateRecordingStatusRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(UpdateRecordingStatusPostRequestBody $body, ?UpdateRecordin } /** - * Update the application's recording status associated with a call. This requires the use of the Teams policy-based recording solution. + * Update the application's recording status associated with a call. This requires the use of the Teams policy-based recording solution. This API is supported in the following national cloud deployments. * @param UpdateRecordingStatusPostRequestBody $body The request body * @param UpdateRecordingStatusRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityRequestBuilder.php b/src/Generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityRequestBuilder.php index 3f7f5696041..508bd69fb68 100644 --- a/src/Generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityRequestBuilder.php +++ b/src/Generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Log video teleconferencing device quality data. The Cloud Video Interop (CVI) bot represents video teleconferencing (VTC) devices and acts as a back-to-back agent for a VTC device in a conference call. Because a CVI bot is in the middle of the VTC and Microsoft Teams infrastructure as a VTC proxy, it has two media legs. One media leg is between the CVI bot and Teams infrastructure, such as Teams conference server or a Teams client. The other media leg is between the CVI bot and the VTC device. The third-party partners own the VTC media leg and the Teams infrastructure cannot access the quality data of the third-party call leg. This method is only for the CVI partners to provide their media quality data. + * Log video teleconferencing device quality data. The Cloud Video Interop (CVI) bot represents video teleconferencing (VTC) devices and acts as a back-to-back agent for a VTC device in a conference call. Because a CVI bot is in the middle of the VTC and Microsoft Teams infrastructure as a VTC proxy, it has two media legs. One media leg is between the CVI bot and Teams infrastructure, such as Teams conference server or a Teams client. The other media leg is between the CVI bot and the VTC device. The third-party partners own the VTC media leg and the Teams infrastructure cannot access the quality data of the third-party call leg. This method is only for the CVI partners to provide their media quality data. This API is supported in the following national cloud deployments. * @param LogTeleconferenceDeviceQualityPostRequestBody $body The request body * @param LogTeleconferenceDeviceQualityRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(LogTeleconferenceDeviceQualityPostRequestBody $body, ?LogTe } /** - * Log video teleconferencing device quality data. The Cloud Video Interop (CVI) bot represents video teleconferencing (VTC) devices and acts as a back-to-back agent for a VTC device in a conference call. Because a CVI bot is in the middle of the VTC and Microsoft Teams infrastructure as a VTC proxy, it has two media legs. One media leg is between the CVI bot and Teams infrastructure, such as Teams conference server or a Teams client. The other media leg is between the CVI bot and the VTC device. The third-party partners own the VTC media leg and the Teams infrastructure cannot access the quality data of the third-party call leg. This method is only for the CVI partners to provide their media quality data. + * Log video teleconferencing device quality data. The Cloud Video Interop (CVI) bot represents video teleconferencing (VTC) devices and acts as a back-to-back agent for a VTC device in a conference call. Because a CVI bot is in the middle of the VTC and Microsoft Teams infrastructure as a VTC proxy, it has two media legs. One media leg is between the CVI bot and Teams infrastructure, such as Teams conference server or a Teams client. The other media leg is between the CVI bot and the VTC device. The third-party partners own the VTC media leg and the Teams infrastructure cannot access the quality data of the third-party call leg. This method is only for the CVI partners to provide their media quality data. This API is supported in the following national cloud deployments. * @param LogTeleconferenceDeviceQualityPostRequestBody $body The request body * @param LogTeleconferenceDeviceQualityRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdPostResponse.php b/src/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdPostResponse.php new file mode 100644 index 00000000000..dd748a75f86 --- /dev/null +++ b/src/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Presence::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, Presence::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/Communications/GetPresencesByUserId/GetPresencesByUserIdRequestBuilder.php b/src/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdRequestBuilder.php index 0888c53d089..b64685883af 100644 --- a/src/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdRequestBuilder.php +++ b/src/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the presence information for multiple users. + * Get the presence information for multiple users. This API is supported in the following national cloud deployments. * @param GetPresencesByUserIdPostRequestBody $body The request body * @param GetPresencesByUserIdRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetPresencesByUserIdPostRequestBody $body, ?GetPresencesByU '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetPresencesByUserIdResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetPresencesByUserIdPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Get the presence information for multiple users. + * Get the presence information for multiple users. This API is supported in the following national cloud deployments. * @param GetPresencesByUserIdPostRequestBody $body The request body * @param GetPresencesByUserIdRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdResponse.php b/src/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdResponse.php deleted file mode 100644 index 9774abbe728..00000000000 --- a/src/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Presence::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, Presence::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/Communications/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.php index fe550780dac..fb43dcdab70 100644 --- a/src/Generated/Communications/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.php +++ b/src/Generated/Communications/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create an onlineMeeting object with a custom specified external ID. If the external ID already exists, this API will return the onlineMeeting object with that external ID. + * Create an onlineMeeting object with a custom specified external ID. If the external ID already exists, this API will return the onlineMeeting object with that external ID. This API is supported in the following national cloud deployments. * @param CreateOrGetPostRequestBody $body The request body * @param CreateOrGetRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CreateOrGetPostRequestBody $body, ?CreateOrGetRequestBuilde } /** - * Create an onlineMeeting object with a custom specified external ID. If the external ID already exists, this API will return the onlineMeeting object with that external ID. + * Create an onlineMeeting object with a custom specified external ID. If the external ID already exists, this API will return the onlineMeeting object with that external ID. This API is supported in the following national cloud deployments. * @param CreateOrGetPostRequestBody $body The request body * @param CreateOrGetRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.php index c82883ccf75..e5a840b3a69 100644 --- a/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.php +++ b/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. + * Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. This API is supported in the following national cloud deployments. * @param AttendanceReportsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/meetingattendancereport-list?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(MeetingAttendanceReport $body, ?AttendanceReportsRequestBui } /** - * Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. + * Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. This API is supported in the following national cloud deployments. * @param AttendanceReportsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilderGetQueryParameters.php b/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilderGetQueryParameters.php index 1844ae3c6ab..3060a0178f0 100644 --- a/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. + * Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. This API is supported in the following national cloud deployments. */ class AttendanceReportsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.php index f6c100ea85d..8a9433c2ae3 100644 --- a/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.php +++ b/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of attendanceRecord objects and their properties. + * Get a list of attendanceRecord objects and their properties. This API is supported in the following national cloud deployments. * @param AttendanceRecordsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/attendancerecord-list?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(AttendanceRecord $body, ?AttendanceRecordsRequestBuilderPos } /** - * Get a list of attendanceRecord objects and their properties. + * Get a list of attendanceRecord objects and their properties. This API is supported in the following national cloud deployments. * @param AttendanceRecordsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilderGetQueryParameters.php b/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilderGetQueryParameters.php index 8697309bf20..bf79362a97f 100644 --- a/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of attendanceRecord objects and their properties. + * Get a list of attendanceRecord objects and their properties. This API is supported in the following national cloud deployments. */ class AttendanceRecordsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.php index d1b565c4156..af5da9a0025 100644 --- a/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.php +++ b/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?MeetingAttendanceReportItemRequestBuilderDeleteRequestCo } /** - * Get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report will be generated for that session. + * Get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report will be generated for that session. This API is supported in the following national cloud deployments. * @param MeetingAttendanceReportItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/meetingattendancereport-get?view=graph-rest-1.0 Find more info here @@ -113,7 +113,7 @@ public function toDeleteRequestInformation(?MeetingAttendanceReportItemRequestBu } /** - * Get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report will be generated for that session. + * Get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report will be generated for that session. This API is supported in the following national cloud deployments. * @param MeetingAttendanceReportItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilderGetQueryParameters.php b/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilderGetQueryParameters.php index 7a4e6fab5df..e3b105c17e1 100644 --- a/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report will be generated for that session. + * Get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report will be generated for that session. This API is supported in the following national cloud deployments. */ class MeetingAttendanceReportItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlGetResponse.php b/src/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlGetResponse.php new file mode 100644 index 00000000000..d8d6f9f1b23 --- /dev/null +++ b/src/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlGetResponse.php @@ -0,0 +1,114 @@ +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 GetVirtualAppointmentJoinWebUrlGetResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): GetVirtualAppointmentJoinWebUrlGetResponse { + return new GetVirtualAppointmentJoinWebUrlGetResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getStringValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return string|null + */ + public function getValue(): ?string { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_string($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 { + $writer->writeStringValue('value', $this->getValue()); + $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 value property value. The value property + * @param string|null $value Value to set for the value property. + */ + public function setValue(?string $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.php index d11448fd7b2..a4748461ee5 100644 --- a/src/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.php +++ b/src/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?GetVirtualAppointmentJoinWebUrlRequestBuilderGetRequestConf '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetVirtualAppointmentJoinWebUrlResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetVirtualAppointmentJoinWebUrlGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlResponse.php b/src/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlResponse.php deleted file mode 100644 index 63702b7ab37..00000000000 --- a/src/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 GetVirtualAppointmentJoinWebUrlResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): GetVirtualAppointmentJoinWebUrlResponse { - return new GetVirtualAppointmentJoinWebUrlResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getStringValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return string|null - */ - public function getValue(): ?string { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_string($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 { - $writer->writeStringValue('value', $this->getValue()); - $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 value property value. The value property - * @param string|null $value Value to set for the value property. - */ - public function setValue(?string $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Communications/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.php index 50026aad1e0..aa50bcd752b 100644 --- a/src/Generated/Communications/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.php +++ b/src/Generated/Communications/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.php @@ -8,6 +8,7 @@ use Microsoft\Graph\Generated\Communications\OnlineMeetings\Item\AttendanceReports\AttendanceReportsRequestBuilder; use Microsoft\Graph\Generated\Communications\OnlineMeetings\Item\AttendeeReport\AttendeeReportRequestBuilder; use Microsoft\Graph\Generated\Communications\OnlineMeetings\Item\GetVirtualAppointmentJoinWebUrl\GetVirtualAppointmentJoinWebUrlRequestBuilder; +use Microsoft\Graph\Generated\Communications\OnlineMeetings\Item\Transcripts\TranscriptsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\OnlineMeeting; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -41,6 +42,13 @@ public function getVirtualAppointmentJoinWebUrl(): GetVirtualAppointmentJoinWebU return new GetVirtualAppointmentJoinWebUrlRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to manage the transcripts property of the microsoft.graph.onlineMeeting entity. + */ + public function transcripts(): TranscriptsRequestBuilder { + return new TranscriptsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new OnlineMeetingItemRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..5588573bde0 --- /dev/null +++ b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/Communications/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..ae651a25de4 --- /dev/null +++ b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..72b020952e8 --- /dev/null +++ b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/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/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.php new file mode 100644 index 00000000000..61f9a457ad6 --- /dev/null +++ b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.php @@ -0,0 +1,172 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the media for the cloudCommunications entity. + */ + public function metadataContent(): MetadataContentRequestBuilder { + return new MetadataContentRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new CallTranscriptItemRequestBuilder 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}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property transcripts for communications + * @param CallTranscriptItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?CallTranscriptItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get transcripts from communications + * @param CallTranscriptItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?CallTranscriptItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [CallTranscript::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property transcripts in communications + * @param CallTranscript $body The request body + * @param CallTranscriptItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(CallTranscript $body, ?CallTranscriptItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [CallTranscript::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property transcripts for communications + * @param CallTranscriptItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?CallTranscriptItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get transcripts from communications + * @param CallTranscriptItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CallTranscriptItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property transcripts in communications + * @param CallTranscript $body The request body + * @param CallTranscriptItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(CallTranscript $body, ?CallTranscriptItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 CallTranscriptItemRequestBuilder + */ + public function withUrl(string $rawUrl): CallTranscriptItemRequestBuilder { + return new CallTranscriptItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..a83741d5d14 --- /dev/null +++ b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilderDeleteRequestConfiguration.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/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilderGetQueryParameters.php b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..f8067e39096 --- /dev/null +++ b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilderGetQueryParameters.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 CallTranscriptItemRequestBuilderGetQueryParameters 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/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..1489471d515 --- /dev/null +++ b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CallTranscriptItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CallTranscriptItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CallTranscriptItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return CallTranscriptItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): CallTranscriptItemRequestBuilderGetQueryParameters { + return new CallTranscriptItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..0bb97e711da --- /dev/null +++ b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilderPatchRequestConfiguration.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/Communications/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.php new file mode 100644 index 00000000000..48765a2bf01 --- /dev/null +++ b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.php @@ -0,0 +1,118 @@ +|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}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}/content'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get content for the navigation property transcripts from communications + * @param ContentRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ContentRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, StreamInterface::class, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update content for the navigation property transcripts in communications + * @param StreamInterface $body Binary request body + * @param ContentRequestBuilderPutRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function put(StreamInterface $body, ?ContentRequestBuilderPutRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPutRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [CallTranscript::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get content for the navigation property transcripts from communications + * @param ContentRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfiguration $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); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update content for the navigation property transcripts in communications + * @param StreamInterface $body Binary request body + * @param ContentRequestBuilderPutRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBuilderPutRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PUT; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setStreamContent($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 ContentRequestBuilder + */ + public function withUrl(string $rawUrl): ContentRequestBuilder { + return new ContentRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilderGetRequestConfiguration.php b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..fa9dc2810b9 --- /dev/null +++ b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilderGetRequestConfiguration.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/Communications/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilderPutRequestConfiguration.php b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilderPutRequestConfiguration.php new file mode 100644 index 00000000000..c84ef3b0e37 --- /dev/null +++ b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilderPutRequestConfiguration.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/Communications/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.php new file mode 100644 index 00000000000..7d75ad1d68b --- /dev/null +++ b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.php @@ -0,0 +1,116 @@ +|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}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}/metadataContent'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get metadataContent for the navigation property transcripts from communications + * @param MetadataContentRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MetadataContentRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, StreamInterface::class, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update metadataContent for the navigation property transcripts in communications + * @param StreamInterface $body Binary request body + * @param MetadataContentRequestBuilderPutRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function put(StreamInterface $body, ?MetadataContentRequestBuilderPutRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPutRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, StreamInterface::class, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get metadataContent for the navigation property transcripts from communications + * @param MetadataContentRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MetadataContentRequestBuilderGetRequestConfiguration $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); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update metadataContent for the navigation property transcripts in communications + * @param StreamInterface $body Binary request body + * @param MetadataContentRequestBuilderPutRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPutRequestInformation(StreamInterface $body, ?MetadataContentRequestBuilderPutRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PUT; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->setStreamContent($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 MetadataContentRequestBuilder + */ + public function withUrl(string $rawUrl): MetadataContentRequestBuilder { + return new MetadataContentRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilderGetRequestConfiguration.php b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..9ba880fe88e --- /dev/null +++ b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilderGetRequestConfiguration.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/Communications/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilderPutRequestConfiguration.php b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilderPutRequestConfiguration.php new file mode 100644 index 00000000000..7cc79e767ae --- /dev/null +++ b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilderPutRequestConfiguration.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/Communications/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.php new file mode 100644 index 00000000000..8c2ee09dbfa --- /dev/null +++ b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the transcripts property of the microsoft.graph.onlineMeeting entity. + * @param string $callTranscriptId The unique identifier of callTranscript + * @return CallTranscriptItemRequestBuilder + */ + public function byCallTranscriptId(string $callTranscriptId): CallTranscriptItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['callTranscript%2Did'] = $callTranscriptId; + return new CallTranscriptItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new TranscriptsRequestBuilder 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}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get transcripts from communications + * @param TranscriptsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?TranscriptsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [CallTranscriptCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to transcripts for communications + * @param CallTranscript $body The request body + * @param TranscriptsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(CallTranscript $body, ?TranscriptsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [CallTranscript::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get transcripts from communications + * @param TranscriptsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?TranscriptsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to transcripts for communications + * @param CallTranscript $body The request body + * @param TranscriptsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(CallTranscript $body, ?TranscriptsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 TranscriptsRequestBuilder + */ + public function withUrl(string $rawUrl): TranscriptsRequestBuilder { + return new TranscriptsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Communications/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilderGetQueryParameters.php b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..2c3daad8ce6 --- /dev/null +++ b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilderGetQueryParameters.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 transcriptsRequestBuilderGetQueryParameters 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/Communications/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilderGetRequestConfiguration.php b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..b941817fb3f --- /dev/null +++ b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param TranscriptsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?TranscriptsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new transcriptsRequestBuilderGetQueryParameters. + * @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 TranscriptsRequestBuilderGetQueryParameters + */ + 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): TranscriptsRequestBuilderGetQueryParameters { + return new TranscriptsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Communications/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilderPostRequestConfiguration.php b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..123c6dc91e5 --- /dev/null +++ b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilderPostRequestConfiguration.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/Communications/OnlineMeetings/OnlineMeetingsRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/OnlineMeetingsRequestBuilder.php index 012e7065d30..fb0c5a7e453 100644 --- a/src/Generated/Communications/OnlineMeetings/OnlineMeetingsRequestBuilder.php +++ b/src/Generated/Communications/OnlineMeetings/OnlineMeetingsRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. + * Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. This API is supported in the following national cloud deployments. * @param OnlineMeetingsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/onlinemeeting-get?view=graph-rest-1.0 Find more info here @@ -99,7 +99,7 @@ public function post(OnlineMeeting $body, ?OnlineMeetingsRequestBuilderPostReque } /** - * Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. + * Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. This API is supported in the following national cloud deployments. * @param OnlineMeetingsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Communications/OnlineMeetings/OnlineMeetingsRequestBuilderGetQueryParameters.php b/src/Generated/Communications/OnlineMeetings/OnlineMeetingsRequestBuilderGetQueryParameters.php index 3da8d1e1e7f..1c07644fabd 100644 --- a/src/Generated/Communications/OnlineMeetings/OnlineMeetingsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Communications/OnlineMeetings/OnlineMeetingsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. + * Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. This API is supported in the following national cloud deployments. */ class OnlineMeetingsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Communications/Presences/Item/ClearPresence/ClearPresenceRequestBuilder.php b/src/Generated/Communications/Presences/Item/ClearPresence/ClearPresenceRequestBuilder.php index f12a9e1e88b..72529bbed2c 100644 --- a/src/Generated/Communications/Presences/Item/ClearPresence/ClearPresenceRequestBuilder.php +++ b/src/Generated/Communications/Presences/Item/ClearPresence/ClearPresenceRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Clear the application's presence session for a user. If it is the user's only presence session, the user's presence will change to Offline/Offline. For details about presences sessions, see presence: setPresence. + * Clear the application's presence session for a user. If it is the user's only presence session, the user's presence will change to Offline/Offline. For details about presences sessions, see presence: setPresence. This API is supported in the following national cloud deployments. * @param ClearPresencePostRequestBody $body The request body * @param ClearPresenceRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ClearPresencePostRequestBody $body, ?ClearPresenceRequestBu } /** - * Clear the application's presence session for a user. If it is the user's only presence session, the user's presence will change to Offline/Offline. For details about presences sessions, see presence: setPresence. + * Clear the application's presence session for a user. If it is the user's only presence session, the user's presence will change to Offline/Offline. For details about presences sessions, see presence: setPresence. This API is supported in the following national cloud deployments. * @param ClearPresencePostRequestBody $body The request body * @param ClearPresenceRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/Presences/Item/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.php b/src/Generated/Communications/Presences/Item/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.php index acc89ebac47..2023593c6ea 100644 --- a/src/Generated/Communications/Presences/Item/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.php +++ b/src/Generated/Communications/Presences/Item/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Clear the preferred availability and activity status for a user. + * Clear the preferred availability and activity status for a user. This API is supported in the following national cloud deployments. * @param ClearUserPreferredPresenceRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/presence-clearuserpreferredpresence?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ClearUserPreferredPresenceRequestBuilderPostRequestConfigu } /** - * Clear the preferred availability and activity status for a user. + * Clear the preferred availability and activity status for a user. This API is supported in the following national cloud deployments. * @param ClearUserPreferredPresenceRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Communications/Presences/Item/PresenceItemRequestBuilder.php b/src/Generated/Communications/Presences/Item/PresenceItemRequestBuilder.php index db5311e4d31..8604985f394 100644 --- a/src/Generated/Communications/Presences/Item/PresenceItemRequestBuilder.php +++ b/src/Generated/Communications/Presences/Item/PresenceItemRequestBuilder.php @@ -90,7 +90,7 @@ public function delete(?PresenceItemRequestBuilderDeleteRequestConfiguration $re } /** - * Get a user's presence information. + * Get a user's presence information. This API is supported in the following national cloud deployments. * @param PresenceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/presence-get?view=graph-rest-1.0 Find more info here @@ -145,7 +145,7 @@ public function toDeleteRequestInformation(?PresenceItemRequestBuilderDeleteRequ } /** - * Get a user's presence information. + * Get a user's presence information. This API is supported in the following national cloud deployments. * @param PresenceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Communications/Presences/Item/PresenceItemRequestBuilderGetQueryParameters.php b/src/Generated/Communications/Presences/Item/PresenceItemRequestBuilderGetQueryParameters.php index d45bc7ada53..12112809d7f 100644 --- a/src/Generated/Communications/Presences/Item/PresenceItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Communications/Presences/Item/PresenceItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a user's presence information. + * Get a user's presence information. This API is supported in the following national cloud deployments. */ class PresenceItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Communications/Presences/Item/SetPresence/SetPresenceRequestBuilder.php b/src/Generated/Communications/Presences/Item/SetPresence/SetPresenceRequestBuilder.php index 70797d2f1e1..ab498f83686 100644 --- a/src/Generated/Communications/Presences/Item/SetPresence/SetPresenceRequestBuilder.php +++ b/src/Generated/Communications/Presences/Item/SetPresence/SetPresenceRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Set the state of a user's presence session as an application. + * Set the state of a user's presence session as an application. This API is supported in the following national cloud deployments. * @param SetPresencePostRequestBody $body The request body * @param SetPresenceRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(SetPresencePostRequestBody $body, ?SetPresenceRequestBuilde } /** - * Set the state of a user's presence session as an application. + * Set the state of a user's presence session as an application. This API is supported in the following national cloud deployments. * @param SetPresencePostRequestBody $body The request body * @param SetPresenceRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessageRequestBuilder.php b/src/Generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessageRequestBuilder.php index 2499a77b27a..5b41787aac9 100644 --- a/src/Generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessageRequestBuilder.php +++ b/src/Generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessageRequestBuilder.php @@ -31,10 +31,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Invoke action setStatusMessage + * Set a presence status message for a user. An optional expiration date and time can be supplied. This API is supported in the following national cloud deployments. * @param SetStatusMessagePostRequestBody $body The request body * @param SetStatusMessageRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise + * @link https://learn.microsoft.com/graph/api/presence-setstatusmessage?view=graph-rest-1.0 Find more info here */ public function post(SetStatusMessagePostRequestBody $body, ?SetStatusMessageRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -50,7 +51,7 @@ public function post(SetStatusMessagePostRequestBody $body, ?SetStatusMessageReq } /** - * Invoke action setStatusMessage + * Set a presence status message for a user. An optional expiration date and time can be supplied. This API is supported in the following national cloud deployments. * @param SetStatusMessagePostRequestBody $body The request body * @param SetStatusMessageRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.php b/src/Generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.php index 0f63a905452..dd24253b1dc 100644 --- a/src/Generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.php +++ b/src/Generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Set the preferred availability and activity status for a user. If the preferred presence of a user is set, the user's presence shows as the preferred status. Preferred presence takes effect only when at least one presence session exists for the user. Otherwise, the user's presence shows as Offline. A presence session is created as a result of a successful setPresence operation, or if the user is signed in on a Microsoft Teams client. For more details, see presence sessions and time-out and expiration. + * Set the preferred availability and activity status for a user. If the preferred presence of a user is set, the user's presence shows as the preferred status. Preferred presence takes effect only when at least one presence session exists for the user. Otherwise, the user's presence shows as Offline. A presence session is created as a result of a successful setPresence operation, or if the user is signed in on a Microsoft Teams client. For more details, see presence sessions and time-out and expiration. This API is supported in the following national cloud deployments. * @param SetUserPreferredPresencePostRequestBody $body The request body * @param SetUserPreferredPresenceRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(SetUserPreferredPresencePostRequestBody $body, ?SetUserPref } /** - * Set the preferred availability and activity status for a user. If the preferred presence of a user is set, the user's presence shows as the preferred status. Preferred presence takes effect only when at least one presence session exists for the user. Otherwise, the user's presence shows as Offline. A presence session is created as a result of a successful setPresence operation, or if the user is signed in on a Microsoft Teams client. For more details, see presence sessions and time-out and expiration. + * Set the preferred availability and activity status for a user. If the preferred presence of a user is set, the user's presence shows as the preferred status. Preferred presence takes effect only when at least one presence session exists for the user. Otherwise, the user's presence shows as Offline. A presence session is created as a result of a successful setPresence operation, or if the user is signed in on a Microsoft Teams client. For more details, see presence sessions and time-out and expiration. This API is supported in the following national cloud deployments. * @param SetUserPreferredPresencePostRequestBody $body The request body * @param SetUserPreferredPresenceRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Communications/Presences/PresencesRequestBuilder.php b/src/Generated/Communications/Presences/PresencesRequestBuilder.php index 008a099f6b9..a951963eb3e 100644 --- a/src/Generated/Communications/Presences/PresencesRequestBuilder.php +++ b/src/Generated/Communications/Presences/PresencesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a user's presence information. + * Get a user's presence information. This API is supported in the following national cloud deployments. * @param PresencesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(Presence $body, ?PresencesRequestBuilderPostRequestConfigur } /** - * Get a user's presence information. + * Get a user's presence information. This API is supported in the following national cloud deployments. * @param PresencesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Communications/Presences/PresencesRequestBuilderGetQueryParameters.php b/src/Generated/Communications/Presences/PresencesRequestBuilderGetQueryParameters.php index 4808e9505c5..0f89f21e1cf 100644 --- a/src/Generated/Communications/Presences/PresencesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Communications/Presences/PresencesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a user's presence information. + * Get a user's presence information. This API is supported in the following national cloud deployments. */ class PresencesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Connections/Item/Groups/GroupsRequestBuilder.php b/src/Generated/Connections/Item/Groups/GroupsRequestBuilder.php index cf1c0d6a690..1b1072201f1 100644 --- a/src/Generated/Connections/Item/Groups/GroupsRequestBuilder.php +++ b/src/Generated/Connections/Item/Groups/GroupsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get an externalGroup object. + * Get an externalGroup object. This API is supported in the following national cloud deployments. * @param GroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -71,7 +71,7 @@ public function get(?GroupsRequestBuilderGetRequestConfiguration $requestConfigu } /** - * Create a new externalGroup object. + * Create a new externalGroup object. This API is supported in the following national cloud deployments. * @param ExternalGroup $body The request body * @param GroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -91,7 +91,7 @@ public function post(ExternalGroup $body, ?GroupsRequestBuilderPostRequestConfig } /** - * Get an externalGroup object. + * Get an externalGroup object. This API is supported in the following national cloud deployments. * @param GroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -112,7 +112,7 @@ public function toGetRequestInformation(?GroupsRequestBuilderGetRequestConfigura } /** - * Create a new externalGroup object. + * Create a new externalGroup object. This API is supported in the following national cloud deployments. * @param ExternalGroup $body The request body * @param GroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Connections/Item/Groups/GroupsRequestBuilderGetQueryParameters.php b/src/Generated/Connections/Item/Groups/GroupsRequestBuilderGetQueryParameters.php index 5ae62e11185..47598767c03 100644 --- a/src/Generated/Connections/Item/Groups/GroupsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Connections/Item/Groups/GroupsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an externalGroup object. + * Get an externalGroup object. This API is supported in the following national cloud deployments. */ class GroupsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.php b/src/Generated/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.php index c3f846b2383..90e1fb78d08 100644 --- a/src/Generated/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.php +++ b/src/Generated/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an externalGroup object. + * Delete an externalGroup object. This API is supported in the following national cloud deployments. * @param ExternalGroupItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/externalconnectors-externalgroup-delete?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function delete(?ExternalGroupItemRequestBuilderDeleteRequestConfiguratio } /** - * Get an externalGroup object. + * Get an externalGroup object. This API is supported in the following national cloud deployments. * @param ExternalGroupItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/externalconnectors-externalgroup-get?view=graph-rest-1.0 Find more info here @@ -78,7 +78,7 @@ public function get(?ExternalGroupItemRequestBuilderGetRequestConfiguration $req } /** - * Update the properties of an externalGroup object. + * Update the properties of an externalGroup object. This API is supported in the following national cloud deployments. * @param ExternalGroup $body The request body * @param ExternalGroupItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -98,7 +98,7 @@ public function patch(ExternalGroup $body, ?ExternalGroupItemRequestBuilderPatch } /** - * Delete an externalGroup object. + * Delete an externalGroup object. This API is supported in the following national cloud deployments. * @param ExternalGroupItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -115,7 +115,7 @@ public function toDeleteRequestInformation(?ExternalGroupItemRequestBuilderDelet } /** - * Get an externalGroup object. + * Get an externalGroup object. This API is supported in the following national cloud deployments. * @param ExternalGroupItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -136,7 +136,7 @@ public function toGetRequestInformation(?ExternalGroupItemRequestBuilderGetReque } /** - * Update the properties of an externalGroup object. + * Update the properties of an externalGroup object. This API is supported in the following national cloud deployments. * @param ExternalGroup $body The request body * @param ExternalGroupItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilderGetQueryParameters.php b/src/Generated/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilderGetQueryParameters.php index 1da51818811..97a26701a52 100644 --- a/src/Generated/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an externalGroup object. + * Get an externalGroup object. This API is supported in the following national cloud deployments. */ class ExternalGroupItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.php b/src/Generated/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.php index 5ee14afa1e1..015d69047f1 100644 --- a/src/Generated/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.php +++ b/src/Generated/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an identity resource to remove the corresponding member from an externalGroup. + * Delete an identity resource to remove the corresponding member from an externalGroup. This API is supported in the following national cloud deployments. * @param IdentityItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/externalconnectors-identity-delete?view=graph-rest-1.0 Find more info here @@ -88,7 +88,7 @@ public function patch(Identity $body, ?IdentityItemRequestBuilderPatchRequestCon } /** - * Delete an identity resource to remove the corresponding member from an externalGroup. + * Delete an identity resource to remove the corresponding member from an externalGroup. This API is supported in the following national cloud deployments. * @param IdentityItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Connections/Item/Groups/Item/Members/MembersRequestBuilder.php b/src/Generated/Connections/Item/Groups/Item/Members/MembersRequestBuilder.php index 637a1eca5bd..2c8c128106c 100644 --- a/src/Generated/Connections/Item/Groups/Item/Members/MembersRequestBuilder.php +++ b/src/Generated/Connections/Item/Groups/Item/Members/MembersRequestBuilder.php @@ -71,7 +71,7 @@ public function get(?MembersRequestBuilderGetRequestConfiguration $requestConfig } /** - * Create an identity resource for a new member in an externalGroup. + * Create an identity resource for a new member in an externalGroup. This API is supported in the following national cloud deployments. * @param Identity $body The request body * @param MembersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -112,7 +112,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } /** - * Create an identity resource for a new member in an externalGroup. + * Create an identity resource for a new member in an externalGroup. This API is supported in the following national cloud deployments. * @param Identity $body The request body * @param MembersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.php b/src/Generated/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.php index 99241cc34b1..423775be0a2 100644 --- a/src/Generated/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.php +++ b/src/Generated/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.php @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an externalItem object. + * Delete an externalItem object. This API is supported in the following national cloud deployments. * @param ExternalItemItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/externalconnectors-externalitem-delete?view=graph-rest-1.0 Find more info here @@ -67,7 +67,7 @@ public function delete(?ExternalItemItemRequestBuilderDeleteRequestConfiguration } /** - * Read the properties and relationships of an externalItem object. + * Read the properties and relationships of an externalItem object. This API is supported in the following national cloud deployments. * @param ExternalItemItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/externalconnectors-externalitem-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function put(ExternalItem $body, ?ExternalItemItemRequestBuilderPutReques } /** - * Delete an externalItem object. + * Delete an externalItem object. This API is supported in the following national cloud deployments. * @param ExternalItemItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -122,7 +122,7 @@ public function toDeleteRequestInformation(?ExternalItemItemRequestBuilderDelete } /** - * Read the properties and relationships of an externalItem object. + * Read the properties and relationships of an externalItem object. This API is supported in the following national cloud deployments. * @param ExternalItemItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Connections/Item/Items/Item/ExternalItemItemRequestBuilderGetQueryParameters.php b/src/Generated/Connections/Item/Items/Item/ExternalItemItemRequestBuilderGetQueryParameters.php index e9e84be9a89..74bceea2089 100644 --- a/src/Generated/Connections/Item/Items/Item/ExternalItemItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Connections/Item/Items/Item/ExternalItemItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of an externalItem object. + * Read the properties and relationships of an externalItem object. This API is supported in the following national cloud deployments. */ class ExternalItemItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.php b/src/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.php new file mode 100644 index 00000000000..689d1d23c78 --- /dev/null +++ b/src/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExternalActivityResult::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, ExternalActivityResult::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/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesResponse.php b/src/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesResponse.php deleted file mode 100644 index 4ea16d6aab3..00000000000 --- a/src/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExternalActivityResult::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, ExternalActivityResult::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/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.php b/src/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.php index 5e97fb2a880..884b5f2e991 100644 --- a/src/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.php +++ b/src/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.php @@ -43,7 +43,7 @@ public function post(AddActivitiesPostRequestBody $body, ?MicrosoftGraphExternal '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [AddActivitiesResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [AddActivitiesPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Connections/Item/Items/ItemsRequestBuilder.php b/src/Generated/Connections/Item/Items/ItemsRequestBuilder.php index 64052ce0b57..cd4da57130f 100644 --- a/src/Generated/Connections/Item/Items/ItemsRequestBuilder.php +++ b/src/Generated/Connections/Item/Items/ItemsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read the properties and relationships of an externalItem object. + * Read the properties and relationships of an externalItem object. This API is supported in the following national cloud deployments. * @param ItemsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(ExternalItem $body, ?ItemsRequestBuilderPostRequestConfigur } /** - * Read the properties and relationships of an externalItem object. + * Read the properties and relationships of an externalItem object. This API is supported in the following national cloud deployments. * @param ItemsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Connections/Item/Items/ItemsRequestBuilderGetQueryParameters.php b/src/Generated/Connections/Item/Items/ItemsRequestBuilderGetQueryParameters.php index 4691da3cba6..adc85c6eae1 100644 --- a/src/Generated/Connections/Item/Items/ItemsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Connections/Item/Items/ItemsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of an externalItem object. + * Read the properties and relationships of an externalItem object. This API is supported in the following national cloud deployments. */ class ItemsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.php b/src/Generated/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.php index c2bc11d3afd..8f6a9a45097 100644 --- a/src/Generated/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.php +++ b/src/Generated/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?ConnectionOperationItemRequestBuilderDeleteRequestConfig } /** - * Read the properties and relationships of a connectionOperation object. + * Read the properties and relationships of a connectionOperation object. This API is supported in the following national cloud deployments. * @param ConnectionOperationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/externalconnectors-connectionoperation-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?ConnectionOperationItemRequestBuilde } /** - * Read the properties and relationships of a connectionOperation object. + * Read the properties and relationships of a connectionOperation object. This API is supported in the following national cloud deployments. * @param ConnectionOperationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilderGetQueryParameters.php b/src/Generated/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilderGetQueryParameters.php index 53c959f84f7..7bbc2050507 100644 --- a/src/Generated/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a connectionOperation object. + * Read the properties and relationships of a connectionOperation object. This API is supported in the following national cloud deployments. */ class ConnectionOperationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Connections/Item/Operations/OperationsRequestBuilder.php b/src/Generated/Connections/Item/Operations/OperationsRequestBuilder.php index 8ea70d5a0f1..042f8a81a0d 100644 --- a/src/Generated/Connections/Item/Operations/OperationsRequestBuilder.php +++ b/src/Generated/Connections/Item/Operations/OperationsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read the properties and relationships of a connectionOperation object. + * Read the properties and relationships of a connectionOperation object. This API is supported in the following national cloud deployments. * @param OperationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(ConnectionOperation $body, ?OperationsRequestBuilderPostReq } /** - * Read the properties and relationships of a connectionOperation object. + * Read the properties and relationships of a connectionOperation object. This API is supported in the following national cloud deployments. * @param OperationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Connections/Item/Operations/OperationsRequestBuilderGetQueryParameters.php b/src/Generated/Connections/Item/Operations/OperationsRequestBuilderGetQueryParameters.php index d3bd257c9d1..b4e1acf58ba 100644 --- a/src/Generated/Connections/Item/Operations/OperationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Connections/Item/Operations/OperationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a connectionOperation object. + * Read the properties and relationships of a connectionOperation object. This API is supported in the following national cloud deployments. */ class OperationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Connections/Item/Schema/SchemaRequestBuilder.php b/src/Generated/Connections/Item/Schema/SchemaRequestBuilder.php index 0c47af20886..4d235503423 100644 --- a/src/Generated/Connections/Item/Schema/SchemaRequestBuilder.php +++ b/src/Generated/Connections/Item/Schema/SchemaRequestBuilder.php @@ -32,25 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete navigation property schema for connections - * @param SchemaRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return Promise - */ - public function delete(?SchemaRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { - $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); - try { - $errorMappings = [ - '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], - '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], - ]; - return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); - } catch(Exception $ex) { - return new RejectedPromise($ex); - } - } - - /** - * Read the properties and relationships of a schema object. + * Read the properties and relationships of a schema object. This API is supported in the following national cloud deployments. * @param SchemaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/externalconnectors-schema-get?view=graph-rest-1.0 Find more info here @@ -88,24 +70,7 @@ public function patch(Schema $body, ?SchemaRequestBuilderPatchRequestConfigurati } /** - * Delete navigation property schema for connections - * @param SchemaRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return RequestInformation - */ - public function toDeleteRequestInformation(?SchemaRequestBuilderDeleteRequestConfiguration $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); - } - return $requestInfo; - } - - /** - * Read the properties and relationships of a schema object. + * Read the properties and relationships of a schema object. This API is supported in the following national cloud deployments. * @param SchemaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Connections/Item/Schema/SchemaRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Connections/Item/Schema/SchemaRequestBuilderDeleteRequestConfiguration.php deleted file mode 100644 index fdf8e9f5cdb..00000000000 --- a/src/Generated/Connections/Item/Schema/SchemaRequestBuilderDeleteRequestConfiguration.php +++ /dev/null @@ -1,22 +0,0 @@ -|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/Connections/Item/Schema/SchemaRequestBuilderGetQueryParameters.php b/src/Generated/Connections/Item/Schema/SchemaRequestBuilderGetQueryParameters.php index 1ba0f534b2f..ff77e0d4141 100644 --- a/src/Generated/Connections/Item/Schema/SchemaRequestBuilderGetQueryParameters.php +++ b/src/Generated/Connections/Item/Schema/SchemaRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a schema object. + * Read the properties and relationships of a schema object. This API is supported in the following national cloud deployments. */ class SchemaRequestBuilderGetQueryParameters { diff --git a/src/Generated/Contacts/ContactsRequestBuilder.php b/src/Generated/Contacts/ContactsRequestBuilder.php index 699d1dc9945..b0f64b7e836 100644 --- a/src/Generated/Contacts/ContactsRequestBuilder.php +++ b/src/Generated/Contacts/ContactsRequestBuilder.php @@ -85,7 +85,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the list of organizational contacts for this organization. + * Get the list of organizational contacts for this organization. This API is supported in the following national cloud deployments. * @param ContactsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/orgcontact-list?view=graph-rest-1.0 Find more info here @@ -123,7 +123,7 @@ public function post(OrgContact $body, ?ContactsRequestBuilderPostRequestConfigu } /** - * Get the list of organizational contacts for this organization. + * Get the list of organizational contacts for this organization. This API is supported in the following national cloud deployments. * @param ContactsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Contacts/ContactsRequestBuilderGetQueryParameters.php b/src/Generated/Contacts/ContactsRequestBuilderGetQueryParameters.php index af98168407a..22075688d6d 100644 --- a/src/Generated/Contacts/ContactsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Contacts/ContactsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the list of organizational contacts for this organization. + * Get the list of organizational contacts for this organization. This API is supported in the following national cloud deployments. */ class ContactsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Contacts/Delta/DeltaGetResponse.php b/src/Generated/Contacts/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..8c5876d40e4 --- /dev/null +++ b/src/Generated/Contacts/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([OrgContact::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, OrgContact::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/Contacts/Delta/DeltaRequestBuilder.php b/src/Generated/Contacts/Delta/DeltaRequestBuilder.php index c247a21592d..5f4ec10e995 100644 --- a/src/Generated/Contacts/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Contacts/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Contacts/Delta/DeltaResponse.php b/src/Generated/Contacts/Delta/DeltaResponse.php deleted file mode 100644 index a911d67b333..00000000000 --- a/src/Generated/Contacts/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([OrgContact::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, OrgContact::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/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php b/src/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php new file mode 100644 index 00000000000..d4d688fcb9a --- /dev/null +++ b/src/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index fad11956b7b..591850fec20 100644 --- a/src/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetAvailableExtensionPropertiesPostRequestBody $body, ?GetA '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php b/src/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php deleted file mode 100644 index 038c0c8f27f..00000000000 --- a/src/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/Contacts/GetByIds/GetByIdsPostResponse.php b/src/Generated/Contacts/GetByIds/GetByIdsPostResponse.php new file mode 100644 index 00000000000..ac2081eddc1 --- /dev/null +++ b/src/Generated/Contacts/GetByIds/GetByIdsPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/Contacts/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/Contacts/GetByIds/GetByIdsRequestBuilder.php index 96fc9ff7d0e..257a2dcc7bf 100644 --- a/src/Generated/Contacts/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/Contacts/GetByIds/GetByIdsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetByIdsPostRequestBody $body, ?GetByIdsRequestBuilderPostR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Contacts/GetByIds/GetByIdsResponse.php b/src/Generated/Contacts/GetByIds/GetByIdsResponse.php deleted file mode 100644 index 9e90f2fdd88..00000000000 --- a/src/Generated/Contacts/GetByIds/GetByIdsResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/Contacts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php b/src/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php new file mode 100644 index 00000000000..aee6c55158a --- /dev/null +++ b/src/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Contacts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php b/src/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php index 7aa6f0c053f..0b734cf2868 100644 --- a/src/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php +++ b/src/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. * @param CheckMemberGroupsPostRequestBody $body The request body * @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberGroupsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberGroupsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. * @param CheckMemberGroupsPostRequestBody $body The request body * @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsResponse.php b/src/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsResponse.php deleted file mode 100644 index 81cdf6402ed..00000000000 --- a/src/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Contacts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php b/src/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php new file mode 100644 index 00000000000..9e7b5bf3e80 --- /dev/null +++ b/src/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Contacts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php b/src/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php index 492ba71dcca..53fc2892b59 100644 --- a/src/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php +++ b/src/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php @@ -43,7 +43,7 @@ public function post(CheckMemberObjectsPostRequestBody $body, ?CheckMemberObject '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberObjectsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberObjectsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsResponse.php b/src/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsResponse.php deleted file mode 100644 index f2a850d30d2..00000000000 --- a/src/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Contacts/Item/GetMemberGroups/GetMemberGroupsPostResponse.php b/src/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsPostResponse.php new file mode 100644 index 00000000000..68fadcdbce3 --- /dev/null +++ b/src/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Contacts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index f379ec60c35..e61200f20cb 100644 --- a/src/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsReque '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetMemberGroupsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetMemberGroupsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsResponse.php b/src/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsResponse.php deleted file mode 100644 index fa63053b735..00000000000 --- a/src/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Contacts/Item/GetMemberObjects/GetMemberObjectsPostResponse.php b/src/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsPostResponse.php new file mode 100644 index 00000000000..d62279840e0 --- /dev/null +++ b/src/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Contacts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php b/src/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php index 04d00faf232..c1e24beecb0 100644 --- a/src/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php +++ b/src/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. * @param GetMemberObjectsPostRequestBody $body The request body * @param GetMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetMemberObjectsPostRequestBody $body, ?GetMemberObjectsReq '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetMemberObjectsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetMemberObjectsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. * @param GetMemberObjectsPostRequestBody $body The request body * @param GetMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsResponse.php b/src/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsResponse.php deleted file mode 100644 index 82cb0945038..00000000000 --- a/src/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Contacts/Item/Manager/ManagerRequestBuilder.php b/src/Generated/Contacts/Item/Manager/ManagerRequestBuilder.php index f6e36e6ec4d..a59fd13c005 100644 --- a/src/Generated/Contacts/Item/Manager/ManagerRequestBuilder.php +++ b/src/Generated/Contacts/Item/Manager/ManagerRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get this organizational contact's manager. + * Get this organizational contact's manager. This API is supported in the following national cloud deployments. * @param ManagerRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/orgcontact-get-manager?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function get(?ManagerRequestBuilderGetRequestConfiguration $requestConfig } /** - * Get this organizational contact's manager. + * Get this organizational contact's manager. This API is supported in the following national cloud deployments. * @param ManagerRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Contacts/Item/Manager/ManagerRequestBuilderGetQueryParameters.php b/src/Generated/Contacts/Item/Manager/ManagerRequestBuilderGetQueryParameters.php index 7796cbe9c36..3c8b15563df 100644 --- a/src/Generated/Contacts/Item/Manager/ManagerRequestBuilderGetQueryParameters.php +++ b/src/Generated/Contacts/Item/Manager/ManagerRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get this organizational contact's manager. + * Get this organizational contact's manager. This API is supported in the following national cloud deployments. */ class ManagerRequestBuilderGetQueryParameters { diff --git a/src/Generated/Contacts/Item/OrgContactItemRequestBuilder.php b/src/Generated/Contacts/Item/OrgContactItemRequestBuilder.php index 35ef00fd80b..40cfa15ed67 100644 --- a/src/Generated/Contacts/Item/OrgContactItemRequestBuilder.php +++ b/src/Generated/Contacts/Item/OrgContactItemRequestBuilder.php @@ -14,6 +14,7 @@ use Microsoft\Graph\Generated\Contacts\Item\MemberOf\MemberOfRequestBuilder; use Microsoft\Graph\Generated\Contacts\Item\Restore\RestoreRequestBuilder; use Microsoft\Graph\Generated\Contacts\Item\RetryServiceProvisioning\RetryServiceProvisioningRequestBuilder; +use Microsoft\Graph\Generated\Contacts\Item\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Contacts\Item\TransitiveMemberOf\TransitiveMemberOfRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\OrgContact; @@ -90,6 +91,13 @@ public function retryServiceProvisioning(): RetryServiceProvisioningRequestBuild return new RetryServiceProvisioningRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the transitiveMemberOf property of the microsoft.graph.orgContact entity. */ @@ -130,7 +138,7 @@ public function delete(?OrgContactItemRequestBuilderDeleteRequestConfiguration $ } /** - * Get the properties and relationships of an organizational contact. + * Get the properties and relationships of an organizational contact. This API is supported in the following national cloud deployments. * @param OrgContactItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/orgcontact-get?view=graph-rest-1.0 Find more info here @@ -185,7 +193,7 @@ public function toDeleteRequestInformation(?OrgContactItemRequestBuilderDeleteRe } /** - * Get the properties and relationships of an organizational contact. + * Get the properties and relationships of an organizational contact. This API is supported in the following national cloud deployments. * @param OrgContactItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Contacts/Item/OrgContactItemRequestBuilderGetQueryParameters.php b/src/Generated/Contacts/Item/OrgContactItemRequestBuilderGetQueryParameters.php index cf597b23bcb..23b604e5b1f 100644 --- a/src/Generated/Contacts/Item/OrgContactItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Contacts/Item/OrgContactItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the properties and relationships of an organizational contact. + * Get the properties and relationships of an organizational contact. This API is supported in the following national cloud deployments. */ class OrgContactItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Contacts/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Contacts/Item/Restore/RestoreRequestBuilder.php index 3491fb9344e..57f8f8566dd 100644 --- a/src/Generated/Contacts/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Contacts/Item/Restore/RestoreRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. * @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/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Contacts/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..df71b4ffa6e --- /dev/null +++ b/src/Generated/Contacts/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/contacts/{orgContact%2Did}/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/Contacts/Item/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Contacts/Item/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..8b768b2a685 --- /dev/null +++ b/src/Generated/Contacts/Item/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Contacts/Item/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Contacts/Item/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..3c0b6852da9 --- /dev/null +++ b/src/Generated/Contacts/Item/ServiceProvisioningErrors/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/Contacts/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Contacts/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..d3de22f1b7f --- /dev/null +++ b/src/Generated/Contacts/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/contacts/{orgContact%2Did}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Contacts/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/Contacts/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d40544ec02d --- /dev/null +++ b/src/Generated/Contacts/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/Contacts/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/Contacts/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..2449a5fe92d --- /dev/null +++ b/src/Generated/Contacts/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Contacts/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/Contacts/ValidateProperties/ValidatePropertiesRequestBuilder.php index 78b36a047b1..b8a3180581d 100644 --- a/src/Generated/Contacts/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/Contacts/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ValidatePropertiesPostRequestBody $body, ?ValidatePropertie } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Contracts/ContractsRequestBuilder.php b/src/Generated/Contracts/ContractsRequestBuilder.php index 8ba43c15e4c..8b0c9b14220 100644 --- a/src/Generated/Contracts/ContractsRequestBuilder.php +++ b/src/Generated/Contracts/ContractsRequestBuilder.php @@ -85,7 +85,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of contract objects associated to a partner tenant. + * Retrieve a list of contract objects associated to a partner tenant. This API is supported in the following national cloud deployments. * @param ContractsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/contract-list?view=graph-rest-1.0 Find more info here @@ -123,7 +123,7 @@ public function post(Contract $body, ?ContractsRequestBuilderPostRequestConfigur } /** - * Retrieve a list of contract objects associated to a partner tenant. + * Retrieve a list of contract objects associated to a partner tenant. This API is supported in the following national cloud deployments. * @param ContractsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Contracts/ContractsRequestBuilderGetQueryParameters.php b/src/Generated/Contracts/ContractsRequestBuilderGetQueryParameters.php index e7244cdcf29..7439d9cfb97 100644 --- a/src/Generated/Contracts/ContractsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Contracts/ContractsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of contract objects associated to a partner tenant. + * Retrieve a list of contract objects associated to a partner tenant. This API is supported in the following national cloud deployments. */ class ContractsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Contracts/Delta/DeltaGetResponse.php b/src/Generated/Contracts/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..a9b99c261dc --- /dev/null +++ b/src/Generated/Contracts/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([DirectoryObject::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, DirectoryObject::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/Contracts/Delta/DeltaRequestBuilder.php b/src/Generated/Contracts/Delta/DeltaRequestBuilder.php index 2824fdce346..387ccae821b 100644 --- a/src/Generated/Contracts/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Contracts/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Contracts/Delta/DeltaResponse.php b/src/Generated/Contracts/Delta/DeltaResponse.php deleted file mode 100644 index ac5ca8a3cc0..00000000000 --- a/src/Generated/Contracts/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php b/src/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php new file mode 100644 index 00000000000..5e3a3c7d1cb --- /dev/null +++ b/src/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index eecc1401934..b9a3605e7f5 100644 --- a/src/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetAvailableExtensionPropertiesPostRequestBody $body, ?GetA '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php b/src/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php deleted file mode 100644 index 9b31d5824a5..00000000000 --- a/src/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/Contracts/GetByIds/GetByIdsPostResponse.php b/src/Generated/Contracts/GetByIds/GetByIdsPostResponse.php new file mode 100644 index 00000000000..844abb9fbde --- /dev/null +++ b/src/Generated/Contracts/GetByIds/GetByIdsPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/Contracts/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/Contracts/GetByIds/GetByIdsRequestBuilder.php index 26c72cec4de..eaa9165808d 100644 --- a/src/Generated/Contracts/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/Contracts/GetByIds/GetByIdsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetByIdsPostRequestBody $body, ?GetByIdsRequestBuilderPostR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Contracts/GetByIds/GetByIdsResponse.php b/src/Generated/Contracts/GetByIds/GetByIdsResponse.php deleted file mode 100644 index f39728b4444..00000000000 --- a/src/Generated/Contracts/GetByIds/GetByIdsResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/Contracts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php b/src/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php new file mode 100644 index 00000000000..e69714db513 --- /dev/null +++ b/src/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Contracts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php b/src/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php index 9c7032286d5..3dd11f8d67c 100644 --- a/src/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php +++ b/src/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. * @param CheckMemberGroupsPostRequestBody $body The request body * @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberGroupsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberGroupsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. * @param CheckMemberGroupsPostRequestBody $body The request body * @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsResponse.php b/src/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsResponse.php deleted file mode 100644 index d26f3016621..00000000000 --- a/src/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Contracts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php b/src/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php new file mode 100644 index 00000000000..5e880ea6bdb --- /dev/null +++ b/src/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Contracts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php b/src/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php index c83df57e95e..2f72b087a53 100644 --- a/src/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php +++ b/src/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php @@ -43,7 +43,7 @@ public function post(CheckMemberObjectsPostRequestBody $body, ?CheckMemberObject '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberObjectsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberObjectsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsResponse.php b/src/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsResponse.php deleted file mode 100644 index 2e91b289158..00000000000 --- a/src/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Contracts/Item/ContractItemRequestBuilder.php b/src/Generated/Contracts/Item/ContractItemRequestBuilder.php index 18120df61bd..41e08d31b2d 100644 --- a/src/Generated/Contracts/Item/ContractItemRequestBuilder.php +++ b/src/Generated/Contracts/Item/ContractItemRequestBuilder.php @@ -90,7 +90,7 @@ public function delete(?ContractItemRequestBuilderDeleteRequestConfiguration $re } /** - * Retrieve the properties and relationships of contract object. + * Retrieve the properties and relationships of contract object. This API is supported in the following national cloud deployments. * @param ContractItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/contract-get?view=graph-rest-1.0 Find more info here @@ -145,7 +145,7 @@ public function toDeleteRequestInformation(?ContractItemRequestBuilderDeleteRequ } /** - * Retrieve the properties and relationships of contract object. + * Retrieve the properties and relationships of contract object. This API is supported in the following national cloud deployments. * @param ContractItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Contracts/Item/ContractItemRequestBuilderGetQueryParameters.php b/src/Generated/Contracts/Item/ContractItemRequestBuilderGetQueryParameters.php index 5c61f5193c0..53b8ffd20ec 100644 --- a/src/Generated/Contracts/Item/ContractItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Contracts/Item/ContractItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of contract object. + * Retrieve the properties and relationships of contract object. This API is supported in the following national cloud deployments. */ class ContractItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsPostResponse.php b/src/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsPostResponse.php new file mode 100644 index 00000000000..e5ba26d00a9 --- /dev/null +++ b/src/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Contracts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index 0ad6f95fb10..14ac06074e6 100644 --- a/src/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsReque '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetMemberGroupsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetMemberGroupsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsResponse.php b/src/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsResponse.php deleted file mode 100644 index 13aad6091f4..00000000000 --- a/src/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Contracts/Item/GetMemberObjects/GetMemberObjectsPostResponse.php b/src/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsPostResponse.php new file mode 100644 index 00000000000..6ec09a910e3 --- /dev/null +++ b/src/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Contracts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php b/src/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php index de8c84f926a..2ca22e7be41 100644 --- a/src/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php +++ b/src/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. * @param GetMemberObjectsPostRequestBody $body The request body * @param GetMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetMemberObjectsPostRequestBody $body, ?GetMemberObjectsReq '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetMemberObjectsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetMemberObjectsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. * @param GetMemberObjectsPostRequestBody $body The request body * @param GetMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsResponse.php b/src/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsResponse.php deleted file mode 100644 index 1d523004ca6..00000000000 --- a/src/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Contracts/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Contracts/Item/Restore/RestoreRequestBuilder.php index fcf4d08438b..cba0c5c4b77 100644 --- a/src/Generated/Contracts/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Contracts/Item/Restore/RestoreRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Contracts/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/Contracts/ValidateProperties/ValidatePropertiesRequestBuilder.php index eeac5a30fa5..c305cf10437 100644 --- a/src/Generated/Contracts/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/Contracts/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ValidatePropertiesPostRequestBody $body, ?ValidatePropertie } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DataPolicyOperations/DataPolicyOperationsRequestBuilder.php b/src/Generated/DataPolicyOperations/DataPolicyOperationsRequestBuilder.php index b8deb0ee378..6d015bc4b25 100644 --- a/src/Generated/DataPolicyOperations/DataPolicyOperationsRequestBuilder.php +++ b/src/Generated/DataPolicyOperations/DataPolicyOperationsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the properties of a dataPolicyOperation object. + * Retrieve the properties of a dataPolicyOperation object. This API is supported in the following national cloud deployments. * @param DataPolicyOperationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(DataPolicyOperation $body, ?DataPolicyOperationsRequestBuil } /** - * Retrieve the properties of a dataPolicyOperation object. + * Retrieve the properties of a dataPolicyOperation object. This API is supported in the following national cloud deployments. * @param DataPolicyOperationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DataPolicyOperations/DataPolicyOperationsRequestBuilderGetQueryParameters.php b/src/Generated/DataPolicyOperations/DataPolicyOperationsRequestBuilderGetQueryParameters.php index d874b2ebfb5..8524c543f45 100644 --- a/src/Generated/DataPolicyOperations/DataPolicyOperationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/DataPolicyOperations/DataPolicyOperationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties of a dataPolicyOperation object. + * Retrieve the properties of a dataPolicyOperation object. This API is supported in the following national cloud deployments. */ class DataPolicyOperationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/DataPolicyOperations/Item/DataPolicyOperationItemRequestBuilder.php b/src/Generated/DataPolicyOperations/Item/DataPolicyOperationItemRequestBuilder.php index 79ad096e103..a6507dab1c5 100644 --- a/src/Generated/DataPolicyOperations/Item/DataPolicyOperationItemRequestBuilder.php +++ b/src/Generated/DataPolicyOperations/Item/DataPolicyOperationItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?DataPolicyOperationItemRequestBuilderDeleteRequestConfig } /** - * Retrieve the properties of a dataPolicyOperation object. + * Retrieve the properties of a dataPolicyOperation object. This API is supported in the following national cloud deployments. * @param DataPolicyOperationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/datapolicyoperation-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?DataPolicyOperationItemRequestBuilde } /** - * Retrieve the properties of a dataPolicyOperation object. + * Retrieve the properties of a dataPolicyOperation object. This API is supported in the following national cloud deployments. * @param DataPolicyOperationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DataPolicyOperations/Item/DataPolicyOperationItemRequestBuilderGetQueryParameters.php b/src/Generated/DataPolicyOperations/Item/DataPolicyOperationItemRequestBuilderGetQueryParameters.php index e0650311bdd..e00af0bf63d 100644 --- a/src/Generated/DataPolicyOperations/Item/DataPolicyOperationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/DataPolicyOperations/Item/DataPolicyOperationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties of a dataPolicyOperation object. + * Retrieve the properties of a dataPolicyOperation object. This API is supported in the following national cloud deployments. */ class DataPolicyOperationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.php b/src/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.php index 358bf6454df..ec2b980ec40 100644 --- a/src/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.php @@ -155,7 +155,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * Read properties and relationships of the deviceAppManagement object. * @param DeviceAppManagementRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-partnerintegration-deviceappmanagement-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-unlock-deviceappmanagement-get?view=graph-rest-1.0 Find more info here */ public function get(?DeviceAppManagementRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -175,7 +175,7 @@ public function get(?DeviceAppManagementRequestBuilderGetRequestConfiguration $r * @param DeviceAppManagement $body The request body * @param DeviceAppManagementRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-onboarding-deviceappmanagement-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-partnerintegration-deviceappmanagement-update?view=graph-rest-1.0 Find more info here */ public function patch(DeviceAppManagement $body, ?DeviceAppManagementRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); diff --git a/src/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.php index 7a7afc8dc23..25bc9f1c3a2 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.php @@ -58,10 +58,10 @@ public function delete(?ManagedAppPolicyItemRequestBuilderDeleteRequestConfigura } /** - * Read properties and relationships of the targetedManagedAppProtection object. + * Read properties and relationships of the managedAppConfiguration object. * @param ManagedAppPolicyItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-mam-targetedmanagedappprotection-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-mam-managedappconfiguration-get?view=graph-rest-1.0 Find more info here */ public function get(?ManagedAppPolicyItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -113,7 +113,7 @@ public function toDeleteRequestInformation(?ManagedAppPolicyItemRequestBuilderDe } /** - * Read properties and relationships of the targetedManagedAppProtection object. + * Read properties and relationships of the managedAppConfiguration object. * @param ManagedAppPolicyItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilderGetQueryParameters.php index 612793385c9..ef9bce96aef 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read properties and relationships of the targetedManagedAppProtection object. + * Read properties and relationships of the managedAppConfiguration object. */ class ManagedAppPolicyItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.php index 02b11be98a9..c8072c317c1 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.php @@ -53,10 +53,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List properties and relationships of the managedAppPolicy objects. + * List properties and relationships of the windowsInformationProtection objects. * @param ManagedAppPoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-list?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-mam-windowsinformationprotection-list?view=graph-rest-1.0 Find more info here */ public function get(?ManagedAppPoliciesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -91,7 +91,7 @@ public function post(ManagedAppPolicy $body, ?ManagedAppPoliciesRequestBuilderPo } /** - * List properties and relationships of the managedAppPolicy objects. + * List properties and relationships of the windowsInformationProtection objects. * @param ManagedAppPoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilderGetQueryParameters.php index 4df728afddc..417359735f2 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List properties and relationships of the managedAppPolicy objects. + * List properties and relationships of the windowsInformationProtection objects. */ class ManagedAppPoliciesRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationGetResponse.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationGetResponse.php new file mode 100644 index 00000000000..f5731ee7e79 --- /dev/null +++ b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationGetResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationRequestBuilder.php index 906c8799928..2cc57e66ca0 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?GetUserIdsWithFlaggedAppRegistrationRequestBuilderGetReques '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetUserIdsWithFlaggedAppRegistrationResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetUserIdsWithFlaggedAppRegistrationGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationResponse.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationResponse.php deleted file mode 100644 index d0f8fbaf5ff..00000000000 --- a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.php index 0fa90b561ce..2ad06aa1c0f 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.php @@ -74,10 +74,10 @@ public function delete(?ManagedAppRegistrationItemRequestBuilderDeleteRequestCon } /** - * Read properties and relationships of the managedAppRegistration object. + * Read properties and relationships of the iosManagedAppRegistration object. * @param ManagedAppRegistrationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-mam-managedappregistration-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-mam-iosmanagedappregistration-get?view=graph-rest-1.0 Find more info here */ public function get(?ManagedAppRegistrationItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -129,7 +129,7 @@ public function toDeleteRequestInformation(?ManagedAppRegistrationItemRequestBui } /** - * Read properties and relationships of the managedAppRegistration object. + * Read properties and relationships of the iosManagedAppRegistration object. * @param ManagedAppRegistrationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilderGetQueryParameters.php index 83949e72d79..92858399e1b 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read properties and relationships of the managedAppRegistration object. + * Read properties and relationships of the iosManagedAppRegistration object. */ class ManagedAppRegistrationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.php index cf40a1da3d1..f97b5ce1ac5 100644 --- a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.php @@ -53,10 +53,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List properties and relationships of the iosVppEBookAssignment objects. + * List properties and relationships of the managedEBookAssignment objects. * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-list?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-list?view=graph-rest-1.0 Find more info here */ public function get(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -72,11 +72,11 @@ public function get(?AssignmentsRequestBuilderGetRequestConfiguration $requestCo } /** - * Create a new managedEBookAssignment object. + * Create a new iosVppEBookAssignment object. * @param ManagedEBookAssignment $body The request body * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-create?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-create?view=graph-rest-1.0 Find more info here */ public function post(ManagedEBookAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -92,7 +92,7 @@ public function post(ManagedEBookAssignment $body, ?AssignmentsRequestBuilderPos } /** - * List properties and relationships of the iosVppEBookAssignment objects. + * List properties and relationships of the managedEBookAssignment objects. * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } /** - * Create a new managedEBookAssignment object. + * Create a new iosVppEBookAssignment object. * @param ManagedEBookAssignment $body The request body * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilderGetQueryParameters.php index 286ad40a449..bc0ec42f416 100644 --- a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List properties and relationships of the iosVppEBookAssignment objects. + * List properties and relationships of the managedEBookAssignment objects. */ class AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.php index 3e42fdf783c..0e2b77782a8 100644 --- a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.php @@ -70,11 +70,11 @@ public function get(?ManagedEBookAssignmentItemRequestBuilderGetRequestConfigura } /** - * Update the properties of a iosVppEBookAssignment object. + * Update the properties of a managedEBookAssignment object. * @param ManagedEBookAssignment $body The request body * @param ManagedEBookAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-update?view=graph-rest-1.0 Find more info here */ public function patch(ManagedEBookAssignment $body, ?ManagedEBookAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -128,7 +128,7 @@ public function toGetRequestInformation(?ManagedEBookAssignmentItemRequestBuilde } /** - * Update the properties of a iosVppEBookAssignment object. + * Update the properties of a managedEBookAssignment object. * @param ManagedEBookAssignment $body The request body * @param ManagedEBookAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.php index b2ebb6629c7..510b4147b81 100644 --- a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.php @@ -91,10 +91,10 @@ public function delete(?ManagedEBookItemRequestBuilderDeleteRequestConfiguration } /** - * Read properties and relationships of the iosVppEBook object. + * Read properties and relationships of the managedEBook object. * @param ManagedEBookItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-books-iosvppebook-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-books-managedebook-get?view=graph-rest-1.0 Find more info here */ public function get(?ManagedEBookItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -147,7 +147,7 @@ public function toDeleteRequestInformation(?ManagedEBookItemRequestBuilderDelete } /** - * Read properties and relationships of the iosVppEBook object. + * Read properties and relationships of the managedEBook object. * @param ManagedEBookItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilderGetQueryParameters.php index 5270a02e617..271c28a403d 100644 --- a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read properties and relationships of the iosVppEBook object. + * Read properties and relationships of the managedEBook object. */ class ManagedEBookItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.php index b7acfa85075..1cc800fc1f2 100644 --- a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.php @@ -99,10 +99,10 @@ public function delete(?ManagedDeviceMobileAppConfigurationItemRequestBuilderDel } /** - * Read properties and relationships of the iosMobileAppConfiguration object. + * Read properties and relationships of the managedDeviceMobileAppConfiguration object. * @param ManagedDeviceMobileAppConfigurationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-apps-iosmobileappconfiguration-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-apps-manageddevicemobileappconfiguration-get?view=graph-rest-1.0 Find more info here */ public function get(?ManagedDeviceMobileAppConfigurationItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -155,7 +155,7 @@ public function toDeleteRequestInformation(?ManagedDeviceMobileAppConfigurationI } /** - * Read properties and relationships of the iosMobileAppConfiguration object. + * Read properties and relationships of the managedDeviceMobileAppConfiguration object. * @param ManagedDeviceMobileAppConfigurationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilderGetQueryParameters.php index 4b0240dadba..22dd29d03d8 100644 --- a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read properties and relationships of the iosMobileAppConfiguration object. + * Read properties and relationships of the managedDeviceMobileAppConfiguration object. */ class ManagedDeviceMobileAppConfigurationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/AssignmentsRequestBuilder.php new file mode 100644 index 00000000000..687c82f253a --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/AssignmentsRequestBuilder.php @@ -0,0 +1,144 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppAssignmentId The unique identifier of mobileAppAssignment + * @return MobileAppAssignmentItemRequestBuilder + */ + public function byMobileAppAssignmentId(string $mobileAppAssignmentId): MobileAppAssignmentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppAssignment%2Did'] = $mobileAppAssignmentId; + return new MobileAppAssignmentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new AssignmentsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-list?view=graph-rest-1.0 Find more info here + */ + public function get(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignmentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-create?view=graph-rest-1.0 Find more info here + */ + public function post(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 AssignmentsRequestBuilder + */ + public function withUrl(string $rawUrl): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..3f7f5eb6358 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.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 assignmentsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..7b5a3bdb9c3 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param AssignmentsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?AssignmentsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new assignmentsRequestBuilderGetQueryParameters. + * @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 AssignmentsRequestBuilderGetQueryParameters + */ + 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): AssignmentsRequestBuilderGetQueryParameters { + return new AssignmentsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..71c44cfb71c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..125087ba3ce --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/assignments/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..7e678a3a368 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..a70c01d899d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php new file mode 100644 index 00000000000..e3ea96bf0fc --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -0,0 +1,159 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-delete?view=graph-rest-1.0 Find more info here + */ + public function delete(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-get?view=graph-rest-1.0 Find more info here + */ + public function get(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-update?view=graph-rest-1.0 Find more info here + */ + public function patch(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppAssignmentItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppAssignmentItemRequestBuilder { + return new MobileAppAssignmentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..45d43e5debd --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..b36d7f84d39 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.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 MobileAppAssignmentItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..217e9863535 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppAssignmentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppAssignmentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppAssignmentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppAssignmentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppAssignmentItemRequestBuilderGetQueryParameters { + return new MobileAppAssignmentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..91d0191f691 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/CategoriesRequestBuilder.php new file mode 100644 index 00000000000..48d23379d3d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/CategoriesRequestBuilder.php @@ -0,0 +1,102 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppCategoryId The unique identifier of mobileAppCategory + * @return MobileAppCategoryItemRequestBuilder + */ + public function byMobileAppCategoryId(string $mobileAppCategoryId): MobileAppCategoryItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppCategory%2Did'] = $mobileAppCategoryId; + return new MobileAppCategoryItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new CategoriesRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategoryCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 CategoriesRequestBuilder + */ + public function withUrl(string $rawUrl): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/CategoriesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/CategoriesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..f033c479b7e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/CategoriesRequestBuilderGetQueryParameters.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 categoriesRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..5235d621306 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CategoriesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CategoriesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new categoriesRequestBuilderGetQueryParameters. + * @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 CategoriesRequestBuilderGetQueryParameters + */ + 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): CategoriesRequestBuilderGetQueryParameters { + return new CategoriesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..e4959fcb45e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/categories/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..a20d62532f9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..21af5e0c995 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php new file mode 100644 index 00000000000..bfd6a4ed4da --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -0,0 +1,82 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategory::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 MobileAppCategoryItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppCategoryItemRequestBuilder { + return new MobileAppCategoryItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..84195f100b7 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.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 MobileAppCategoryItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..dc09477d2ff --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppCategoryItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppCategoryItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppCategoryItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppCategoryItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppCategoryItemRequestBuilderGetQueryParameters { + return new MobileAppCategoryItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.php new file mode 100644 index 00000000000..8cb44d1a4e8 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + * @param string $mobileAppContentId The unique identifier of mobileAppContent + * @return MobileAppContentItemRequestBuilder + */ + public function byMobileAppContentId(string $mobileAppContentId): MobileAppContentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppContent%2Did'] = $mobileAppContentId; + return new MobileAppContentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ContentVersionsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of content versions for this app. + * @param ContentVersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ContentVersionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to contentVersions for deviceAppManagement + * @param MobileAppContent $body The request body + * @param ContentVersionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileAppContent $body, ?ContentVersionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of content versions for this app. + * @param ContentVersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to contentVersions for deviceAppManagement + * @param MobileAppContent $body The request body + * @param ContentVersionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppContent $body, ?ContentVersionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 ContentVersionsRequestBuilder + */ + public function withUrl(string $rawUrl): ContentVersionsRequestBuilder { + return new ContentVersionsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..2449868f395 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.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 contentVersionsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..13ebc3c7a98 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ContentVersionsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ContentVersionsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new contentVersionsRequestBuilderGetQueryParameters. + * @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 ContentVersionsRequestBuilderGetQueryParameters + */ + 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): ContentVersionsRequestBuilderGetQueryParameters { + return new ContentVersionsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..82725eca177 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..b662666e814 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..7e9cf5b041b --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..6a8695e172a --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php new file mode 100644 index 00000000000..36d5aa1c7d0 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + * @param string $mobileContainedAppId The unique identifier of mobileContainedApp + * @return MobileContainedAppItemRequestBuilder + */ + public function byMobileContainedAppId(string $mobileContainedAppId): MobileContainedAppItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileContainedApp%2Did'] = $mobileContainedAppId; + return new MobileContainedAppItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ContainedAppsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param ContainedAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ContainedAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedAppCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to containedApps for deviceAppManagement + * @param MobileContainedApp $body The request body + * @param ContainedAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileContainedApp $body, ?ContainedAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param ContainedAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to containedApps for deviceAppManagement + * @param MobileContainedApp $body The request body + * @param ContainedAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileContainedApp $body, ?ContainedAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 ContainedAppsRequestBuilder + */ + public function withUrl(string $rawUrl): ContainedAppsRequestBuilder { + return new ContainedAppsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..92e8290f341 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.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 containedAppsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..c4ce00c4c34 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ContainedAppsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ContainedAppsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new containedAppsRequestBuilderGetQueryParameters. + * @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 ContainedAppsRequestBuilderGetQueryParameters + */ + 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): ContainedAppsRequestBuilderGetQueryParameters { + return new ContainedAppsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..28037fa8038 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..37dcaba9b77 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..54b002a6925 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e404c2eaf7d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php new file mode 100644 index 00000000000..d31a1516e2e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php @@ -0,0 +1,156 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property containedApps for deviceAppManagement + * @param MobileContainedAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileContainedAppItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param MobileContainedAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileContainedAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property containedApps in deviceAppManagement + * @param MobileContainedApp $body The request body + * @param MobileContainedAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileContainedApp $body, ?MobileContainedAppItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property containedApps for deviceAppManagement + * @param MobileContainedAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileContainedAppItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param MobileContainedAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property containedApps in deviceAppManagement + * @param MobileContainedApp $body The request body + * @param MobileContainedAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileContainedApp $body, ?MobileContainedAppItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileContainedAppItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileContainedAppItemRequestBuilder { + return new MobileContainedAppItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..ce0ab4b6b3b --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..52e0c3ae134 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.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 MobileContainedAppItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..407a6786383 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileContainedAppItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileContainedAppItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileContainedAppItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileContainedAppItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileContainedAppItemRequestBuilderGetQueryParameters { + return new MobileContainedAppItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..f666616d836 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..71b891c67f3 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..23888bc9e8c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e8d4d314b11 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php new file mode 100644 index 00000000000..a38866c4b62 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + * @param string $mobileAppContentFileId The unique identifier of mobileAppContentFile + * @return MobileAppContentFileItemRequestBuilder + */ + public function byMobileAppContentFileId(string $mobileAppContentFileId): MobileAppContentFileItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppContentFile%2Did'] = $mobileAppContentFileId; + return new MobileAppContentFileItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new FilesRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of files for this app content version. + * @param FilesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?FilesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFileCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to files for deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param FilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileAppContentFile $body, ?FilesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of files for this app content version. + * @param FilesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to files for deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param FilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppContentFile $body, ?FilesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 FilesRequestBuilder + */ + public function withUrl(string $rawUrl): FilesRequestBuilder { + return new FilesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..bb8ab91951b --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.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 filesRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e166d5dbab5 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param FilesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?FilesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new filesRequestBuilderGetQueryParameters. + * @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 FilesRequestBuilderGetQueryParameters + */ + 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): FilesRequestBuilderGetQueryParameters { + return new FilesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..7d5e01f3294 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php new file mode 100644 index 00000000000..07899d63b02 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php @@ -0,0 +1,115 @@ +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 CommitPostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CommitPostRequestBody { + return new CommitPostRequestBody(); + } + + /** + * 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 [ + 'fileEncryptionInfo' => fn(ParseNode $n) => $o->setFileEncryptionInfo($n->getObjectValue([FileEncryptionInfo::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Gets the fileEncryptionInfo property value. The fileEncryptionInfo property + * @return FileEncryptionInfo|null + */ + public function getFileEncryptionInfo(): ?FileEncryptionInfo { + $val = $this->getBackingStore()->get('fileEncryptionInfo'); + if (is_null($val) || $val instanceof FileEncryptionInfo) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'fileEncryptionInfo'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeObjectValue('fileEncryptionInfo', $this->getFileEncryptionInfo()); + $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 fileEncryptionInfo property value. The fileEncryptionInfo property + * @param FileEncryptionInfo|null $value Value to set for the fileEncryptionInfo property. + */ + public function setFileEncryptionInfo(?FileEncryptionInfo $value): void { + $this->getBackingStore()->set('fileEncryptionInfo', $value); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php new file mode 100644 index 00000000000..c86d3493b20 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php @@ -0,0 +1,80 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Commits a file of a given app. + * @param CommitPostRequestBody $body The request body + * @param CommitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(CommitPostRequestBody $body, ?CommitRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Commits a file of a given app. + * @param CommitPostRequestBody $body The request body + * @param CommitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(CommitPostRequestBody $body, ?CommitRequestBuilderPostRequestConfiguration $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->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 CommitRequestBuilder + */ + public function withUrl(string $rawUrl): CommitRequestBuilder { + return new CommitRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..7170ad5e424 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php new file mode 100644 index 00000000000..e5378e66619 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php @@ -0,0 +1,172 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to call the renewUpload method. + */ + public function renewUpload(): RenewUploadRequestBuilder { + return new RenewUploadRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new MobileAppContentFileItemRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property files for deviceAppManagement + * @param MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of files for this app content version. + * @param MobileAppContentFileItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppContentFileItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property files in deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param MobileAppContentFileItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileAppContentFile $body, ?MobileAppContentFileItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property files for deviceAppManagement + * @param MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The list of files for this app content version. + * @param MobileAppContentFileItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property files in deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param MobileAppContentFileItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppContentFile $body, ?MobileAppContentFileItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppContentFileItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppContentFileItemRequestBuilder { + return new MobileAppContentFileItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..36a7776c510 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..a172e668acb --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.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 MobileAppContentFileItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..d7f5ed2e932 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppContentFileItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppContentFileItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppContentFileItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppContentFileItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppContentFileItemRequestBuilderGetQueryParameters { + return new MobileAppContentFileItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..6eb4bee9998 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.php new file mode 100644 index 00000000000..45729acad84 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Renews the SAS URI for an application file upload. + * @param RenewUploadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(?RenewUploadRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Renews the SAS URI for an application file upload. + * @param RenewUploadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?RenewUploadRequestBuilderPostRequestConfiguration $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); + } + 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 RenewUploadRequestBuilder + */ + public function withUrl(string $rawUrl): RenewUploadRequestBuilder { + return new RenewUploadRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..fa724ffab6d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php new file mode 100644 index 00000000000..445900360bb --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php @@ -0,0 +1,172 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + */ + public function files(): FilesRequestBuilder { + return new FilesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new MobileAppContentItemRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property contentVersions for deviceAppManagement + * @param MobileAppContentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileAppContentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of content versions for this app. + * @param MobileAppContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppContentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property contentVersions in deviceAppManagement + * @param MobileAppContent $body The request body + * @param MobileAppContentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileAppContent $body, ?MobileAppContentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property contentVersions for deviceAppManagement + * @param MobileAppContentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppContentItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The list of content versions for this app. + * @param MobileAppContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property contentVersions in deviceAppManagement + * @param MobileAppContent $body The request body + * @param MobileAppContentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppContent $body, ?MobileAppContentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppContentItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppContentItemRequestBuilder { + return new MobileAppContentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..a55843513d5 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..0292caa7eb1 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.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 MobileAppContentItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..95ae9719ce6 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppContentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppContentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppContentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppContentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppContentItemRequestBuilderGetQueryParameters { + return new MobileAppContentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..a91a1abe03d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.php index b35fec7e7f7..660df9c21d3 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.php @@ -5,6 +5,9 @@ use Exception; use Http\Promise\Promise; use Http\Promise\RejectedPromise; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphAndroidLobApp\Assignments\AssignmentsRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphAndroidLobApp\Categories\CategoriesRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphAndroidLobApp\ContentVersions\ContentVersionsRequestBuilder; use Microsoft\Graph\Generated\Models\AndroidLobApp; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -17,6 +20,27 @@ */ class GraphAndroidLobAppRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + */ + public function assignments(): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + */ + public function categories(): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + */ + public function contentVersions(): ContentVersionsRequestBuilder { + return new ContentVersionsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new GraphAndroidLobAppRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/AssignmentsRequestBuilder.php new file mode 100644 index 00000000000..f9c782bee41 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/AssignmentsRequestBuilder.php @@ -0,0 +1,144 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppAssignmentId The unique identifier of mobileAppAssignment + * @return MobileAppAssignmentItemRequestBuilder + */ + public function byMobileAppAssignmentId(string $mobileAppAssignmentId): MobileAppAssignmentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppAssignment%2Did'] = $mobileAppAssignmentId; + return new MobileAppAssignmentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new AssignmentsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-list?view=graph-rest-1.0 Find more info here + */ + public function get(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignmentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-create?view=graph-rest-1.0 Find more info here + */ + public function post(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 AssignmentsRequestBuilder + */ + public function withUrl(string $rawUrl): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..bf0afde854b --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.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 assignmentsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..40d0fbcf6cf --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param AssignmentsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?AssignmentsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new assignmentsRequestBuilderGetQueryParameters. + * @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 AssignmentsRequestBuilderGetQueryParameters + */ + 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): AssignmentsRequestBuilderGetQueryParameters { + return new AssignmentsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..41ca8b8439d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..3dd62560b00 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/assignments/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..70bad6c9edc --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..8d624ecb8ad --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/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/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php new file mode 100644 index 00000000000..37e9655f853 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -0,0 +1,159 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-delete?view=graph-rest-1.0 Find more info here + */ + public function delete(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-get?view=graph-rest-1.0 Find more info here + */ + public function get(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-update?view=graph-rest-1.0 Find more info here + */ + public function patch(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppAssignmentItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppAssignmentItemRequestBuilder { + return new MobileAppAssignmentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..dd8d751bfa9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..b5ae20afb0c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.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 MobileAppAssignmentItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..40a0afea9a7 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppAssignmentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppAssignmentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppAssignmentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppAssignmentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppAssignmentItemRequestBuilderGetQueryParameters { + return new MobileAppAssignmentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..677d1855c03 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/CategoriesRequestBuilder.php new file mode 100644 index 00000000000..cbcb905804a --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/CategoriesRequestBuilder.php @@ -0,0 +1,102 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppCategoryId The unique identifier of mobileAppCategory + * @return MobileAppCategoryItemRequestBuilder + */ + public function byMobileAppCategoryId(string $mobileAppCategoryId): MobileAppCategoryItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppCategory%2Did'] = $mobileAppCategoryId; + return new MobileAppCategoryItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new CategoriesRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategoryCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 CategoriesRequestBuilder + */ + public function withUrl(string $rawUrl): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/CategoriesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/CategoriesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..3ae2ea7f1c6 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/CategoriesRequestBuilderGetQueryParameters.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 categoriesRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..6e4cd3f64bc --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CategoriesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CategoriesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new categoriesRequestBuilderGetQueryParameters. + * @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 CategoriesRequestBuilderGetQueryParameters + */ + 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): CategoriesRequestBuilderGetQueryParameters { + return new CategoriesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..17109a34ed5 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/categories/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..cd7ee4c51b3 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..0e87158cf1d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/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/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php new file mode 100644 index 00000000000..57250cb1d0f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -0,0 +1,82 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategory::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 MobileAppCategoryItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppCategoryItemRequestBuilder { + return new MobileAppCategoryItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..0749bd874b4 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.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 MobileAppCategoryItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..422ba9be774 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppCategoryItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppCategoryItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppCategoryItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppCategoryItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppCategoryItemRequestBuilderGetQueryParameters { + return new MobileAppCategoryItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.php index aa2af1186c0..81f10ab670f 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.php @@ -5,6 +5,8 @@ use Exception; use Http\Promise\Promise; use Http\Promise\RejectedPromise; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphAndroidStoreApp\Assignments\AssignmentsRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphAndroidStoreApp\Categories\CategoriesRequestBuilder; use Microsoft\Graph\Generated\Models\AndroidStoreApp; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -17,6 +19,20 @@ */ class GraphAndroidStoreAppRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + */ + public function assignments(): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + */ + public function categories(): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new GraphAndroidStoreAppRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/AssignmentsRequestBuilder.php new file mode 100644 index 00000000000..66dd6f8c51d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/AssignmentsRequestBuilder.php @@ -0,0 +1,144 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppAssignmentId The unique identifier of mobileAppAssignment + * @return MobileAppAssignmentItemRequestBuilder + */ + public function byMobileAppAssignmentId(string $mobileAppAssignmentId): MobileAppAssignmentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppAssignment%2Did'] = $mobileAppAssignmentId; + return new MobileAppAssignmentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new AssignmentsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-list?view=graph-rest-1.0 Find more info here + */ + public function get(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignmentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-create?view=graph-rest-1.0 Find more info here + */ + public function post(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 AssignmentsRequestBuilder + */ + public function withUrl(string $rawUrl): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..1c22a1aa56b --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.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 assignmentsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..19af84b1b08 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param AssignmentsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?AssignmentsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new assignmentsRequestBuilderGetQueryParameters. + * @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 AssignmentsRequestBuilderGetQueryParameters + */ + 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): AssignmentsRequestBuilderGetQueryParameters { + return new AssignmentsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..6d5caa6eef8 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..2ef745b0ff4 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/assignments/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d1d191b2575 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..941e9031cf7 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php new file mode 100644 index 00000000000..4132c747353 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -0,0 +1,159 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-delete?view=graph-rest-1.0 Find more info here + */ + public function delete(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-get?view=graph-rest-1.0 Find more info here + */ + public function get(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-update?view=graph-rest-1.0 Find more info here + */ + public function patch(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppAssignmentItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppAssignmentItemRequestBuilder { + return new MobileAppAssignmentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..e9ca866c8cd --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..5cb1244cd26 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.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 MobileAppAssignmentItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..b9c64b59578 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppAssignmentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppAssignmentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppAssignmentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppAssignmentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppAssignmentItemRequestBuilderGetQueryParameters { + return new MobileAppAssignmentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..22832204098 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/CategoriesRequestBuilder.php new file mode 100644 index 00000000000..cca52d6a473 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/CategoriesRequestBuilder.php @@ -0,0 +1,102 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppCategoryId The unique identifier of mobileAppCategory + * @return MobileAppCategoryItemRequestBuilder + */ + public function byMobileAppCategoryId(string $mobileAppCategoryId): MobileAppCategoryItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppCategory%2Did'] = $mobileAppCategoryId; + return new MobileAppCategoryItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new CategoriesRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategoryCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 CategoriesRequestBuilder + */ + public function withUrl(string $rawUrl): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/CategoriesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/CategoriesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..eb46c73dd43 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/CategoriesRequestBuilderGetQueryParameters.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 categoriesRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..98509754664 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CategoriesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CategoriesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new categoriesRequestBuilderGetQueryParameters. + * @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 CategoriesRequestBuilderGetQueryParameters + */ + 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): CategoriesRequestBuilderGetQueryParameters { + return new CategoriesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..da059010ad7 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/categories/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..9eeb056505f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e225878d3f7 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php new file mode 100644 index 00000000000..c07f0bcb26d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -0,0 +1,82 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategory::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 MobileAppCategoryItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppCategoryItemRequestBuilder { + return new MobileAppCategoryItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..89deb558764 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.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 MobileAppCategoryItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..34c884c5701 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppCategoryItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppCategoryItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppCategoryItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppCategoryItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppCategoryItemRequestBuilderGetQueryParameters { + return new MobileAppCategoryItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/ContentVersionsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/ContentVersionsRequestBuilder.php new file mode 100644 index 00000000000..697bcf404ef --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/ContentVersionsRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + * @param string $mobileAppContentId The unique identifier of mobileAppContent + * @return MobileAppContentItemRequestBuilder + */ + public function byMobileAppContentId(string $mobileAppContentId): MobileAppContentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppContent%2Did'] = $mobileAppContentId; + return new MobileAppContentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ContentVersionsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of content versions for this app. + * @param ContentVersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ContentVersionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to contentVersions for deviceAppManagement + * @param MobileAppContent $body The request body + * @param ContentVersionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileAppContent $body, ?ContentVersionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of content versions for this app. + * @param ContentVersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to contentVersions for deviceAppManagement + * @param MobileAppContent $body The request body + * @param ContentVersionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppContent $body, ?ContentVersionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 ContentVersionsRequestBuilder + */ + public function withUrl(string $rawUrl): ContentVersionsRequestBuilder { + return new ContentVersionsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..70b22446c91 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.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 contentVersionsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..701a119122e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ContentVersionsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ContentVersionsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new contentVersionsRequestBuilderGetQueryParameters. + * @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 ContentVersionsRequestBuilderGetQueryParameters + */ + 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): ContentVersionsRequestBuilderGetQueryParameters { + return new ContentVersionsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..5ae9dbd0eea --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..9aefd231041 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..5d4a35e96b3 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..612bffe1ada --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php new file mode 100644 index 00000000000..115c466145b --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + * @param string $mobileContainedAppId The unique identifier of mobileContainedApp + * @return MobileContainedAppItemRequestBuilder + */ + public function byMobileContainedAppId(string $mobileContainedAppId): MobileContainedAppItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileContainedApp%2Did'] = $mobileContainedAppId; + return new MobileContainedAppItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ContainedAppsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param ContainedAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ContainedAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedAppCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to containedApps for deviceAppManagement + * @param MobileContainedApp $body The request body + * @param ContainedAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileContainedApp $body, ?ContainedAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param ContainedAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to containedApps for deviceAppManagement + * @param MobileContainedApp $body The request body + * @param ContainedAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileContainedApp $body, ?ContainedAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 ContainedAppsRequestBuilder + */ + public function withUrl(string $rawUrl): ContainedAppsRequestBuilder { + return new ContainedAppsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..42b3cbc1ae3 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.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 containedAppsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..dd7986b23d3 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ContainedAppsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ContainedAppsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new containedAppsRequestBuilderGetQueryParameters. + * @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 ContainedAppsRequestBuilderGetQueryParameters + */ + 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): ContainedAppsRequestBuilderGetQueryParameters { + return new ContainedAppsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..40f50a2ab2e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..5364285a117 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..125e73e1e18 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..f111143042f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php new file mode 100644 index 00000000000..cd02e84e1bf --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php @@ -0,0 +1,156 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property containedApps for deviceAppManagement + * @param MobileContainedAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileContainedAppItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param MobileContainedAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileContainedAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property containedApps in deviceAppManagement + * @param MobileContainedApp $body The request body + * @param MobileContainedAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileContainedApp $body, ?MobileContainedAppItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property containedApps for deviceAppManagement + * @param MobileContainedAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileContainedAppItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param MobileContainedAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property containedApps in deviceAppManagement + * @param MobileContainedApp $body The request body + * @param MobileContainedAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileContainedApp $body, ?MobileContainedAppItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileContainedAppItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileContainedAppItemRequestBuilder { + return new MobileContainedAppItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..8a20aa5f396 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..ce0d9c63ec4 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.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 MobileContainedAppItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..cd6f5db8c2f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileContainedAppItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileContainedAppItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileContainedAppItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileContainedAppItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileContainedAppItemRequestBuilderGetQueryParameters { + return new MobileContainedAppItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..741c5082210 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..74112417e5e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..887d59140cc --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..b3a52dc4b73 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php new file mode 100644 index 00000000000..a41c53df8b9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + * @param string $mobileAppContentFileId The unique identifier of mobileAppContentFile + * @return MobileAppContentFileItemRequestBuilder + */ + public function byMobileAppContentFileId(string $mobileAppContentFileId): MobileAppContentFileItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppContentFile%2Did'] = $mobileAppContentFileId; + return new MobileAppContentFileItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new FilesRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of files for this app content version. + * @param FilesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?FilesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFileCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to files for deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param FilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileAppContentFile $body, ?FilesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of files for this app content version. + * @param FilesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to files for deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param FilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppContentFile $body, ?FilesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 FilesRequestBuilder + */ + public function withUrl(string $rawUrl): FilesRequestBuilder { + return new FilesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..7b4910d3d92 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.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 filesRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..42d34b3db93 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param FilesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?FilesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new filesRequestBuilderGetQueryParameters. + * @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 FilesRequestBuilderGetQueryParameters + */ + 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): FilesRequestBuilderGetQueryParameters { + return new FilesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..023aa2512d9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php new file mode 100644 index 00000000000..77040f488e3 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php @@ -0,0 +1,115 @@ +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 CommitPostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CommitPostRequestBody { + return new CommitPostRequestBody(); + } + + /** + * 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 [ + 'fileEncryptionInfo' => fn(ParseNode $n) => $o->setFileEncryptionInfo($n->getObjectValue([FileEncryptionInfo::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Gets the fileEncryptionInfo property value. The fileEncryptionInfo property + * @return FileEncryptionInfo|null + */ + public function getFileEncryptionInfo(): ?FileEncryptionInfo { + $val = $this->getBackingStore()->get('fileEncryptionInfo'); + if (is_null($val) || $val instanceof FileEncryptionInfo) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'fileEncryptionInfo'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeObjectValue('fileEncryptionInfo', $this->getFileEncryptionInfo()); + $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 fileEncryptionInfo property value. The fileEncryptionInfo property + * @param FileEncryptionInfo|null $value Value to set for the fileEncryptionInfo property. + */ + public function setFileEncryptionInfo(?FileEncryptionInfo $value): void { + $this->getBackingStore()->set('fileEncryptionInfo', $value); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php new file mode 100644 index 00000000000..4b446cbe0c4 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php @@ -0,0 +1,80 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Commits a file of a given app. + * @param CommitPostRequestBody $body The request body + * @param CommitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(CommitPostRequestBody $body, ?CommitRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Commits a file of a given app. + * @param CommitPostRequestBody $body The request body + * @param CommitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(CommitPostRequestBody $body, ?CommitRequestBuilderPostRequestConfiguration $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->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 CommitRequestBuilder + */ + public function withUrl(string $rawUrl): CommitRequestBuilder { + return new CommitRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..7515f5e5160 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php new file mode 100644 index 00000000000..d8ec1e1896c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php @@ -0,0 +1,172 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to call the renewUpload method. + */ + public function renewUpload(): RenewUploadRequestBuilder { + return new RenewUploadRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new MobileAppContentFileItemRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property files for deviceAppManagement + * @param MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of files for this app content version. + * @param MobileAppContentFileItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppContentFileItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property files in deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param MobileAppContentFileItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileAppContentFile $body, ?MobileAppContentFileItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property files for deviceAppManagement + * @param MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The list of files for this app content version. + * @param MobileAppContentFileItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property files in deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param MobileAppContentFileItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppContentFile $body, ?MobileAppContentFileItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppContentFileItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppContentFileItemRequestBuilder { + return new MobileAppContentFileItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..3425e7a93d0 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..029c7e083ce --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.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 MobileAppContentFileItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..fac863ce9cb --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppContentFileItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppContentFileItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppContentFileItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppContentFileItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppContentFileItemRequestBuilderGetQueryParameters { + return new MobileAppContentFileItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..6d0a51439b1 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.php new file mode 100644 index 00000000000..3511b2f7605 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Renews the SAS URI for an application file upload. + * @param RenewUploadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(?RenewUploadRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Renews the SAS URI for an application file upload. + * @param RenewUploadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?RenewUploadRequestBuilderPostRequestConfiguration $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); + } + 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 RenewUploadRequestBuilder + */ + public function withUrl(string $rawUrl): RenewUploadRequestBuilder { + return new RenewUploadRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..8160c9fc205 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php new file mode 100644 index 00000000000..2f3cfe704fb --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php @@ -0,0 +1,172 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + */ + public function files(): FilesRequestBuilder { + return new FilesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new MobileAppContentItemRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property contentVersions for deviceAppManagement + * @param MobileAppContentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileAppContentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of content versions for this app. + * @param MobileAppContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppContentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property contentVersions in deviceAppManagement + * @param MobileAppContent $body The request body + * @param MobileAppContentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileAppContent $body, ?MobileAppContentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property contentVersions for deviceAppManagement + * @param MobileAppContentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppContentItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The list of content versions for this app. + * @param MobileAppContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property contentVersions in deviceAppManagement + * @param MobileAppContent $body The request body + * @param MobileAppContentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppContent $body, ?MobileAppContentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppContentItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppContentItemRequestBuilder { + return new MobileAppContentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..144cc74c37c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..98bc5f70667 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.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 MobileAppContentItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..8c8a0f13c43 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppContentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppContentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppContentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppContentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppContentItemRequestBuilderGetQueryParameters { + return new MobileAppContentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..00c3ee17779 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/GraphIosLobAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/GraphIosLobAppRequestBuilder.php index 1a42fa3841a..bcf33d38b24 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/GraphIosLobAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/GraphIosLobAppRequestBuilder.php @@ -5,6 +5,9 @@ use Exception; use Http\Promise\Promise; use Http\Promise\RejectedPromise; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphIosLobApp\Assignments\AssignmentsRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphIosLobApp\Categories\CategoriesRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphIosLobApp\ContentVersions\ContentVersionsRequestBuilder; use Microsoft\Graph\Generated\Models\IosLobApp; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -17,6 +20,27 @@ */ class GraphIosLobAppRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + */ + public function assignments(): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + */ + public function categories(): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + */ + public function contentVersions(): ContentVersionsRequestBuilder { + return new ContentVersionsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new GraphIosLobAppRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/AssignmentsRequestBuilder.php new file mode 100644 index 00000000000..80474da30a6 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/AssignmentsRequestBuilder.php @@ -0,0 +1,144 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppAssignmentId The unique identifier of mobileAppAssignment + * @return MobileAppAssignmentItemRequestBuilder + */ + public function byMobileAppAssignmentId(string $mobileAppAssignmentId): MobileAppAssignmentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppAssignment%2Did'] = $mobileAppAssignmentId; + return new MobileAppAssignmentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new AssignmentsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-list?view=graph-rest-1.0 Find more info here + */ + public function get(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignmentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-create?view=graph-rest-1.0 Find more info here + */ + public function post(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 AssignmentsRequestBuilder + */ + public function withUrl(string $rawUrl): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..fbfe3372ae6 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.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 assignmentsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..5c7ba4172cc --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param AssignmentsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?AssignmentsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new assignmentsRequestBuilderGetQueryParameters. + * @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 AssignmentsRequestBuilderGetQueryParameters + */ + 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): AssignmentsRequestBuilderGetQueryParameters { + return new AssignmentsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..d99470dd9f7 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..a4ef2da902c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/assignments/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..4765ecaffa0 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..435b3d07c15 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/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/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php new file mode 100644 index 00000000000..7f85d5179e9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -0,0 +1,159 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-delete?view=graph-rest-1.0 Find more info here + */ + public function delete(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-get?view=graph-rest-1.0 Find more info here + */ + public function get(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-update?view=graph-rest-1.0 Find more info here + */ + public function patch(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppAssignmentItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppAssignmentItemRequestBuilder { + return new MobileAppAssignmentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..73fe69672c9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..657631b292b --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.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 MobileAppAssignmentItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..3194a6878cb --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppAssignmentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppAssignmentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppAssignmentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppAssignmentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppAssignmentItemRequestBuilderGetQueryParameters { + return new MobileAppAssignmentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..575ed42a2b2 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/CategoriesRequestBuilder.php new file mode 100644 index 00000000000..f4312fa7652 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/CategoriesRequestBuilder.php @@ -0,0 +1,102 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppCategoryId The unique identifier of mobileAppCategory + * @return MobileAppCategoryItemRequestBuilder + */ + public function byMobileAppCategoryId(string $mobileAppCategoryId): MobileAppCategoryItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppCategory%2Did'] = $mobileAppCategoryId; + return new MobileAppCategoryItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new CategoriesRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategoryCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 CategoriesRequestBuilder + */ + public function withUrl(string $rawUrl): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/CategoriesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/CategoriesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..e94cfd1fbe0 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/CategoriesRequestBuilderGetQueryParameters.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 categoriesRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..f1cfee848c6 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CategoriesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CategoriesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new categoriesRequestBuilderGetQueryParameters. + * @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 CategoriesRequestBuilderGetQueryParameters + */ + 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): CategoriesRequestBuilderGetQueryParameters { + return new CategoriesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..e44d3c12e0c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/categories/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..907a06d7260 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..f34d6aa5b2a --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/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/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php new file mode 100644 index 00000000000..df542464fae --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -0,0 +1,82 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategory::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 MobileAppCategoryItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppCategoryItemRequestBuilder { + return new MobileAppCategoryItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..bd66eb38a35 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.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 MobileAppCategoryItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..1b82c12d9b7 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppCategoryItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppCategoryItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppCategoryItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppCategoryItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppCategoryItemRequestBuilderGetQueryParameters { + return new MobileAppCategoryItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.php index eee32e0c3cf..63d04ea7bc7 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.php @@ -5,6 +5,8 @@ use Exception; use Http\Promise\Promise; use Http\Promise\RejectedPromise; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphIosStoreApp\Assignments\AssignmentsRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphIosStoreApp\Categories\CategoriesRequestBuilder; use Microsoft\Graph\Generated\Models\IosStoreApp; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -17,6 +19,20 @@ */ class GraphIosStoreAppRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + */ + public function assignments(): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + */ + public function categories(): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new GraphIosStoreAppRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/AssignmentsRequestBuilder.php new file mode 100644 index 00000000000..fdcee943e19 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/AssignmentsRequestBuilder.php @@ -0,0 +1,144 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppAssignmentId The unique identifier of mobileAppAssignment + * @return MobileAppAssignmentItemRequestBuilder + */ + public function byMobileAppAssignmentId(string $mobileAppAssignmentId): MobileAppAssignmentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppAssignment%2Did'] = $mobileAppAssignmentId; + return new MobileAppAssignmentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new AssignmentsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-list?view=graph-rest-1.0 Find more info here + */ + public function get(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignmentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-create?view=graph-rest-1.0 Find more info here + */ + public function post(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 AssignmentsRequestBuilder + */ + public function withUrl(string $rawUrl): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..34d2b61af01 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.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 assignmentsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..0dfa9bf85e8 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param AssignmentsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?AssignmentsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new assignmentsRequestBuilderGetQueryParameters. + * @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 AssignmentsRequestBuilderGetQueryParameters + */ + 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): AssignmentsRequestBuilderGetQueryParameters { + return new AssignmentsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..c0faf1f8be9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..f3575fa09f0 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/assignments/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..81014f2535e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..edc333ec41f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/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/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php new file mode 100644 index 00000000000..40cacd60bdb --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -0,0 +1,159 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-delete?view=graph-rest-1.0 Find more info here + */ + public function delete(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-get?view=graph-rest-1.0 Find more info here + */ + public function get(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-update?view=graph-rest-1.0 Find more info here + */ + public function patch(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppAssignmentItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppAssignmentItemRequestBuilder { + return new MobileAppAssignmentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..0ff2e6c1166 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..ac9086569e1 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.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 MobileAppAssignmentItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..bdcb3f4fac8 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppAssignmentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppAssignmentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppAssignmentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppAssignmentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppAssignmentItemRequestBuilderGetQueryParameters { + return new MobileAppAssignmentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..c67dc2f1d0e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/CategoriesRequestBuilder.php new file mode 100644 index 00000000000..84fa8276adc --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/CategoriesRequestBuilder.php @@ -0,0 +1,102 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppCategoryId The unique identifier of mobileAppCategory + * @return MobileAppCategoryItemRequestBuilder + */ + public function byMobileAppCategoryId(string $mobileAppCategoryId): MobileAppCategoryItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppCategory%2Did'] = $mobileAppCategoryId; + return new MobileAppCategoryItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new CategoriesRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategoryCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 CategoriesRequestBuilder + */ + public function withUrl(string $rawUrl): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/CategoriesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/CategoriesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..8aa98f13cae --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/CategoriesRequestBuilderGetQueryParameters.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 categoriesRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..33e9565aaa5 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CategoriesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CategoriesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new categoriesRequestBuilderGetQueryParameters. + * @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 CategoriesRequestBuilderGetQueryParameters + */ + 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): CategoriesRequestBuilderGetQueryParameters { + return new CategoriesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..4c90e7bb1cf --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/categories/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..7f5333480f7 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..6563388aeb3 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/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/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php new file mode 100644 index 00000000000..41776e4d98a --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -0,0 +1,82 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategory::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 MobileAppCategoryItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppCategoryItemRequestBuilder { + return new MobileAppCategoryItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..4efef7d3eeb --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.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 MobileAppCategoryItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..1e854359e07 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppCategoryItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppCategoryItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppCategoryItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppCategoryItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppCategoryItemRequestBuilderGetQueryParameters { + return new MobileAppCategoryItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/GraphIosVppAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/GraphIosVppAppRequestBuilder.php index f2d48acb064..e11d4d90f33 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/GraphIosVppAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/GraphIosVppAppRequestBuilder.php @@ -5,6 +5,8 @@ use Exception; use Http\Promise\Promise; use Http\Promise\RejectedPromise; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphIosVppApp\Assignments\AssignmentsRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphIosVppApp\Categories\CategoriesRequestBuilder; use Microsoft\Graph\Generated\Models\IosVppApp; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -17,6 +19,20 @@ */ class GraphIosVppAppRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + */ + public function assignments(): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + */ + public function categories(): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new GraphIosVppAppRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/AssignmentsRequestBuilder.php new file mode 100644 index 00000000000..8b3ce1afd0f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/AssignmentsRequestBuilder.php @@ -0,0 +1,144 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppAssignmentId The unique identifier of mobileAppAssignment + * @return MobileAppAssignmentItemRequestBuilder + */ + public function byMobileAppAssignmentId(string $mobileAppAssignmentId): MobileAppAssignmentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppAssignment%2Did'] = $mobileAppAssignmentId; + return new MobileAppAssignmentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new AssignmentsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-list?view=graph-rest-1.0 Find more info here + */ + public function get(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignmentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-create?view=graph-rest-1.0 Find more info here + */ + public function post(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 AssignmentsRequestBuilder + */ + public function withUrl(string $rawUrl): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..acd121a09dc --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.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 assignmentsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..303033ca580 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param AssignmentsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?AssignmentsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new assignmentsRequestBuilderGetQueryParameters. + * @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 AssignmentsRequestBuilderGetQueryParameters + */ + 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): AssignmentsRequestBuilderGetQueryParameters { + return new AssignmentsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..68f9b7bee6c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..a6323dbc78e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/assignments/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..9c8e238de2e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..f415e022c3a --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php new file mode 100644 index 00000000000..0e350b457a0 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -0,0 +1,159 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-delete?view=graph-rest-1.0 Find more info here + */ + public function delete(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-get?view=graph-rest-1.0 Find more info here + */ + public function get(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-update?view=graph-rest-1.0 Find more info here + */ + public function patch(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppAssignmentItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppAssignmentItemRequestBuilder { + return new MobileAppAssignmentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..f59fa19cc0a --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..ffc7464000c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.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 MobileAppAssignmentItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..59d459d92ff --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppAssignmentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppAssignmentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppAssignmentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppAssignmentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppAssignmentItemRequestBuilderGetQueryParameters { + return new MobileAppAssignmentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..8ff7c99aab9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/CategoriesRequestBuilder.php new file mode 100644 index 00000000000..4e3a30678e2 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/CategoriesRequestBuilder.php @@ -0,0 +1,102 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppCategoryId The unique identifier of mobileAppCategory + * @return MobileAppCategoryItemRequestBuilder + */ + public function byMobileAppCategoryId(string $mobileAppCategoryId): MobileAppCategoryItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppCategory%2Did'] = $mobileAppCategoryId; + return new MobileAppCategoryItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new CategoriesRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategoryCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 CategoriesRequestBuilder + */ + public function withUrl(string $rawUrl): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/CategoriesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/CategoriesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..037613a6af2 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/CategoriesRequestBuilderGetQueryParameters.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 categoriesRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..035fdc178ce --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CategoriesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CategoriesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new categoriesRequestBuilderGetQueryParameters. + * @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 CategoriesRequestBuilderGetQueryParameters + */ + 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): CategoriesRequestBuilderGetQueryParameters { + return new CategoriesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..94733160e5c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/categories/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..dda04dc823a --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..a6d6473df18 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php new file mode 100644 index 00000000000..d347b45f93f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -0,0 +1,82 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategory::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 MobileAppCategoryItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppCategoryItemRequestBuilder { + return new MobileAppCategoryItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..46181bd2158 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.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 MobileAppCategoryItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..d4f711abec7 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppCategoryItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppCategoryItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppCategoryItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppCategoryItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppCategoryItemRequestBuilderGetQueryParameters { + return new MobileAppCategoryItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/ContentVersionsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/ContentVersionsRequestBuilder.php new file mode 100644 index 00000000000..750c0fc439e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/ContentVersionsRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + * @param string $mobileAppContentId The unique identifier of mobileAppContent + * @return MobileAppContentItemRequestBuilder + */ + public function byMobileAppContentId(string $mobileAppContentId): MobileAppContentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppContent%2Did'] = $mobileAppContentId; + return new MobileAppContentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ContentVersionsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of content versions for this app. + * @param ContentVersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ContentVersionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to contentVersions for deviceAppManagement + * @param MobileAppContent $body The request body + * @param ContentVersionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileAppContent $body, ?ContentVersionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of content versions for this app. + * @param ContentVersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to contentVersions for deviceAppManagement + * @param MobileAppContent $body The request body + * @param ContentVersionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppContent $body, ?ContentVersionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 ContentVersionsRequestBuilder + */ + public function withUrl(string $rawUrl): ContentVersionsRequestBuilder { + return new ContentVersionsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..bd6a1077972 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.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 contentVersionsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..3e66cd29278 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ContentVersionsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ContentVersionsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new contentVersionsRequestBuilderGetQueryParameters. + * @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 ContentVersionsRequestBuilderGetQueryParameters + */ + 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): ContentVersionsRequestBuilderGetQueryParameters { + return new ContentVersionsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..6c35d5231c5 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..9f021c33fda --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..82e6f1057b3 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e19b822a95f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php new file mode 100644 index 00000000000..4c41d41dd8f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + * @param string $mobileContainedAppId The unique identifier of mobileContainedApp + * @return MobileContainedAppItemRequestBuilder + */ + public function byMobileContainedAppId(string $mobileContainedAppId): MobileContainedAppItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileContainedApp%2Did'] = $mobileContainedAppId; + return new MobileContainedAppItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ContainedAppsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param ContainedAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ContainedAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedAppCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to containedApps for deviceAppManagement + * @param MobileContainedApp $body The request body + * @param ContainedAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileContainedApp $body, ?ContainedAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param ContainedAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to containedApps for deviceAppManagement + * @param MobileContainedApp $body The request body + * @param ContainedAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileContainedApp $body, ?ContainedAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 ContainedAppsRequestBuilder + */ + public function withUrl(string $rawUrl): ContainedAppsRequestBuilder { + return new ContainedAppsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..df528c9ea54 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.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 containedAppsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..b2d10f7c56f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ContainedAppsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ContainedAppsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new containedAppsRequestBuilderGetQueryParameters. + * @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 ContainedAppsRequestBuilderGetQueryParameters + */ + 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): ContainedAppsRequestBuilderGetQueryParameters { + return new ContainedAppsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..d9cecce4070 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..04d6715d7f4 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..28fa9f3223b --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..f6fc285b080 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php new file mode 100644 index 00000000000..a943accb611 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php @@ -0,0 +1,156 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property containedApps for deviceAppManagement + * @param MobileContainedAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileContainedAppItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param MobileContainedAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileContainedAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property containedApps in deviceAppManagement + * @param MobileContainedApp $body The request body + * @param MobileContainedAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileContainedApp $body, ?MobileContainedAppItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property containedApps for deviceAppManagement + * @param MobileContainedAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileContainedAppItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param MobileContainedAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property containedApps in deviceAppManagement + * @param MobileContainedApp $body The request body + * @param MobileContainedAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileContainedApp $body, ?MobileContainedAppItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileContainedAppItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileContainedAppItemRequestBuilder { + return new MobileContainedAppItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..eae9a2b69ec --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..63a1c917252 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.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 MobileContainedAppItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..24402b83a1e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileContainedAppItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileContainedAppItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileContainedAppItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileContainedAppItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileContainedAppItemRequestBuilderGetQueryParameters { + return new MobileContainedAppItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..7c6b3a0a44f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..4f8beba1464 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..773f67e7f8d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..3c8814cbfc0 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/FilesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/FilesRequestBuilder.php new file mode 100644 index 00000000000..6c6cf94c0f5 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/FilesRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + * @param string $mobileAppContentFileId The unique identifier of mobileAppContentFile + * @return MobileAppContentFileItemRequestBuilder + */ + public function byMobileAppContentFileId(string $mobileAppContentFileId): MobileAppContentFileItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppContentFile%2Did'] = $mobileAppContentFileId; + return new MobileAppContentFileItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new FilesRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of files for this app content version. + * @param FilesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?FilesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFileCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to files for deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param FilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileAppContentFile $body, ?FilesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of files for this app content version. + * @param FilesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to files for deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param FilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppContentFile $body, ?FilesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 FilesRequestBuilder + */ + public function withUrl(string $rawUrl): FilesRequestBuilder { + return new FilesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..191f171910f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.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 filesRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e4374264c9e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param FilesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?FilesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new filesRequestBuilderGetQueryParameters. + * @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 FilesRequestBuilderGetQueryParameters + */ + 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): FilesRequestBuilderGetQueryParameters { + return new FilesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..b282943ac4c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php new file mode 100644 index 00000000000..41639ff546a --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php @@ -0,0 +1,115 @@ +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 CommitPostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CommitPostRequestBody { + return new CommitPostRequestBody(); + } + + /** + * 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 [ + 'fileEncryptionInfo' => fn(ParseNode $n) => $o->setFileEncryptionInfo($n->getObjectValue([FileEncryptionInfo::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Gets the fileEncryptionInfo property value. The fileEncryptionInfo property + * @return FileEncryptionInfo|null + */ + public function getFileEncryptionInfo(): ?FileEncryptionInfo { + $val = $this->getBackingStore()->get('fileEncryptionInfo'); + if (is_null($val) || $val instanceof FileEncryptionInfo) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'fileEncryptionInfo'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeObjectValue('fileEncryptionInfo', $this->getFileEncryptionInfo()); + $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 fileEncryptionInfo property value. The fileEncryptionInfo property + * @param FileEncryptionInfo|null $value Value to set for the fileEncryptionInfo property. + */ + public function setFileEncryptionInfo(?FileEncryptionInfo $value): void { + $this->getBackingStore()->set('fileEncryptionInfo', $value); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php new file mode 100644 index 00000000000..fc4997e31fc --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php @@ -0,0 +1,80 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Commits a file of a given app. + * @param CommitPostRequestBody $body The request body + * @param CommitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(CommitPostRequestBody $body, ?CommitRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Commits a file of a given app. + * @param CommitPostRequestBody $body The request body + * @param CommitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(CommitPostRequestBody $body, ?CommitRequestBuilderPostRequestConfiguration $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->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 CommitRequestBuilder + */ + public function withUrl(string $rawUrl): CommitRequestBuilder { + return new CommitRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..29112c5dbef --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php new file mode 100644 index 00000000000..affc2a6cd83 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php @@ -0,0 +1,172 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to call the renewUpload method. + */ + public function renewUpload(): RenewUploadRequestBuilder { + return new RenewUploadRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new MobileAppContentFileItemRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property files for deviceAppManagement + * @param MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of files for this app content version. + * @param MobileAppContentFileItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppContentFileItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property files in deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param MobileAppContentFileItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileAppContentFile $body, ?MobileAppContentFileItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property files for deviceAppManagement + * @param MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The list of files for this app content version. + * @param MobileAppContentFileItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property files in deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param MobileAppContentFileItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppContentFile $body, ?MobileAppContentFileItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppContentFileItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppContentFileItemRequestBuilder { + return new MobileAppContentFileItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..9a04c1aa6c0 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..1b01b1c41ef --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.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 MobileAppContentFileItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..d2cddcd9983 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppContentFileItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppContentFileItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppContentFileItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppContentFileItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppContentFileItemRequestBuilderGetQueryParameters { + return new MobileAppContentFileItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..46738914c94 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.php new file mode 100644 index 00000000000..a0be1f4ecd5 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Renews the SAS URI for an application file upload. + * @param RenewUploadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(?RenewUploadRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Renews the SAS URI for an application file upload. + * @param RenewUploadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?RenewUploadRequestBuilderPostRequestConfiguration $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); + } + 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 RenewUploadRequestBuilder + */ + public function withUrl(string $rawUrl): RenewUploadRequestBuilder { + return new RenewUploadRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..d6a083168ee --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php new file mode 100644 index 00000000000..917fff3843d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php @@ -0,0 +1,172 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + */ + public function files(): FilesRequestBuilder { + return new FilesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new MobileAppContentItemRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property contentVersions for deviceAppManagement + * @param MobileAppContentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileAppContentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of content versions for this app. + * @param MobileAppContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppContentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property contentVersions in deviceAppManagement + * @param MobileAppContent $body The request body + * @param MobileAppContentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileAppContent $body, ?MobileAppContentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property contentVersions for deviceAppManagement + * @param MobileAppContentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppContentItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The list of content versions for this app. + * @param MobileAppContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property contentVersions in deviceAppManagement + * @param MobileAppContent $body The request body + * @param MobileAppContentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppContent $body, ?MobileAppContentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppContentItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppContentItemRequestBuilder { + return new MobileAppContentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..c89b0d1939d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..72552d0c17d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.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 MobileAppContentItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..c71106b371f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppContentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppContentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppContentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppContentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppContentItemRequestBuilderGetQueryParameters { + return new MobileAppContentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..d502c22ad93 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.php index cf110910507..302cf53e41d 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.php @@ -5,6 +5,9 @@ use Exception; use Http\Promise\Promise; use Http\Promise\RejectedPromise; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphMacOSDmgApp\Assignments\AssignmentsRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphMacOSDmgApp\Categories\CategoriesRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphMacOSDmgApp\ContentVersions\ContentVersionsRequestBuilder; use Microsoft\Graph\Generated\Models\MacOSDmgApp; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -17,6 +20,27 @@ */ class GraphMacOSDmgAppRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + */ + public function assignments(): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + */ + public function categories(): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + */ + public function contentVersions(): ContentVersionsRequestBuilder { + return new ContentVersionsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new GraphMacOSDmgAppRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/AssignmentsRequestBuilder.php new file mode 100644 index 00000000000..a9b691228b6 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/AssignmentsRequestBuilder.php @@ -0,0 +1,144 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppAssignmentId The unique identifier of mobileAppAssignment + * @return MobileAppAssignmentItemRequestBuilder + */ + public function byMobileAppAssignmentId(string $mobileAppAssignmentId): MobileAppAssignmentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppAssignment%2Did'] = $mobileAppAssignmentId; + return new MobileAppAssignmentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new AssignmentsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-list?view=graph-rest-1.0 Find more info here + */ + public function get(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignmentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-create?view=graph-rest-1.0 Find more info here + */ + public function post(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 AssignmentsRequestBuilder + */ + public function withUrl(string $rawUrl): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..cea4d12a227 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.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 assignmentsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..712d8aa564e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param AssignmentsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?AssignmentsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new assignmentsRequestBuilderGetQueryParameters. + * @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 AssignmentsRequestBuilderGetQueryParameters + */ + 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): AssignmentsRequestBuilderGetQueryParameters { + return new AssignmentsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..bc65c20180e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..832cf8f1862 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/assignments/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..c6d7a7e68f7 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..2cfb265a290 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php new file mode 100644 index 00000000000..989db17e47c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -0,0 +1,159 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-delete?view=graph-rest-1.0 Find more info here + */ + public function delete(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-get?view=graph-rest-1.0 Find more info here + */ + public function get(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-update?view=graph-rest-1.0 Find more info here + */ + public function patch(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppAssignmentItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppAssignmentItemRequestBuilder { + return new MobileAppAssignmentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..a2b24ca1e92 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..548d651f1a1 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.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 MobileAppAssignmentItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..df0b20b9395 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppAssignmentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppAssignmentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppAssignmentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppAssignmentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppAssignmentItemRequestBuilderGetQueryParameters { + return new MobileAppAssignmentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..1ae40698d19 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/CategoriesRequestBuilder.php new file mode 100644 index 00000000000..43f814b2c0e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/CategoriesRequestBuilder.php @@ -0,0 +1,102 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppCategoryId The unique identifier of mobileAppCategory + * @return MobileAppCategoryItemRequestBuilder + */ + public function byMobileAppCategoryId(string $mobileAppCategoryId): MobileAppCategoryItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppCategory%2Did'] = $mobileAppCategoryId; + return new MobileAppCategoryItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new CategoriesRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategoryCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 CategoriesRequestBuilder + */ + public function withUrl(string $rawUrl): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/CategoriesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/CategoriesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..2b956567fef --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/CategoriesRequestBuilderGetQueryParameters.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 categoriesRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..791b77bf3f2 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CategoriesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CategoriesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new categoriesRequestBuilderGetQueryParameters. + * @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 CategoriesRequestBuilderGetQueryParameters + */ + 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): CategoriesRequestBuilderGetQueryParameters { + return new CategoriesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..1138aaf4b81 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/categories/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..b5141783ff2 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..f73e564ace6 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php new file mode 100644 index 00000000000..1d5d1834eb1 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -0,0 +1,82 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategory::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 MobileAppCategoryItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppCategoryItemRequestBuilder { + return new MobileAppCategoryItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..4221d864307 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.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 MobileAppCategoryItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..3559bb8193f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppCategoryItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppCategoryItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppCategoryItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppCategoryItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppCategoryItemRequestBuilderGetQueryParameters { + return new MobileAppCategoryItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/ContentVersionsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/ContentVersionsRequestBuilder.php new file mode 100644 index 00000000000..65538991960 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/ContentVersionsRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + * @param string $mobileAppContentId The unique identifier of mobileAppContent + * @return MobileAppContentItemRequestBuilder + */ + public function byMobileAppContentId(string $mobileAppContentId): MobileAppContentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppContent%2Did'] = $mobileAppContentId; + return new MobileAppContentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ContentVersionsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of content versions for this app. + * @param ContentVersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ContentVersionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to contentVersions for deviceAppManagement + * @param MobileAppContent $body The request body + * @param ContentVersionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileAppContent $body, ?ContentVersionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of content versions for this app. + * @param ContentVersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to contentVersions for deviceAppManagement + * @param MobileAppContent $body The request body + * @param ContentVersionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppContent $body, ?ContentVersionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 ContentVersionsRequestBuilder + */ + public function withUrl(string $rawUrl): ContentVersionsRequestBuilder { + return new ContentVersionsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..c46ab0a9e7d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.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 contentVersionsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..69dfdf85d8d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ContentVersionsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ContentVersionsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new contentVersionsRequestBuilderGetQueryParameters. + * @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 ContentVersionsRequestBuilderGetQueryParameters + */ + 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): ContentVersionsRequestBuilderGetQueryParameters { + return new ContentVersionsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..7ebb8feb024 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..20dd6696d77 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..0946059be1b --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..090923adac2 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php new file mode 100644 index 00000000000..b406c71bfa9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + * @param string $mobileContainedAppId The unique identifier of mobileContainedApp + * @return MobileContainedAppItemRequestBuilder + */ + public function byMobileContainedAppId(string $mobileContainedAppId): MobileContainedAppItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileContainedApp%2Did'] = $mobileContainedAppId; + return new MobileContainedAppItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ContainedAppsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param ContainedAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ContainedAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedAppCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to containedApps for deviceAppManagement + * @param MobileContainedApp $body The request body + * @param ContainedAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileContainedApp $body, ?ContainedAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param ContainedAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to containedApps for deviceAppManagement + * @param MobileContainedApp $body The request body + * @param ContainedAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileContainedApp $body, ?ContainedAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 ContainedAppsRequestBuilder + */ + public function withUrl(string $rawUrl): ContainedAppsRequestBuilder { + return new ContainedAppsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..8ab3116bbaa --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.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 containedAppsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..4408b4c73f2 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ContainedAppsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ContainedAppsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new containedAppsRequestBuilderGetQueryParameters. + * @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 ContainedAppsRequestBuilderGetQueryParameters + */ + 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): ContainedAppsRequestBuilderGetQueryParameters { + return new ContainedAppsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..fdf3cd02a55 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..501486ef871 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..6e6d8b5c6da --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..1699c6d7bab --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php new file mode 100644 index 00000000000..c54189dcad1 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php @@ -0,0 +1,156 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property containedApps for deviceAppManagement + * @param MobileContainedAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileContainedAppItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param MobileContainedAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileContainedAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property containedApps in deviceAppManagement + * @param MobileContainedApp $body The request body + * @param MobileContainedAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileContainedApp $body, ?MobileContainedAppItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property containedApps for deviceAppManagement + * @param MobileContainedAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileContainedAppItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param MobileContainedAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property containedApps in deviceAppManagement + * @param MobileContainedApp $body The request body + * @param MobileContainedAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileContainedApp $body, ?MobileContainedAppItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileContainedAppItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileContainedAppItemRequestBuilder { + return new MobileContainedAppItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..3e4e3af67a3 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..a7c25ced583 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.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 MobileContainedAppItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..43640a85485 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileContainedAppItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileContainedAppItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileContainedAppItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileContainedAppItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileContainedAppItemRequestBuilderGetQueryParameters { + return new MobileContainedAppItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..d80784a4b3e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..905df485e13 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..60aa57636ca --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..2a91c401191 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php new file mode 100644 index 00000000000..2fc38afe13f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + * @param string $mobileAppContentFileId The unique identifier of mobileAppContentFile + * @return MobileAppContentFileItemRequestBuilder + */ + public function byMobileAppContentFileId(string $mobileAppContentFileId): MobileAppContentFileItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppContentFile%2Did'] = $mobileAppContentFileId; + return new MobileAppContentFileItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new FilesRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of files for this app content version. + * @param FilesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?FilesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFileCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to files for deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param FilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileAppContentFile $body, ?FilesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of files for this app content version. + * @param FilesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to files for deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param FilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppContentFile $body, ?FilesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 FilesRequestBuilder + */ + public function withUrl(string $rawUrl): FilesRequestBuilder { + return new FilesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..4ddfdc30558 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.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 filesRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..2769997a901 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param FilesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?FilesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new filesRequestBuilderGetQueryParameters. + * @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 FilesRequestBuilderGetQueryParameters + */ + 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): FilesRequestBuilderGetQueryParameters { + return new FilesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..be7fee59126 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php new file mode 100644 index 00000000000..c1caf1fc6f0 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php @@ -0,0 +1,115 @@ +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 CommitPostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CommitPostRequestBody { + return new CommitPostRequestBody(); + } + + /** + * 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 [ + 'fileEncryptionInfo' => fn(ParseNode $n) => $o->setFileEncryptionInfo($n->getObjectValue([FileEncryptionInfo::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Gets the fileEncryptionInfo property value. The fileEncryptionInfo property + * @return FileEncryptionInfo|null + */ + public function getFileEncryptionInfo(): ?FileEncryptionInfo { + $val = $this->getBackingStore()->get('fileEncryptionInfo'); + if (is_null($val) || $val instanceof FileEncryptionInfo) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'fileEncryptionInfo'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeObjectValue('fileEncryptionInfo', $this->getFileEncryptionInfo()); + $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 fileEncryptionInfo property value. The fileEncryptionInfo property + * @param FileEncryptionInfo|null $value Value to set for the fileEncryptionInfo property. + */ + public function setFileEncryptionInfo(?FileEncryptionInfo $value): void { + $this->getBackingStore()->set('fileEncryptionInfo', $value); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php new file mode 100644 index 00000000000..049036f2218 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php @@ -0,0 +1,80 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Commits a file of a given app. + * @param CommitPostRequestBody $body The request body + * @param CommitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(CommitPostRequestBody $body, ?CommitRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Commits a file of a given app. + * @param CommitPostRequestBody $body The request body + * @param CommitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(CommitPostRequestBody $body, ?CommitRequestBuilderPostRequestConfiguration $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->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 CommitRequestBuilder + */ + public function withUrl(string $rawUrl): CommitRequestBuilder { + return new CommitRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..fee3710d574 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php new file mode 100644 index 00000000000..89fc748322a --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php @@ -0,0 +1,172 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to call the renewUpload method. + */ + public function renewUpload(): RenewUploadRequestBuilder { + return new RenewUploadRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new MobileAppContentFileItemRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property files for deviceAppManagement + * @param MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of files for this app content version. + * @param MobileAppContentFileItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppContentFileItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property files in deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param MobileAppContentFileItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileAppContentFile $body, ?MobileAppContentFileItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property files for deviceAppManagement + * @param MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The list of files for this app content version. + * @param MobileAppContentFileItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property files in deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param MobileAppContentFileItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppContentFile $body, ?MobileAppContentFileItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppContentFileItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppContentFileItemRequestBuilder { + return new MobileAppContentFileItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..06a53048485 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..c68922dad75 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.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 MobileAppContentFileItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e96c3cdf317 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppContentFileItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppContentFileItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppContentFileItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppContentFileItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppContentFileItemRequestBuilderGetQueryParameters { + return new MobileAppContentFileItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..bc77140c438 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.php new file mode 100644 index 00000000000..4f6de6910d4 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Renews the SAS URI for an application file upload. + * @param RenewUploadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(?RenewUploadRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Renews the SAS URI for an application file upload. + * @param RenewUploadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?RenewUploadRequestBuilderPostRequestConfiguration $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); + } + 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 RenewUploadRequestBuilder + */ + public function withUrl(string $rawUrl): RenewUploadRequestBuilder { + return new RenewUploadRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..050f169d540 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php new file mode 100644 index 00000000000..b4f7d35a5a9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php @@ -0,0 +1,172 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + */ + public function files(): FilesRequestBuilder { + return new FilesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new MobileAppContentItemRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property contentVersions for deviceAppManagement + * @param MobileAppContentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileAppContentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of content versions for this app. + * @param MobileAppContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppContentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property contentVersions in deviceAppManagement + * @param MobileAppContent $body The request body + * @param MobileAppContentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileAppContent $body, ?MobileAppContentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property contentVersions for deviceAppManagement + * @param MobileAppContentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppContentItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The list of content versions for this app. + * @param MobileAppContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property contentVersions in deviceAppManagement + * @param MobileAppContent $body The request body + * @param MobileAppContentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppContent $body, ?MobileAppContentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppContentItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppContentItemRequestBuilder { + return new MobileAppContentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..656bbf4ef84 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..db5e798791d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.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 MobileAppContentItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..d140555cbdd --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppContentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppContentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppContentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppContentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppContentItemRequestBuilderGetQueryParameters { + return new MobileAppContentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..f5277e104ef --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.php index 265e47467f9..ddabdd47378 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.php @@ -5,6 +5,9 @@ use Exception; use Http\Promise\Promise; use Http\Promise\RejectedPromise; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphMacOSLobApp\Assignments\AssignmentsRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphMacOSLobApp\Categories\CategoriesRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphMacOSLobApp\ContentVersions\ContentVersionsRequestBuilder; use Microsoft\Graph\Generated\Models\MacOSLobApp; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -17,6 +20,27 @@ */ class GraphMacOSLobAppRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + */ + public function assignments(): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + */ + public function categories(): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + */ + public function contentVersions(): ContentVersionsRequestBuilder { + return new ContentVersionsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new GraphMacOSLobAppRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/AssignmentsRequestBuilder.php new file mode 100644 index 00000000000..5b754df5a15 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/AssignmentsRequestBuilder.php @@ -0,0 +1,144 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppAssignmentId The unique identifier of mobileAppAssignment + * @return MobileAppAssignmentItemRequestBuilder + */ + public function byMobileAppAssignmentId(string $mobileAppAssignmentId): MobileAppAssignmentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppAssignment%2Did'] = $mobileAppAssignmentId; + return new MobileAppAssignmentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new AssignmentsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-list?view=graph-rest-1.0 Find more info here + */ + public function get(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignmentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-create?view=graph-rest-1.0 Find more info here + */ + public function post(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 AssignmentsRequestBuilder + */ + public function withUrl(string $rawUrl): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..0f9ab41db6c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.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 assignmentsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..6e9b88c84eb --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param AssignmentsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?AssignmentsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new assignmentsRequestBuilderGetQueryParameters. + * @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 AssignmentsRequestBuilderGetQueryParameters + */ + 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): AssignmentsRequestBuilderGetQueryParameters { + return new AssignmentsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..f7f95de6f7c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..50f60e04aef --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/assignments/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..904934258f2 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..a252ec1f669 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php new file mode 100644 index 00000000000..c373b6b5561 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -0,0 +1,159 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-delete?view=graph-rest-1.0 Find more info here + */ + public function delete(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-get?view=graph-rest-1.0 Find more info here + */ + public function get(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-update?view=graph-rest-1.0 Find more info here + */ + public function patch(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppAssignmentItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppAssignmentItemRequestBuilder { + return new MobileAppAssignmentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..6dc0cc9c1d0 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..06c6d492bde --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.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 MobileAppAssignmentItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..b6b2238204f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppAssignmentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppAssignmentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppAssignmentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppAssignmentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppAssignmentItemRequestBuilderGetQueryParameters { + return new MobileAppAssignmentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..ec721dbf2be --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/CategoriesRequestBuilder.php new file mode 100644 index 00000000000..3d8178d03a8 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/CategoriesRequestBuilder.php @@ -0,0 +1,102 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppCategoryId The unique identifier of mobileAppCategory + * @return MobileAppCategoryItemRequestBuilder + */ + public function byMobileAppCategoryId(string $mobileAppCategoryId): MobileAppCategoryItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppCategory%2Did'] = $mobileAppCategoryId; + return new MobileAppCategoryItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new CategoriesRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategoryCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 CategoriesRequestBuilder + */ + public function withUrl(string $rawUrl): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/CategoriesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/CategoriesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..e4ae9382aef --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/CategoriesRequestBuilderGetQueryParameters.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 categoriesRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..4363a2d5906 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CategoriesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CategoriesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new categoriesRequestBuilderGetQueryParameters. + * @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 CategoriesRequestBuilderGetQueryParameters + */ + 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): CategoriesRequestBuilderGetQueryParameters { + return new CategoriesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..f957f3070c8 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/categories/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..01cc8b8fe81 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..2c24a154bde --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php new file mode 100644 index 00000000000..7403ccc6772 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -0,0 +1,82 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategory::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 MobileAppCategoryItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppCategoryItemRequestBuilder { + return new MobileAppCategoryItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..2798bea27b9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.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 MobileAppCategoryItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..f41393527f2 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppCategoryItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppCategoryItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppCategoryItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppCategoryItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppCategoryItemRequestBuilderGetQueryParameters { + return new MobileAppCategoryItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.php new file mode 100644 index 00000000000..99049233f2a --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + * @param string $mobileAppContentId The unique identifier of mobileAppContent + * @return MobileAppContentItemRequestBuilder + */ + public function byMobileAppContentId(string $mobileAppContentId): MobileAppContentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppContent%2Did'] = $mobileAppContentId; + return new MobileAppContentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ContentVersionsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of content versions for this app. + * @param ContentVersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ContentVersionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to contentVersions for deviceAppManagement + * @param MobileAppContent $body The request body + * @param ContentVersionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileAppContent $body, ?ContentVersionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of content versions for this app. + * @param ContentVersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to contentVersions for deviceAppManagement + * @param MobileAppContent $body The request body + * @param ContentVersionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppContent $body, ?ContentVersionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 ContentVersionsRequestBuilder + */ + public function withUrl(string $rawUrl): ContentVersionsRequestBuilder { + return new ContentVersionsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..6aa177cd732 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.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 contentVersionsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..f6d3386022a --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ContentVersionsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ContentVersionsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new contentVersionsRequestBuilderGetQueryParameters. + * @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 ContentVersionsRequestBuilderGetQueryParameters + */ + 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): ContentVersionsRequestBuilderGetQueryParameters { + return new ContentVersionsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..e42afa86e2f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..e3e3242ee81 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..5d446a079e0 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..73831fecd9a --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php new file mode 100644 index 00000000000..e720b37d6a9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + * @param string $mobileContainedAppId The unique identifier of mobileContainedApp + * @return MobileContainedAppItemRequestBuilder + */ + public function byMobileContainedAppId(string $mobileContainedAppId): MobileContainedAppItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileContainedApp%2Did'] = $mobileContainedAppId; + return new MobileContainedAppItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ContainedAppsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param ContainedAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ContainedAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedAppCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to containedApps for deviceAppManagement + * @param MobileContainedApp $body The request body + * @param ContainedAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileContainedApp $body, ?ContainedAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param ContainedAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to containedApps for deviceAppManagement + * @param MobileContainedApp $body The request body + * @param ContainedAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileContainedApp $body, ?ContainedAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 ContainedAppsRequestBuilder + */ + public function withUrl(string $rawUrl): ContainedAppsRequestBuilder { + return new ContainedAppsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..71782f2760f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.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 containedAppsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..a2c64a02a16 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ContainedAppsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ContainedAppsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new containedAppsRequestBuilderGetQueryParameters. + * @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 ContainedAppsRequestBuilderGetQueryParameters + */ + 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): ContainedAppsRequestBuilderGetQueryParameters { + return new ContainedAppsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..e2991525326 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..47ec1c79f41 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..82cea46c099 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..d7e3ecd0cf8 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php new file mode 100644 index 00000000000..0d11ed4667e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php @@ -0,0 +1,156 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property containedApps for deviceAppManagement + * @param MobileContainedAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileContainedAppItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param MobileContainedAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileContainedAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property containedApps in deviceAppManagement + * @param MobileContainedApp $body The request body + * @param MobileContainedAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileContainedApp $body, ?MobileContainedAppItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property containedApps for deviceAppManagement + * @param MobileContainedAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileContainedAppItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param MobileContainedAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property containedApps in deviceAppManagement + * @param MobileContainedApp $body The request body + * @param MobileContainedAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileContainedApp $body, ?MobileContainedAppItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileContainedAppItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileContainedAppItemRequestBuilder { + return new MobileContainedAppItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..c1cd61f1c42 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..4ecbea8832b --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.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 MobileContainedAppItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..7307acc0122 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileContainedAppItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileContainedAppItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileContainedAppItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileContainedAppItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileContainedAppItemRequestBuilderGetQueryParameters { + return new MobileContainedAppItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..ea88da38ccd --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..5e5129674a0 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..83b3e0f8ecf --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..123842b817c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php new file mode 100644 index 00000000000..0eaf088cfa9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + * @param string $mobileAppContentFileId The unique identifier of mobileAppContentFile + * @return MobileAppContentFileItemRequestBuilder + */ + public function byMobileAppContentFileId(string $mobileAppContentFileId): MobileAppContentFileItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppContentFile%2Did'] = $mobileAppContentFileId; + return new MobileAppContentFileItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new FilesRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of files for this app content version. + * @param FilesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?FilesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFileCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to files for deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param FilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileAppContentFile $body, ?FilesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of files for this app content version. + * @param FilesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to files for deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param FilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppContentFile $body, ?FilesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 FilesRequestBuilder + */ + public function withUrl(string $rawUrl): FilesRequestBuilder { + return new FilesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..fed675f880d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.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 filesRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..3cd7ae1f317 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param FilesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?FilesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new filesRequestBuilderGetQueryParameters. + * @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 FilesRequestBuilderGetQueryParameters + */ + 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): FilesRequestBuilderGetQueryParameters { + return new FilesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..5df58df90d3 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php new file mode 100644 index 00000000000..2e8e513edcc --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php @@ -0,0 +1,115 @@ +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 CommitPostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CommitPostRequestBody { + return new CommitPostRequestBody(); + } + + /** + * 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 [ + 'fileEncryptionInfo' => fn(ParseNode $n) => $o->setFileEncryptionInfo($n->getObjectValue([FileEncryptionInfo::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Gets the fileEncryptionInfo property value. The fileEncryptionInfo property + * @return FileEncryptionInfo|null + */ + public function getFileEncryptionInfo(): ?FileEncryptionInfo { + $val = $this->getBackingStore()->get('fileEncryptionInfo'); + if (is_null($val) || $val instanceof FileEncryptionInfo) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'fileEncryptionInfo'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeObjectValue('fileEncryptionInfo', $this->getFileEncryptionInfo()); + $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 fileEncryptionInfo property value. The fileEncryptionInfo property + * @param FileEncryptionInfo|null $value Value to set for the fileEncryptionInfo property. + */ + public function setFileEncryptionInfo(?FileEncryptionInfo $value): void { + $this->getBackingStore()->set('fileEncryptionInfo', $value); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php new file mode 100644 index 00000000000..2c489e03d65 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php @@ -0,0 +1,80 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Commits a file of a given app. + * @param CommitPostRequestBody $body The request body + * @param CommitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(CommitPostRequestBody $body, ?CommitRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Commits a file of a given app. + * @param CommitPostRequestBody $body The request body + * @param CommitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(CommitPostRequestBody $body, ?CommitRequestBuilderPostRequestConfiguration $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->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 CommitRequestBuilder + */ + public function withUrl(string $rawUrl): CommitRequestBuilder { + return new CommitRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..507fbe1c45c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php new file mode 100644 index 00000000000..59da9578b67 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php @@ -0,0 +1,172 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to call the renewUpload method. + */ + public function renewUpload(): RenewUploadRequestBuilder { + return new RenewUploadRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new MobileAppContentFileItemRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property files for deviceAppManagement + * @param MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of files for this app content version. + * @param MobileAppContentFileItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppContentFileItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property files in deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param MobileAppContentFileItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileAppContentFile $body, ?MobileAppContentFileItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property files for deviceAppManagement + * @param MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The list of files for this app content version. + * @param MobileAppContentFileItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property files in deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param MobileAppContentFileItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppContentFile $body, ?MobileAppContentFileItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppContentFileItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppContentFileItemRequestBuilder { + return new MobileAppContentFileItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..9979c7a0b9a --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..ce10b7460ec --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.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 MobileAppContentFileItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..68a98a91ad8 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppContentFileItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppContentFileItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppContentFileItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppContentFileItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppContentFileItemRequestBuilderGetQueryParameters { + return new MobileAppContentFileItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..cfea7819bd5 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.php new file mode 100644 index 00000000000..a247f7b27b4 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Renews the SAS URI for an application file upload. + * @param RenewUploadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(?RenewUploadRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Renews the SAS URI for an application file upload. + * @param RenewUploadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?RenewUploadRequestBuilderPostRequestConfiguration $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); + } + 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 RenewUploadRequestBuilder + */ + public function withUrl(string $rawUrl): RenewUploadRequestBuilder { + return new RenewUploadRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..6ddb407eb33 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php new file mode 100644 index 00000000000..0fe43f7be06 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php @@ -0,0 +1,172 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + */ + public function files(): FilesRequestBuilder { + return new FilesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new MobileAppContentItemRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property contentVersions for deviceAppManagement + * @param MobileAppContentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileAppContentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of content versions for this app. + * @param MobileAppContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppContentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property contentVersions in deviceAppManagement + * @param MobileAppContent $body The request body + * @param MobileAppContentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileAppContent $body, ?MobileAppContentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property contentVersions for deviceAppManagement + * @param MobileAppContentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppContentItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The list of content versions for this app. + * @param MobileAppContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property contentVersions in deviceAppManagement + * @param MobileAppContent $body The request body + * @param MobileAppContentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppContent $body, ?MobileAppContentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppContentItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppContentItemRequestBuilder { + return new MobileAppContentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..67a96e7f0bc --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..36334632d97 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.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 MobileAppContentItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..0f9e19bc280 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppContentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppContentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppContentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppContentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppContentItemRequestBuilderGetQueryParameters { + return new MobileAppContentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..3bd6b60e86f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.php index d3b360633c8..9fbd5cb809a 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.php @@ -5,6 +5,9 @@ use Exception; use Http\Promise\Promise; use Http\Promise\RejectedPromise; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphManagedAndroidLobApp\Assignments\AssignmentsRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphManagedAndroidLobApp\Categories\CategoriesRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphManagedAndroidLobApp\ContentVersions\ContentVersionsRequestBuilder; use Microsoft\Graph\Generated\Models\ManagedAndroidLobApp; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -17,6 +20,27 @@ */ class GraphManagedAndroidLobAppRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + */ + public function assignments(): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + */ + public function categories(): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + */ + public function contentVersions(): ContentVersionsRequestBuilder { + return new ContentVersionsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new GraphManagedAndroidLobAppRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/AssignmentsRequestBuilder.php new file mode 100644 index 00000000000..075cfa47ac7 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/AssignmentsRequestBuilder.php @@ -0,0 +1,144 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppAssignmentId The unique identifier of mobileAppAssignment + * @return MobileAppAssignmentItemRequestBuilder + */ + public function byMobileAppAssignmentId(string $mobileAppAssignmentId): MobileAppAssignmentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppAssignment%2Did'] = $mobileAppAssignmentId; + return new MobileAppAssignmentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new AssignmentsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-list?view=graph-rest-1.0 Find more info here + */ + public function get(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignmentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-create?view=graph-rest-1.0 Find more info here + */ + public function post(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 AssignmentsRequestBuilder + */ + public function withUrl(string $rawUrl): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..dd1b5845ad8 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.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 assignmentsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..318d110df43 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param AssignmentsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?AssignmentsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new assignmentsRequestBuilderGetQueryParameters. + * @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 AssignmentsRequestBuilderGetQueryParameters + */ + 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): AssignmentsRequestBuilderGetQueryParameters { + return new AssignmentsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..f7b20547fdd --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..48fe899e0b7 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/assignments/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..c34ad576f58 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..8abeae24c96 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php new file mode 100644 index 00000000000..38a8b6d61de --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -0,0 +1,159 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-delete?view=graph-rest-1.0 Find more info here + */ + public function delete(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-get?view=graph-rest-1.0 Find more info here + */ + public function get(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-update?view=graph-rest-1.0 Find more info here + */ + public function patch(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppAssignmentItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppAssignmentItemRequestBuilder { + return new MobileAppAssignmentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..85e3a00b575 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..5a096de57ce --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.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 MobileAppAssignmentItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..f6a99a2caa4 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppAssignmentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppAssignmentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppAssignmentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppAssignmentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppAssignmentItemRequestBuilderGetQueryParameters { + return new MobileAppAssignmentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..0830b8c1a35 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/CategoriesRequestBuilder.php new file mode 100644 index 00000000000..0b11dc93c8e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/CategoriesRequestBuilder.php @@ -0,0 +1,102 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppCategoryId The unique identifier of mobileAppCategory + * @return MobileAppCategoryItemRequestBuilder + */ + public function byMobileAppCategoryId(string $mobileAppCategoryId): MobileAppCategoryItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppCategory%2Did'] = $mobileAppCategoryId; + return new MobileAppCategoryItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new CategoriesRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategoryCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 CategoriesRequestBuilder + */ + public function withUrl(string $rawUrl): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/CategoriesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/CategoriesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..4fdb0eeceba --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/CategoriesRequestBuilderGetQueryParameters.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 categoriesRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..0f6740d32bc --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CategoriesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CategoriesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new categoriesRequestBuilderGetQueryParameters. + * @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 CategoriesRequestBuilderGetQueryParameters + */ + 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): CategoriesRequestBuilderGetQueryParameters { + return new CategoriesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..3d06c383357 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/categories/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..60907b53c2c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..a9d7f7c94f7 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php new file mode 100644 index 00000000000..96b15f3e9e8 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -0,0 +1,82 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategory::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 MobileAppCategoryItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppCategoryItemRequestBuilder { + return new MobileAppCategoryItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..9917a2ede03 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.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 MobileAppCategoryItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..11e5994cf2f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppCategoryItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppCategoryItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppCategoryItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppCategoryItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppCategoryItemRequestBuilderGetQueryParameters { + return new MobileAppCategoryItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/ContentVersionsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/ContentVersionsRequestBuilder.php new file mode 100644 index 00000000000..acffd579400 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/ContentVersionsRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + * @param string $mobileAppContentId The unique identifier of mobileAppContent + * @return MobileAppContentItemRequestBuilder + */ + public function byMobileAppContentId(string $mobileAppContentId): MobileAppContentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppContent%2Did'] = $mobileAppContentId; + return new MobileAppContentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ContentVersionsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of content versions for this app. + * @param ContentVersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ContentVersionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to contentVersions for deviceAppManagement + * @param MobileAppContent $body The request body + * @param ContentVersionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileAppContent $body, ?ContentVersionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of content versions for this app. + * @param ContentVersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to contentVersions for deviceAppManagement + * @param MobileAppContent $body The request body + * @param ContentVersionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppContent $body, ?ContentVersionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 ContentVersionsRequestBuilder + */ + public function withUrl(string $rawUrl): ContentVersionsRequestBuilder { + return new ContentVersionsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..c658f6efb34 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.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 contentVersionsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..3d33ec6f4f6 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ContentVersionsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ContentVersionsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new contentVersionsRequestBuilderGetQueryParameters. + * @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 ContentVersionsRequestBuilderGetQueryParameters + */ + 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): ContentVersionsRequestBuilderGetQueryParameters { + return new ContentVersionsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..958224b0e7f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..db4178658e2 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..ded3976f557 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..1e4c15f6d35 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php new file mode 100644 index 00000000000..593b8b22c30 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + * @param string $mobileContainedAppId The unique identifier of mobileContainedApp + * @return MobileContainedAppItemRequestBuilder + */ + public function byMobileContainedAppId(string $mobileContainedAppId): MobileContainedAppItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileContainedApp%2Did'] = $mobileContainedAppId; + return new MobileContainedAppItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ContainedAppsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param ContainedAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ContainedAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedAppCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to containedApps for deviceAppManagement + * @param MobileContainedApp $body The request body + * @param ContainedAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileContainedApp $body, ?ContainedAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param ContainedAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to containedApps for deviceAppManagement + * @param MobileContainedApp $body The request body + * @param ContainedAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileContainedApp $body, ?ContainedAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 ContainedAppsRequestBuilder + */ + public function withUrl(string $rawUrl): ContainedAppsRequestBuilder { + return new ContainedAppsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..f1934217a91 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.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 containedAppsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..3416fd21cd7 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ContainedAppsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ContainedAppsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new containedAppsRequestBuilderGetQueryParameters. + * @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 ContainedAppsRequestBuilderGetQueryParameters + */ + 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): ContainedAppsRequestBuilderGetQueryParameters { + return new ContainedAppsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..c8c2f95f7a9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..42c88d60486 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..4f8589f5a8f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..cb300177252 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php new file mode 100644 index 00000000000..f0384da8890 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php @@ -0,0 +1,156 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property containedApps for deviceAppManagement + * @param MobileContainedAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileContainedAppItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param MobileContainedAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileContainedAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property containedApps in deviceAppManagement + * @param MobileContainedApp $body The request body + * @param MobileContainedAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileContainedApp $body, ?MobileContainedAppItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property containedApps for deviceAppManagement + * @param MobileContainedAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileContainedAppItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param MobileContainedAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property containedApps in deviceAppManagement + * @param MobileContainedApp $body The request body + * @param MobileContainedAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileContainedApp $body, ?MobileContainedAppItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileContainedAppItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileContainedAppItemRequestBuilder { + return new MobileContainedAppItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..a5532279400 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..bc9bed15e83 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.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 MobileContainedAppItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..39deaf6e772 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileContainedAppItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileContainedAppItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileContainedAppItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileContainedAppItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileContainedAppItemRequestBuilderGetQueryParameters { + return new MobileContainedAppItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..d9d33e513b3 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..f0da85fcb91 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..a4a667819f1 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..1c15c824289 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php new file mode 100644 index 00000000000..164adb55874 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + * @param string $mobileAppContentFileId The unique identifier of mobileAppContentFile + * @return MobileAppContentFileItemRequestBuilder + */ + public function byMobileAppContentFileId(string $mobileAppContentFileId): MobileAppContentFileItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppContentFile%2Did'] = $mobileAppContentFileId; + return new MobileAppContentFileItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new FilesRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of files for this app content version. + * @param FilesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?FilesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFileCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to files for deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param FilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileAppContentFile $body, ?FilesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of files for this app content version. + * @param FilesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to files for deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param FilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppContentFile $body, ?FilesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 FilesRequestBuilder + */ + public function withUrl(string $rawUrl): FilesRequestBuilder { + return new FilesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..83180bb2072 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.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 filesRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..91c0107718c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param FilesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?FilesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new filesRequestBuilderGetQueryParameters. + * @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 FilesRequestBuilderGetQueryParameters + */ + 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): FilesRequestBuilderGetQueryParameters { + return new FilesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..863696c8031 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php new file mode 100644 index 00000000000..1bcfb747d42 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php @@ -0,0 +1,115 @@ +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 CommitPostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CommitPostRequestBody { + return new CommitPostRequestBody(); + } + + /** + * 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 [ + 'fileEncryptionInfo' => fn(ParseNode $n) => $o->setFileEncryptionInfo($n->getObjectValue([FileEncryptionInfo::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Gets the fileEncryptionInfo property value. The fileEncryptionInfo property + * @return FileEncryptionInfo|null + */ + public function getFileEncryptionInfo(): ?FileEncryptionInfo { + $val = $this->getBackingStore()->get('fileEncryptionInfo'); + if (is_null($val) || $val instanceof FileEncryptionInfo) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'fileEncryptionInfo'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeObjectValue('fileEncryptionInfo', $this->getFileEncryptionInfo()); + $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 fileEncryptionInfo property value. The fileEncryptionInfo property + * @param FileEncryptionInfo|null $value Value to set for the fileEncryptionInfo property. + */ + public function setFileEncryptionInfo(?FileEncryptionInfo $value): void { + $this->getBackingStore()->set('fileEncryptionInfo', $value); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php new file mode 100644 index 00000000000..99172eb02af --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php @@ -0,0 +1,80 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Commits a file of a given app. + * @param CommitPostRequestBody $body The request body + * @param CommitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(CommitPostRequestBody $body, ?CommitRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Commits a file of a given app. + * @param CommitPostRequestBody $body The request body + * @param CommitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(CommitPostRequestBody $body, ?CommitRequestBuilderPostRequestConfiguration $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->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 CommitRequestBuilder + */ + public function withUrl(string $rawUrl): CommitRequestBuilder { + return new CommitRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..b916b9ba3b2 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php new file mode 100644 index 00000000000..8edafbdda1b --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php @@ -0,0 +1,172 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to call the renewUpload method. + */ + public function renewUpload(): RenewUploadRequestBuilder { + return new RenewUploadRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new MobileAppContentFileItemRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property files for deviceAppManagement + * @param MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of files for this app content version. + * @param MobileAppContentFileItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppContentFileItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property files in deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param MobileAppContentFileItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileAppContentFile $body, ?MobileAppContentFileItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property files for deviceAppManagement + * @param MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The list of files for this app content version. + * @param MobileAppContentFileItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property files in deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param MobileAppContentFileItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppContentFile $body, ?MobileAppContentFileItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppContentFileItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppContentFileItemRequestBuilder { + return new MobileAppContentFileItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..9675d257758 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..b62f602035e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.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 MobileAppContentFileItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..edb67274b77 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppContentFileItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppContentFileItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppContentFileItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppContentFileItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppContentFileItemRequestBuilderGetQueryParameters { + return new MobileAppContentFileItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..b731f8ef3a1 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.php new file mode 100644 index 00000000000..57bc23ec069 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Renews the SAS URI for an application file upload. + * @param RenewUploadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(?RenewUploadRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Renews the SAS URI for an application file upload. + * @param RenewUploadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?RenewUploadRequestBuilderPostRequestConfiguration $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); + } + 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 RenewUploadRequestBuilder + */ + public function withUrl(string $rawUrl): RenewUploadRequestBuilder { + return new RenewUploadRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..c9b2be98e11 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php new file mode 100644 index 00000000000..200b366a704 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php @@ -0,0 +1,172 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + */ + public function files(): FilesRequestBuilder { + return new FilesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new MobileAppContentItemRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property contentVersions for deviceAppManagement + * @param MobileAppContentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileAppContentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of content versions for this app. + * @param MobileAppContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppContentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property contentVersions in deviceAppManagement + * @param MobileAppContent $body The request body + * @param MobileAppContentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileAppContent $body, ?MobileAppContentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property contentVersions for deviceAppManagement + * @param MobileAppContentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppContentItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The list of content versions for this app. + * @param MobileAppContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property contentVersions in deviceAppManagement + * @param MobileAppContent $body The request body + * @param MobileAppContentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppContent $body, ?MobileAppContentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppContentItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppContentItemRequestBuilder { + return new MobileAppContentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..3dfaeffea22 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..ddb41b918be --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.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 MobileAppContentItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..4a254fdb4bd --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppContentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppContentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppContentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppContentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppContentItemRequestBuilderGetQueryParameters { + return new MobileAppContentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..e5b819ba3dc --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.php index 9b749cca325..444d49bf76e 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.php @@ -5,6 +5,9 @@ use Exception; use Http\Promise\Promise; use Http\Promise\RejectedPromise; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphManagedIOSLobApp\Assignments\AssignmentsRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphManagedIOSLobApp\Categories\CategoriesRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphManagedIOSLobApp\ContentVersions\ContentVersionsRequestBuilder; use Microsoft\Graph\Generated\Models\ManagedIOSLobApp; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -17,6 +20,27 @@ */ class GraphManagedIOSLobAppRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + */ + public function assignments(): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + */ + public function categories(): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + */ + public function contentVersions(): ContentVersionsRequestBuilder { + return new ContentVersionsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new GraphManagedIOSLobAppRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/AssignmentsRequestBuilder.php new file mode 100644 index 00000000000..d073eada3e2 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/AssignmentsRequestBuilder.php @@ -0,0 +1,144 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppAssignmentId The unique identifier of mobileAppAssignment + * @return MobileAppAssignmentItemRequestBuilder + */ + public function byMobileAppAssignmentId(string $mobileAppAssignmentId): MobileAppAssignmentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppAssignment%2Did'] = $mobileAppAssignmentId; + return new MobileAppAssignmentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new AssignmentsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-list?view=graph-rest-1.0 Find more info here + */ + public function get(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignmentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-create?view=graph-rest-1.0 Find more info here + */ + public function post(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 AssignmentsRequestBuilder + */ + public function withUrl(string $rawUrl): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..574edccd6e6 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.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 assignmentsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..65700e21481 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param AssignmentsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?AssignmentsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new assignmentsRequestBuilderGetQueryParameters. + * @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 AssignmentsRequestBuilderGetQueryParameters + */ + 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): AssignmentsRequestBuilderGetQueryParameters { + return new AssignmentsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..6d4567f019c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..e41be051272 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/assignments/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..48ec23b3caf --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..9268585ce78 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php new file mode 100644 index 00000000000..48fdc676b4d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -0,0 +1,159 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-delete?view=graph-rest-1.0 Find more info here + */ + public function delete(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-get?view=graph-rest-1.0 Find more info here + */ + public function get(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-update?view=graph-rest-1.0 Find more info here + */ + public function patch(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppAssignmentItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppAssignmentItemRequestBuilder { + return new MobileAppAssignmentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..fa7fb593634 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..0c828683321 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.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 MobileAppAssignmentItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..a83a04ea7a9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppAssignmentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppAssignmentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppAssignmentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppAssignmentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppAssignmentItemRequestBuilderGetQueryParameters { + return new MobileAppAssignmentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..44406de264c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/CategoriesRequestBuilder.php new file mode 100644 index 00000000000..39f2acb16d2 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/CategoriesRequestBuilder.php @@ -0,0 +1,102 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppCategoryId The unique identifier of mobileAppCategory + * @return MobileAppCategoryItemRequestBuilder + */ + public function byMobileAppCategoryId(string $mobileAppCategoryId): MobileAppCategoryItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppCategory%2Did'] = $mobileAppCategoryId; + return new MobileAppCategoryItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new CategoriesRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategoryCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 CategoriesRequestBuilder + */ + public function withUrl(string $rawUrl): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/CategoriesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/CategoriesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..92442bb1383 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/CategoriesRequestBuilderGetQueryParameters.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 categoriesRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..1394077c4c2 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CategoriesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CategoriesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new categoriesRequestBuilderGetQueryParameters. + * @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 CategoriesRequestBuilderGetQueryParameters + */ + 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): CategoriesRequestBuilderGetQueryParameters { + return new CategoriesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..f4d74b085a2 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/categories/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..8fe3f395734 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..91174f7b285 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php new file mode 100644 index 00000000000..4afde7858b3 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -0,0 +1,82 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategory::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 MobileAppCategoryItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppCategoryItemRequestBuilder { + return new MobileAppCategoryItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..36f9789603e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.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 MobileAppCategoryItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..2b47b3f30f8 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppCategoryItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppCategoryItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppCategoryItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppCategoryItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppCategoryItemRequestBuilderGetQueryParameters { + return new MobileAppCategoryItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/ContentVersionsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/ContentVersionsRequestBuilder.php new file mode 100644 index 00000000000..d64bd549ffd --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/ContentVersionsRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + * @param string $mobileAppContentId The unique identifier of mobileAppContent + * @return MobileAppContentItemRequestBuilder + */ + public function byMobileAppContentId(string $mobileAppContentId): MobileAppContentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppContent%2Did'] = $mobileAppContentId; + return new MobileAppContentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ContentVersionsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of content versions for this app. + * @param ContentVersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ContentVersionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to contentVersions for deviceAppManagement + * @param MobileAppContent $body The request body + * @param ContentVersionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileAppContent $body, ?ContentVersionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of content versions for this app. + * @param ContentVersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to contentVersions for deviceAppManagement + * @param MobileAppContent $body The request body + * @param ContentVersionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppContent $body, ?ContentVersionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 ContentVersionsRequestBuilder + */ + public function withUrl(string $rawUrl): ContentVersionsRequestBuilder { + return new ContentVersionsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..0354f2b0a53 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.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 contentVersionsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..61f88d0b8ce --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ContentVersionsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ContentVersionsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new contentVersionsRequestBuilderGetQueryParameters. + * @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 ContentVersionsRequestBuilderGetQueryParameters + */ + 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): ContentVersionsRequestBuilderGetQueryParameters { + return new ContentVersionsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..293be0beb81 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..598c709a7c6 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..a06dd10f396 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..c40509007f8 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php new file mode 100644 index 00000000000..b27a2d2b41e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + * @param string $mobileContainedAppId The unique identifier of mobileContainedApp + * @return MobileContainedAppItemRequestBuilder + */ + public function byMobileContainedAppId(string $mobileContainedAppId): MobileContainedAppItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileContainedApp%2Did'] = $mobileContainedAppId; + return new MobileContainedAppItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ContainedAppsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param ContainedAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ContainedAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedAppCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to containedApps for deviceAppManagement + * @param MobileContainedApp $body The request body + * @param ContainedAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileContainedApp $body, ?ContainedAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param ContainedAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to containedApps for deviceAppManagement + * @param MobileContainedApp $body The request body + * @param ContainedAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileContainedApp $body, ?ContainedAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 ContainedAppsRequestBuilder + */ + public function withUrl(string $rawUrl): ContainedAppsRequestBuilder { + return new ContainedAppsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..b60bb76a3b9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.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 containedAppsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..55122992cd7 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ContainedAppsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ContainedAppsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new containedAppsRequestBuilderGetQueryParameters. + * @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 ContainedAppsRequestBuilderGetQueryParameters + */ + 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): ContainedAppsRequestBuilderGetQueryParameters { + return new ContainedAppsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..92c5aa10328 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..0f6f97e106f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..37d4cf5b93c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..a6504836bff --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php new file mode 100644 index 00000000000..337eeb8ae64 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php @@ -0,0 +1,156 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property containedApps for deviceAppManagement + * @param MobileContainedAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileContainedAppItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param MobileContainedAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileContainedAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property containedApps in deviceAppManagement + * @param MobileContainedApp $body The request body + * @param MobileContainedAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileContainedApp $body, ?MobileContainedAppItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property containedApps for deviceAppManagement + * @param MobileContainedAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileContainedAppItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param MobileContainedAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property containedApps in deviceAppManagement + * @param MobileContainedApp $body The request body + * @param MobileContainedAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileContainedApp $body, ?MobileContainedAppItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileContainedAppItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileContainedAppItemRequestBuilder { + return new MobileContainedAppItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..8b4da68c89c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..e21b6dda8d5 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.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 MobileContainedAppItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..061bce6a0a1 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileContainedAppItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileContainedAppItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileContainedAppItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileContainedAppItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileContainedAppItemRequestBuilderGetQueryParameters { + return new MobileContainedAppItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..22f7c173958 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..c8654d8dfa9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..1f0be3022f8 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..42cc5a4e5b4 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php new file mode 100644 index 00000000000..028d7a35df9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + * @param string $mobileAppContentFileId The unique identifier of mobileAppContentFile + * @return MobileAppContentFileItemRequestBuilder + */ + public function byMobileAppContentFileId(string $mobileAppContentFileId): MobileAppContentFileItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppContentFile%2Did'] = $mobileAppContentFileId; + return new MobileAppContentFileItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new FilesRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of files for this app content version. + * @param FilesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?FilesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFileCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to files for deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param FilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileAppContentFile $body, ?FilesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of files for this app content version. + * @param FilesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to files for deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param FilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppContentFile $body, ?FilesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 FilesRequestBuilder + */ + public function withUrl(string $rawUrl): FilesRequestBuilder { + return new FilesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..c5790016ca5 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.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 filesRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..a6192641982 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param FilesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?FilesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new filesRequestBuilderGetQueryParameters. + * @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 FilesRequestBuilderGetQueryParameters + */ + 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): FilesRequestBuilderGetQueryParameters { + return new FilesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..f84801e1128 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php new file mode 100644 index 00000000000..f3b09a5fa2f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php @@ -0,0 +1,115 @@ +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 CommitPostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CommitPostRequestBody { + return new CommitPostRequestBody(); + } + + /** + * 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 [ + 'fileEncryptionInfo' => fn(ParseNode $n) => $o->setFileEncryptionInfo($n->getObjectValue([FileEncryptionInfo::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Gets the fileEncryptionInfo property value. The fileEncryptionInfo property + * @return FileEncryptionInfo|null + */ + public function getFileEncryptionInfo(): ?FileEncryptionInfo { + $val = $this->getBackingStore()->get('fileEncryptionInfo'); + if (is_null($val) || $val instanceof FileEncryptionInfo) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'fileEncryptionInfo'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeObjectValue('fileEncryptionInfo', $this->getFileEncryptionInfo()); + $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 fileEncryptionInfo property value. The fileEncryptionInfo property + * @param FileEncryptionInfo|null $value Value to set for the fileEncryptionInfo property. + */ + public function setFileEncryptionInfo(?FileEncryptionInfo $value): void { + $this->getBackingStore()->set('fileEncryptionInfo', $value); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php new file mode 100644 index 00000000000..0f3e0244529 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php @@ -0,0 +1,80 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Commits a file of a given app. + * @param CommitPostRequestBody $body The request body + * @param CommitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(CommitPostRequestBody $body, ?CommitRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Commits a file of a given app. + * @param CommitPostRequestBody $body The request body + * @param CommitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(CommitPostRequestBody $body, ?CommitRequestBuilderPostRequestConfiguration $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->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 CommitRequestBuilder + */ + public function withUrl(string $rawUrl): CommitRequestBuilder { + return new CommitRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..5554b6f42d6 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php new file mode 100644 index 00000000000..6b3ae921db3 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php @@ -0,0 +1,172 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to call the renewUpload method. + */ + public function renewUpload(): RenewUploadRequestBuilder { + return new RenewUploadRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new MobileAppContentFileItemRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property files for deviceAppManagement + * @param MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of files for this app content version. + * @param MobileAppContentFileItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppContentFileItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property files in deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param MobileAppContentFileItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileAppContentFile $body, ?MobileAppContentFileItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property files for deviceAppManagement + * @param MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The list of files for this app content version. + * @param MobileAppContentFileItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property files in deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param MobileAppContentFileItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppContentFile $body, ?MobileAppContentFileItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppContentFileItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppContentFileItemRequestBuilder { + return new MobileAppContentFileItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..fd693d4a7b1 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..faaa67050d2 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.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 MobileAppContentFileItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..7044778e9f1 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppContentFileItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppContentFileItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppContentFileItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppContentFileItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppContentFileItemRequestBuilderGetQueryParameters { + return new MobileAppContentFileItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..0571cfc8750 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.php new file mode 100644 index 00000000000..ad9c8aed5e9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Renews the SAS URI for an application file upload. + * @param RenewUploadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(?RenewUploadRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Renews the SAS URI for an application file upload. + * @param RenewUploadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?RenewUploadRequestBuilderPostRequestConfiguration $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); + } + 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 RenewUploadRequestBuilder + */ + public function withUrl(string $rawUrl): RenewUploadRequestBuilder { + return new RenewUploadRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..9198cc767b3 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php new file mode 100644 index 00000000000..ed88d8afe45 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php @@ -0,0 +1,172 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + */ + public function files(): FilesRequestBuilder { + return new FilesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new MobileAppContentItemRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property contentVersions for deviceAppManagement + * @param MobileAppContentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileAppContentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of content versions for this app. + * @param MobileAppContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppContentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property contentVersions in deviceAppManagement + * @param MobileAppContent $body The request body + * @param MobileAppContentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileAppContent $body, ?MobileAppContentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property contentVersions for deviceAppManagement + * @param MobileAppContentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppContentItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The list of content versions for this app. + * @param MobileAppContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property contentVersions in deviceAppManagement + * @param MobileAppContent $body The request body + * @param MobileAppContentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppContent $body, ?MobileAppContentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppContentItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppContentItemRequestBuilder { + return new MobileAppContentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..5e9c26e46cd --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..9a0e0f8e998 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.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 MobileAppContentItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..1adf10f14a3 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppContentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppContentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppContentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppContentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppContentItemRequestBuilderGetQueryParameters { + return new MobileAppContentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..d45326f980e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.php index 4cd5aa8d780..3d6dd8c9f75 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.php @@ -5,6 +5,9 @@ use Exception; use Http\Promise\Promise; use Http\Promise\RejectedPromise; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphManagedMobileLobApp\Assignments\AssignmentsRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphManagedMobileLobApp\Categories\CategoriesRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphManagedMobileLobApp\ContentVersions\ContentVersionsRequestBuilder; use Microsoft\Graph\Generated\Models\ManagedMobileLobApp; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -17,6 +20,27 @@ */ class GraphManagedMobileLobAppRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + */ + public function assignments(): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + */ + public function categories(): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + */ + public function contentVersions(): ContentVersionsRequestBuilder { + return new ContentVersionsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new GraphManagedMobileLobAppRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/AssignmentsRequestBuilder.php new file mode 100644 index 00000000000..133134777a6 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/AssignmentsRequestBuilder.php @@ -0,0 +1,144 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppAssignmentId The unique identifier of mobileAppAssignment + * @return MobileAppAssignmentItemRequestBuilder + */ + public function byMobileAppAssignmentId(string $mobileAppAssignmentId): MobileAppAssignmentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppAssignment%2Did'] = $mobileAppAssignmentId; + return new MobileAppAssignmentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new AssignmentsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-list?view=graph-rest-1.0 Find more info here + */ + public function get(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignmentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-create?view=graph-rest-1.0 Find more info here + */ + public function post(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 AssignmentsRequestBuilder + */ + public function withUrl(string $rawUrl): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..9db2567308a --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.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 assignmentsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..49f51729464 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param AssignmentsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?AssignmentsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new assignmentsRequestBuilderGetQueryParameters. + * @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 AssignmentsRequestBuilderGetQueryParameters + */ + 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): AssignmentsRequestBuilderGetQueryParameters { + return new AssignmentsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..539fba2f2e8 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..aaaaf1de03b --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/assignments/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..f71be57527e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..9d49a7e4de0 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/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/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php new file mode 100644 index 00000000000..fc5d177e913 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -0,0 +1,159 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-delete?view=graph-rest-1.0 Find more info here + */ + public function delete(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-get?view=graph-rest-1.0 Find more info here + */ + public function get(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-update?view=graph-rest-1.0 Find more info here + */ + public function patch(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppAssignmentItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppAssignmentItemRequestBuilder { + return new MobileAppAssignmentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..14e3927c838 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..bf9aa4596c4 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.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 MobileAppAssignmentItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e17f76a6eaf --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppAssignmentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppAssignmentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppAssignmentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppAssignmentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppAssignmentItemRequestBuilderGetQueryParameters { + return new MobileAppAssignmentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..a43f460f782 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/CategoriesRequestBuilder.php new file mode 100644 index 00000000000..00a79fd4811 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/CategoriesRequestBuilder.php @@ -0,0 +1,102 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppCategoryId The unique identifier of mobileAppCategory + * @return MobileAppCategoryItemRequestBuilder + */ + public function byMobileAppCategoryId(string $mobileAppCategoryId): MobileAppCategoryItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppCategory%2Did'] = $mobileAppCategoryId; + return new MobileAppCategoryItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new CategoriesRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategoryCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 CategoriesRequestBuilder + */ + public function withUrl(string $rawUrl): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/CategoriesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/CategoriesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..45b7be50ac8 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/CategoriesRequestBuilderGetQueryParameters.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 categoriesRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..58b567d3429 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CategoriesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CategoriesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new categoriesRequestBuilderGetQueryParameters. + * @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 CategoriesRequestBuilderGetQueryParameters + */ + 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): CategoriesRequestBuilderGetQueryParameters { + return new CategoriesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..93177306607 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/categories/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..03f0d56ebe3 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..053a5106622 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/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/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php new file mode 100644 index 00000000000..0d361f3e7d4 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -0,0 +1,82 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategory::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 MobileAppCategoryItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppCategoryItemRequestBuilder { + return new MobileAppCategoryItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..67d7e0d20b2 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.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 MobileAppCategoryItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..d52b2e22af8 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppCategoryItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppCategoryItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppCategoryItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppCategoryItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppCategoryItemRequestBuilderGetQueryParameters { + return new MobileAppCategoryItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.php index 0e5d42c5dac..f68d70fbe23 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.php @@ -5,6 +5,8 @@ use Exception; use Http\Promise\Promise; use Http\Promise\RejectedPromise; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphMicrosoftStoreForBusinessApp\Assignments\AssignmentsRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphMicrosoftStoreForBusinessApp\Categories\CategoriesRequestBuilder; use Microsoft\Graph\Generated\Models\MicrosoftStoreForBusinessApp; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -17,6 +19,20 @@ */ class GraphMicrosoftStoreForBusinessAppRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + */ + public function assignments(): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + */ + public function categories(): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new GraphMicrosoftStoreForBusinessAppRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/AssignmentsRequestBuilder.php new file mode 100644 index 00000000000..c713726b5bb --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/AssignmentsRequestBuilder.php @@ -0,0 +1,144 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppAssignmentId The unique identifier of mobileAppAssignment + * @return MobileAppAssignmentItemRequestBuilder + */ + public function byMobileAppAssignmentId(string $mobileAppAssignmentId): MobileAppAssignmentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppAssignment%2Did'] = $mobileAppAssignmentId; + return new MobileAppAssignmentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new AssignmentsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-list?view=graph-rest-1.0 Find more info here + */ + public function get(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignmentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-create?view=graph-rest-1.0 Find more info here + */ + public function post(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 AssignmentsRequestBuilder + */ + public function withUrl(string $rawUrl): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..ab4bbc73099 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.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 assignmentsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..a506cac8a65 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param AssignmentsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?AssignmentsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new assignmentsRequestBuilderGetQueryParameters. + * @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 AssignmentsRequestBuilderGetQueryParameters + */ + 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): AssignmentsRequestBuilderGetQueryParameters { + return new AssignmentsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..24f45126669 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..179f8654a24 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/assignments/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..cd66881a978 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..ad5e4271817 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php new file mode 100644 index 00000000000..8b587970eb4 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -0,0 +1,159 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-delete?view=graph-rest-1.0 Find more info here + */ + public function delete(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-get?view=graph-rest-1.0 Find more info here + */ + public function get(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-update?view=graph-rest-1.0 Find more info here + */ + public function patch(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppAssignmentItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppAssignmentItemRequestBuilder { + return new MobileAppAssignmentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..fd006409ef9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..cf209ded6f4 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.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 MobileAppAssignmentItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..826da528d8a --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppAssignmentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppAssignmentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppAssignmentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppAssignmentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppAssignmentItemRequestBuilderGetQueryParameters { + return new MobileAppAssignmentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..14250d86fbe --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/CategoriesRequestBuilder.php new file mode 100644 index 00000000000..5fbd7735c5a --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/CategoriesRequestBuilder.php @@ -0,0 +1,102 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppCategoryId The unique identifier of mobileAppCategory + * @return MobileAppCategoryItemRequestBuilder + */ + public function byMobileAppCategoryId(string $mobileAppCategoryId): MobileAppCategoryItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppCategory%2Did'] = $mobileAppCategoryId; + return new MobileAppCategoryItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new CategoriesRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategoryCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 CategoriesRequestBuilder + */ + public function withUrl(string $rawUrl): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/CategoriesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/CategoriesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..cab80ad85f9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/CategoriesRequestBuilderGetQueryParameters.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 categoriesRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..480632fffcd --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CategoriesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CategoriesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new categoriesRequestBuilderGetQueryParameters. + * @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 CategoriesRequestBuilderGetQueryParameters + */ + 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): CategoriesRequestBuilderGetQueryParameters { + return new CategoriesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..e4a2d1becb4 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/categories/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..31d4d49141c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..431222a1dde --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php new file mode 100644 index 00000000000..d128ca93bad --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -0,0 +1,82 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategory::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 MobileAppCategoryItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppCategoryItemRequestBuilder { + return new MobileAppCategoryItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..df6da29a726 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.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 MobileAppCategoryItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..9f396ca5822 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppCategoryItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppCategoryItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppCategoryItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppCategoryItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppCategoryItemRequestBuilderGetQueryParameters { + return new MobileAppCategoryItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/ContentVersionsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/ContentVersionsRequestBuilder.php new file mode 100644 index 00000000000..67e8b1bf752 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/ContentVersionsRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + * @param string $mobileAppContentId The unique identifier of mobileAppContent + * @return MobileAppContentItemRequestBuilder + */ + public function byMobileAppContentId(string $mobileAppContentId): MobileAppContentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppContent%2Did'] = $mobileAppContentId; + return new MobileAppContentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ContentVersionsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of content versions for this app. + * @param ContentVersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ContentVersionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to contentVersions for deviceAppManagement + * @param MobileAppContent $body The request body + * @param ContentVersionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileAppContent $body, ?ContentVersionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of content versions for this app. + * @param ContentVersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to contentVersions for deviceAppManagement + * @param MobileAppContent $body The request body + * @param ContentVersionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppContent $body, ?ContentVersionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 ContentVersionsRequestBuilder + */ + public function withUrl(string $rawUrl): ContentVersionsRequestBuilder { + return new ContentVersionsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..e803e47b029 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.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 contentVersionsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..c027b9164cb --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ContentVersionsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ContentVersionsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new contentVersionsRequestBuilderGetQueryParameters. + * @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 ContentVersionsRequestBuilderGetQueryParameters + */ + 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): ContentVersionsRequestBuilderGetQueryParameters { + return new ContentVersionsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..9f19ff7a5f2 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..72d49dfe6fc --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..11e0063ba3e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..48723f1059c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php new file mode 100644 index 00000000000..f0c8e24b559 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + * @param string $mobileContainedAppId The unique identifier of mobileContainedApp + * @return MobileContainedAppItemRequestBuilder + */ + public function byMobileContainedAppId(string $mobileContainedAppId): MobileContainedAppItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileContainedApp%2Did'] = $mobileContainedAppId; + return new MobileContainedAppItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ContainedAppsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param ContainedAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ContainedAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedAppCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to containedApps for deviceAppManagement + * @param MobileContainedApp $body The request body + * @param ContainedAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileContainedApp $body, ?ContainedAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param ContainedAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to containedApps for deviceAppManagement + * @param MobileContainedApp $body The request body + * @param ContainedAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileContainedApp $body, ?ContainedAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 ContainedAppsRequestBuilder + */ + public function withUrl(string $rawUrl): ContainedAppsRequestBuilder { + return new ContainedAppsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..1bd650e645e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.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 containedAppsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..a1c321b5b01 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ContainedAppsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ContainedAppsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new containedAppsRequestBuilderGetQueryParameters. + * @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 ContainedAppsRequestBuilderGetQueryParameters + */ + 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): ContainedAppsRequestBuilderGetQueryParameters { + return new ContainedAppsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..7b3aabe0af3 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..bc3cebe8de6 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..2803fbca471 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..246dca1a3ef --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php new file mode 100644 index 00000000000..afaa359c709 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php @@ -0,0 +1,156 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property containedApps for deviceAppManagement + * @param MobileContainedAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileContainedAppItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param MobileContainedAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileContainedAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property containedApps in deviceAppManagement + * @param MobileContainedApp $body The request body + * @param MobileContainedAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileContainedApp $body, ?MobileContainedAppItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property containedApps for deviceAppManagement + * @param MobileContainedAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileContainedAppItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param MobileContainedAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property containedApps in deviceAppManagement + * @param MobileContainedApp $body The request body + * @param MobileContainedAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileContainedApp $body, ?MobileContainedAppItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileContainedAppItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileContainedAppItemRequestBuilder { + return new MobileContainedAppItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..e9536ae6bf4 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..a5c03598772 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.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 MobileContainedAppItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..c3b6b387fe0 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileContainedAppItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileContainedAppItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileContainedAppItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileContainedAppItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileContainedAppItemRequestBuilderGetQueryParameters { + return new MobileContainedAppItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..5d4e6f8fa8a --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..b2ec5252132 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..891fd62b509 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..f59fc079a88 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/FilesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/FilesRequestBuilder.php new file mode 100644 index 00000000000..d1b203e6c03 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/FilesRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + * @param string $mobileAppContentFileId The unique identifier of mobileAppContentFile + * @return MobileAppContentFileItemRequestBuilder + */ + public function byMobileAppContentFileId(string $mobileAppContentFileId): MobileAppContentFileItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppContentFile%2Did'] = $mobileAppContentFileId; + return new MobileAppContentFileItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new FilesRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of files for this app content version. + * @param FilesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?FilesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFileCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to files for deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param FilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileAppContentFile $body, ?FilesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of files for this app content version. + * @param FilesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to files for deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param FilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppContentFile $body, ?FilesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 FilesRequestBuilder + */ + public function withUrl(string $rawUrl): FilesRequestBuilder { + return new FilesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d84ca6dcdd0 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.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 filesRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..61372439152 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param FilesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?FilesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new filesRequestBuilderGetQueryParameters. + * @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 FilesRequestBuilderGetQueryParameters + */ + 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): FilesRequestBuilderGetQueryParameters { + return new FilesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..25485aeb218 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php new file mode 100644 index 00000000000..51ea66758ab --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php @@ -0,0 +1,115 @@ +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 CommitPostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CommitPostRequestBody { + return new CommitPostRequestBody(); + } + + /** + * 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 [ + 'fileEncryptionInfo' => fn(ParseNode $n) => $o->setFileEncryptionInfo($n->getObjectValue([FileEncryptionInfo::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Gets the fileEncryptionInfo property value. The fileEncryptionInfo property + * @return FileEncryptionInfo|null + */ + public function getFileEncryptionInfo(): ?FileEncryptionInfo { + $val = $this->getBackingStore()->get('fileEncryptionInfo'); + if (is_null($val) || $val instanceof FileEncryptionInfo) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'fileEncryptionInfo'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeObjectValue('fileEncryptionInfo', $this->getFileEncryptionInfo()); + $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 fileEncryptionInfo property value. The fileEncryptionInfo property + * @param FileEncryptionInfo|null $value Value to set for the fileEncryptionInfo property. + */ + public function setFileEncryptionInfo(?FileEncryptionInfo $value): void { + $this->getBackingStore()->set('fileEncryptionInfo', $value); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php new file mode 100644 index 00000000000..4002971ddbc --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php @@ -0,0 +1,80 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Commits a file of a given app. + * @param CommitPostRequestBody $body The request body + * @param CommitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(CommitPostRequestBody $body, ?CommitRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Commits a file of a given app. + * @param CommitPostRequestBody $body The request body + * @param CommitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(CommitPostRequestBody $body, ?CommitRequestBuilderPostRequestConfiguration $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->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 CommitRequestBuilder + */ + public function withUrl(string $rawUrl): CommitRequestBuilder { + return new CommitRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..501ddde2223 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php new file mode 100644 index 00000000000..3ccbd259a73 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php @@ -0,0 +1,172 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to call the renewUpload method. + */ + public function renewUpload(): RenewUploadRequestBuilder { + return new RenewUploadRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new MobileAppContentFileItemRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property files for deviceAppManagement + * @param MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of files for this app content version. + * @param MobileAppContentFileItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppContentFileItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property files in deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param MobileAppContentFileItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileAppContentFile $body, ?MobileAppContentFileItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property files for deviceAppManagement + * @param MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The list of files for this app content version. + * @param MobileAppContentFileItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property files in deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param MobileAppContentFileItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppContentFile $body, ?MobileAppContentFileItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppContentFileItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppContentFileItemRequestBuilder { + return new MobileAppContentFileItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..c886379a022 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..f6793afc3f5 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.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 MobileAppContentFileItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..2d0d1ce6e8d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppContentFileItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppContentFileItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppContentFileItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppContentFileItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppContentFileItemRequestBuilderGetQueryParameters { + return new MobileAppContentFileItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..4d30a441a5a --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.php new file mode 100644 index 00000000000..6cb83a9f817 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Renews the SAS URI for an application file upload. + * @param RenewUploadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(?RenewUploadRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Renews the SAS URI for an application file upload. + * @param RenewUploadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?RenewUploadRequestBuilderPostRequestConfiguration $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); + } + 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 RenewUploadRequestBuilder + */ + public function withUrl(string $rawUrl): RenewUploadRequestBuilder { + return new RenewUploadRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..6bf8758bbe7 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php new file mode 100644 index 00000000000..3c0a80fc08d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php @@ -0,0 +1,172 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + */ + public function files(): FilesRequestBuilder { + return new FilesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new MobileAppContentItemRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property contentVersions for deviceAppManagement + * @param MobileAppContentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileAppContentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of content versions for this app. + * @param MobileAppContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppContentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property contentVersions in deviceAppManagement + * @param MobileAppContent $body The request body + * @param MobileAppContentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileAppContent $body, ?MobileAppContentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property contentVersions for deviceAppManagement + * @param MobileAppContentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppContentItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The list of content versions for this app. + * @param MobileAppContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property contentVersions in deviceAppManagement + * @param MobileAppContent $body The request body + * @param MobileAppContentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppContent $body, ?MobileAppContentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppContentItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppContentItemRequestBuilder { + return new MobileAppContentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..88538135274 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..6fb69a3307f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.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 MobileAppContentItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..2052cd30b79 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppContentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppContentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppContentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppContentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppContentItemRequestBuilderGetQueryParameters { + return new MobileAppContentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..80b37977315 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.php index 564ed5ca3f4..90b4adbf8be 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.php @@ -5,6 +5,9 @@ use Exception; use Http\Promise\Promise; use Http\Promise\RejectedPromise; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphWin32LobApp\Assignments\AssignmentsRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphWin32LobApp\Categories\CategoriesRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphWin32LobApp\ContentVersions\ContentVersionsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\Win32LobApp; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -17,6 +20,27 @@ */ class GraphWin32LobAppRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + */ + public function assignments(): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + */ + public function categories(): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + */ + public function contentVersions(): ContentVersionsRequestBuilder { + return new ContentVersionsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new GraphWin32LobAppRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/AssignmentsRequestBuilder.php new file mode 100644 index 00000000000..a421e7975eb --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/AssignmentsRequestBuilder.php @@ -0,0 +1,144 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppAssignmentId The unique identifier of mobileAppAssignment + * @return MobileAppAssignmentItemRequestBuilder + */ + public function byMobileAppAssignmentId(string $mobileAppAssignmentId): MobileAppAssignmentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppAssignment%2Did'] = $mobileAppAssignmentId; + return new MobileAppAssignmentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new AssignmentsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-list?view=graph-rest-1.0 Find more info here + */ + public function get(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignmentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-create?view=graph-rest-1.0 Find more info here + */ + public function post(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 AssignmentsRequestBuilder + */ + public function withUrl(string $rawUrl): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/AssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/AssignmentsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..ee9f969cb6d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/AssignmentsRequestBuilderGetQueryParameters.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 assignmentsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..706c8db8b3f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param AssignmentsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?AssignmentsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new assignmentsRequestBuilderGetQueryParameters. + * @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 AssignmentsRequestBuilderGetQueryParameters + */ + 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): AssignmentsRequestBuilderGetQueryParameters { + return new AssignmentsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..c17221d13a4 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..d20e382713d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/assignments/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..4dca837f412 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..4a61cc27759 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php new file mode 100644 index 00000000000..1204a7d4b2e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -0,0 +1,159 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-delete?view=graph-rest-1.0 Find more info here + */ + public function delete(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-get?view=graph-rest-1.0 Find more info here + */ + public function get(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-update?view=graph-rest-1.0 Find more info here + */ + public function patch(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppAssignmentItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppAssignmentItemRequestBuilder { + return new MobileAppAssignmentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..bd856558194 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..6988d106a9f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.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 MobileAppAssignmentItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..67a577005fc --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppAssignmentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppAssignmentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppAssignmentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppAssignmentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppAssignmentItemRequestBuilderGetQueryParameters { + return new MobileAppAssignmentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..cfbcd50f9ff --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/CategoriesRequestBuilder.php new file mode 100644 index 00000000000..2770fd55a1c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/CategoriesRequestBuilder.php @@ -0,0 +1,102 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppCategoryId The unique identifier of mobileAppCategory + * @return MobileAppCategoryItemRequestBuilder + */ + public function byMobileAppCategoryId(string $mobileAppCategoryId): MobileAppCategoryItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppCategory%2Did'] = $mobileAppCategoryId; + return new MobileAppCategoryItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new CategoriesRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategoryCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 CategoriesRequestBuilder + */ + public function withUrl(string $rawUrl): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/CategoriesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/CategoriesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..1cef2a6ea8d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/CategoriesRequestBuilderGetQueryParameters.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 categoriesRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/CategoriesRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/CategoriesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..bb98ae3ab6c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/CategoriesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CategoriesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CategoriesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new categoriesRequestBuilderGetQueryParameters. + * @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 CategoriesRequestBuilderGetQueryParameters + */ + 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): CategoriesRequestBuilderGetQueryParameters { + return new CategoriesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..22668c27dea --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/categories/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..a65f10c6f9f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..5f73f322d91 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.php new file mode 100644 index 00000000000..8a5bc369655 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -0,0 +1,82 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/categories/{mobileAppCategory%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategory::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 MobileAppCategoryItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppCategoryItemRequestBuilder { + return new MobileAppCategoryItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..2076adc05af --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.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 MobileAppCategoryItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..467f130d785 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppCategoryItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppCategoryItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppCategoryItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppCategoryItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppCategoryItemRequestBuilderGetQueryParameters { + return new MobileAppCategoryItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/ContentVersionsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/ContentVersionsRequestBuilder.php new file mode 100644 index 00000000000..8c343561173 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/ContentVersionsRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + * @param string $mobileAppContentId The unique identifier of mobileAppContent + * @return MobileAppContentItemRequestBuilder + */ + public function byMobileAppContentId(string $mobileAppContentId): MobileAppContentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppContent%2Did'] = $mobileAppContentId; + return new MobileAppContentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ContentVersionsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of content versions for this app. + * @param ContentVersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ContentVersionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to contentVersions for deviceAppManagement + * @param MobileAppContent $body The request body + * @param ContentVersionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileAppContent $body, ?ContentVersionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of content versions for this app. + * @param ContentVersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to contentVersions for deviceAppManagement + * @param MobileAppContent $body The request body + * @param ContentVersionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppContent $body, ?ContentVersionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 ContentVersionsRequestBuilder + */ + public function withUrl(string $rawUrl): ContentVersionsRequestBuilder { + return new ContentVersionsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..990bda0f2a9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.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 contentVersionsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..6da81fbb844 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ContentVersionsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ContentVersionsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new contentVersionsRequestBuilderGetQueryParameters. + * @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 ContentVersionsRequestBuilderGetQueryParameters + */ + 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): ContentVersionsRequestBuilderGetQueryParameters { + return new ContentVersionsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..a4f5a7319dc --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..2e7d59febde --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..0c8826d83c7 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..6ee3c232a57 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php new file mode 100644 index 00000000000..ca0899ee1d2 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + * @param string $mobileContainedAppId The unique identifier of mobileContainedApp + * @return MobileContainedAppItemRequestBuilder + */ + public function byMobileContainedAppId(string $mobileContainedAppId): MobileContainedAppItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileContainedApp%2Did'] = $mobileContainedAppId; + return new MobileContainedAppItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ContainedAppsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param ContainedAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ContainedAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedAppCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to containedApps for deviceAppManagement + * @param MobileContainedApp $body The request body + * @param ContainedAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileContainedApp $body, ?ContainedAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param ContainedAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to containedApps for deviceAppManagement + * @param MobileContainedApp $body The request body + * @param ContainedAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileContainedApp $body, ?ContainedAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 ContainedAppsRequestBuilder + */ + public function withUrl(string $rawUrl): ContainedAppsRequestBuilder { + return new ContainedAppsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..4995232a807 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.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 containedAppsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..9642f30a793 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ContainedAppsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ContainedAppsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new containedAppsRequestBuilderGetQueryParameters. + * @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 ContainedAppsRequestBuilderGetQueryParameters + */ + 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): ContainedAppsRequestBuilderGetQueryParameters { + return new ContainedAppsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..4ecdc84fc88 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..dacf58ba4ae --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..c014c7043cc --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e4367da8147 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php new file mode 100644 index 00000000000..bdfadb5f631 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php @@ -0,0 +1,156 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property containedApps for deviceAppManagement + * @param MobileContainedAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileContainedAppItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param MobileContainedAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileContainedAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property containedApps in deviceAppManagement + * @param MobileContainedApp $body The request body + * @param MobileContainedAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileContainedApp $body, ?MobileContainedAppItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property containedApps for deviceAppManagement + * @param MobileContainedAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileContainedAppItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param MobileContainedAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property containedApps in deviceAppManagement + * @param MobileContainedApp $body The request body + * @param MobileContainedAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileContainedApp $body, ?MobileContainedAppItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileContainedAppItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileContainedAppItemRequestBuilder { + return new MobileContainedAppItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..99a849b6d46 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..bfbfabf5c61 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.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 MobileContainedAppItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..cb4400f8c24 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileContainedAppItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileContainedAppItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileContainedAppItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileContainedAppItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileContainedAppItemRequestBuilderGetQueryParameters { + return new MobileContainedAppItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..495483b5b18 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..f71661d0433 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..0219b7a7c2d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..7c1390dbd0f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/FilesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/FilesRequestBuilder.php new file mode 100644 index 00000000000..f3493f0aae9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/FilesRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + * @param string $mobileAppContentFileId The unique identifier of mobileAppContentFile + * @return MobileAppContentFileItemRequestBuilder + */ + public function byMobileAppContentFileId(string $mobileAppContentFileId): MobileAppContentFileItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppContentFile%2Did'] = $mobileAppContentFileId; + return new MobileAppContentFileItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new FilesRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of files for this app content version. + * @param FilesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?FilesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFileCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to files for deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param FilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileAppContentFile $body, ?FilesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of files for this app content version. + * @param FilesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to files for deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param FilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppContentFile $body, ?FilesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 FilesRequestBuilder + */ + public function withUrl(string $rawUrl): FilesRequestBuilder { + return new FilesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..8b4ae29134d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.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 filesRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..b6fd9484b2e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param FilesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?FilesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new filesRequestBuilderGetQueryParameters. + * @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 FilesRequestBuilderGetQueryParameters + */ + 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): FilesRequestBuilderGetQueryParameters { + return new FilesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..45050069695 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php new file mode 100644 index 00000000000..68ea4935029 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php @@ -0,0 +1,115 @@ +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 CommitPostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CommitPostRequestBody { + return new CommitPostRequestBody(); + } + + /** + * 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 [ + 'fileEncryptionInfo' => fn(ParseNode $n) => $o->setFileEncryptionInfo($n->getObjectValue([FileEncryptionInfo::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Gets the fileEncryptionInfo property value. The fileEncryptionInfo property + * @return FileEncryptionInfo|null + */ + public function getFileEncryptionInfo(): ?FileEncryptionInfo { + $val = $this->getBackingStore()->get('fileEncryptionInfo'); + if (is_null($val) || $val instanceof FileEncryptionInfo) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'fileEncryptionInfo'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeObjectValue('fileEncryptionInfo', $this->getFileEncryptionInfo()); + $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 fileEncryptionInfo property value. The fileEncryptionInfo property + * @param FileEncryptionInfo|null $value Value to set for the fileEncryptionInfo property. + */ + public function setFileEncryptionInfo(?FileEncryptionInfo $value): void { + $this->getBackingStore()->set('fileEncryptionInfo', $value); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php new file mode 100644 index 00000000000..72f5fbfbe35 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php @@ -0,0 +1,80 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Commits a file of a given app. + * @param CommitPostRequestBody $body The request body + * @param CommitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(CommitPostRequestBody $body, ?CommitRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Commits a file of a given app. + * @param CommitPostRequestBody $body The request body + * @param CommitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(CommitPostRequestBody $body, ?CommitRequestBuilderPostRequestConfiguration $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->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 CommitRequestBuilder + */ + public function withUrl(string $rawUrl): CommitRequestBuilder { + return new CommitRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..ba79f1b983c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php new file mode 100644 index 00000000000..71626889039 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php @@ -0,0 +1,172 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to call the renewUpload method. + */ + public function renewUpload(): RenewUploadRequestBuilder { + return new RenewUploadRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new MobileAppContentFileItemRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property files for deviceAppManagement + * @param MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of files for this app content version. + * @param MobileAppContentFileItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppContentFileItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property files in deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param MobileAppContentFileItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileAppContentFile $body, ?MobileAppContentFileItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property files for deviceAppManagement + * @param MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The list of files for this app content version. + * @param MobileAppContentFileItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property files in deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param MobileAppContentFileItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppContentFile $body, ?MobileAppContentFileItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppContentFileItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppContentFileItemRequestBuilder { + return new MobileAppContentFileItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..98fd751a526 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..7ddf754060e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.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 MobileAppContentFileItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..26bd74dc06f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppContentFileItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppContentFileItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppContentFileItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppContentFileItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppContentFileItemRequestBuilderGetQueryParameters { + return new MobileAppContentFileItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..dbe99429915 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.php new file mode 100644 index 00000000000..2700d4bd1c6 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Renews the SAS URI for an application file upload. + * @param RenewUploadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(?RenewUploadRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Renews the SAS URI for an application file upload. + * @param RenewUploadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?RenewUploadRequestBuilderPostRequestConfiguration $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); + } + 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 RenewUploadRequestBuilder + */ + public function withUrl(string $rawUrl): RenewUploadRequestBuilder { + return new RenewUploadRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..fd9243ef8d1 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.php new file mode 100644 index 00000000000..f3aa09a2ad6 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.php @@ -0,0 +1,172 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + */ + public function files(): FilesRequestBuilder { + return new FilesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new MobileAppContentItemRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property contentVersions for deviceAppManagement + * @param MobileAppContentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileAppContentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of content versions for this app. + * @param MobileAppContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppContentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property contentVersions in deviceAppManagement + * @param MobileAppContent $body The request body + * @param MobileAppContentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileAppContent $body, ?MobileAppContentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property contentVersions for deviceAppManagement + * @param MobileAppContentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppContentItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The list of content versions for this app. + * @param MobileAppContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property contentVersions in deviceAppManagement + * @param MobileAppContent $body The request body + * @param MobileAppContentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppContent $body, ?MobileAppContentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppContentItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppContentItemRequestBuilder { + return new MobileAppContentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..24145e5ca76 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..11c8881bd3e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.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 MobileAppContentItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..1ac5d3441eb --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppContentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppContentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppContentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppContentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppContentItemRequestBuilderGetQueryParameters { + return new MobileAppContentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..128cb6493ac --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.php index 88427597533..944d85a8485 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.php @@ -5,6 +5,9 @@ use Exception; use Http\Promise\Promise; use Http\Promise\RejectedPromise; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphWindowsAppX\Assignments\AssignmentsRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphWindowsAppX\Categories\CategoriesRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphWindowsAppX\ContentVersions\ContentVersionsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\WindowsAppX; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -17,6 +20,27 @@ */ class GraphWindowsAppXRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + */ + public function assignments(): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + */ + public function categories(): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + */ + public function contentVersions(): ContentVersionsRequestBuilder { + return new ContentVersionsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new GraphWindowsAppXRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/AssignmentsRequestBuilder.php new file mode 100644 index 00000000000..6cacae7f5ee --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/AssignmentsRequestBuilder.php @@ -0,0 +1,144 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppAssignmentId The unique identifier of mobileAppAssignment + * @return MobileAppAssignmentItemRequestBuilder + */ + public function byMobileAppAssignmentId(string $mobileAppAssignmentId): MobileAppAssignmentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppAssignment%2Did'] = $mobileAppAssignmentId; + return new MobileAppAssignmentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new AssignmentsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-list?view=graph-rest-1.0 Find more info here + */ + public function get(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignmentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-create?view=graph-rest-1.0 Find more info here + */ + public function post(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 AssignmentsRequestBuilder + */ + public function withUrl(string $rawUrl): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/AssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/AssignmentsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..fe293a81151 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/AssignmentsRequestBuilderGetQueryParameters.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 assignmentsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..ab73829146a --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param AssignmentsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?AssignmentsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new assignmentsRequestBuilderGetQueryParameters. + * @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 AssignmentsRequestBuilderGetQueryParameters + */ + 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): AssignmentsRequestBuilderGetQueryParameters { + return new AssignmentsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..5f4bacce552 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..1640f7b2eb9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/assignments/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..a67b20cf2d0 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..27d7d9d3773 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php new file mode 100644 index 00000000000..1b9ed8d123c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -0,0 +1,159 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-delete?view=graph-rest-1.0 Find more info here + */ + public function delete(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-get?view=graph-rest-1.0 Find more info here + */ + public function get(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-update?view=graph-rest-1.0 Find more info here + */ + public function patch(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppAssignmentItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppAssignmentItemRequestBuilder { + return new MobileAppAssignmentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..93e308017e1 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..ba9611889d9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.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 MobileAppAssignmentItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..cbe79ddbf1d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppAssignmentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppAssignmentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppAssignmentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppAssignmentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppAssignmentItemRequestBuilderGetQueryParameters { + return new MobileAppAssignmentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..b15c33eaa4f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/CategoriesRequestBuilder.php new file mode 100644 index 00000000000..1f99aa8607b --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/CategoriesRequestBuilder.php @@ -0,0 +1,102 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppCategoryId The unique identifier of mobileAppCategory + * @return MobileAppCategoryItemRequestBuilder + */ + public function byMobileAppCategoryId(string $mobileAppCategoryId): MobileAppCategoryItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppCategory%2Did'] = $mobileAppCategoryId; + return new MobileAppCategoryItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new CategoriesRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategoryCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 CategoriesRequestBuilder + */ + public function withUrl(string $rawUrl): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/CategoriesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/CategoriesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..6033c80b192 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/CategoriesRequestBuilderGetQueryParameters.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 categoriesRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/CategoriesRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/CategoriesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..28c38f4796d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/CategoriesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CategoriesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CategoriesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new categoriesRequestBuilderGetQueryParameters. + * @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 CategoriesRequestBuilderGetQueryParameters + */ + 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): CategoriesRequestBuilderGetQueryParameters { + return new CategoriesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..f0426911439 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/categories/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..9c9582cf50b --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..0d2454faa91 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Item/MobileAppCategoryItemRequestBuilder.php new file mode 100644 index 00000000000..7256c038dc4 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -0,0 +1,82 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/categories/{mobileAppCategory%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategory::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 MobileAppCategoryItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppCategoryItemRequestBuilder { + return new MobileAppCategoryItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..b9fdbb8950e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.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 MobileAppCategoryItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..9904195acaa --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppCategoryItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppCategoryItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppCategoryItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppCategoryItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppCategoryItemRequestBuilderGetQueryParameters { + return new MobileAppCategoryItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/ContentVersionsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/ContentVersionsRequestBuilder.php new file mode 100644 index 00000000000..0a10bf2dec3 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/ContentVersionsRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + * @param string $mobileAppContentId The unique identifier of mobileAppContent + * @return MobileAppContentItemRequestBuilder + */ + public function byMobileAppContentId(string $mobileAppContentId): MobileAppContentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppContent%2Did'] = $mobileAppContentId; + return new MobileAppContentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ContentVersionsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of content versions for this app. + * @param ContentVersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ContentVersionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to contentVersions for deviceAppManagement + * @param MobileAppContent $body The request body + * @param ContentVersionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileAppContent $body, ?ContentVersionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of content versions for this app. + * @param ContentVersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to contentVersions for deviceAppManagement + * @param MobileAppContent $body The request body + * @param ContentVersionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppContent $body, ?ContentVersionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 ContentVersionsRequestBuilder + */ + public function withUrl(string $rawUrl): ContentVersionsRequestBuilder { + return new ContentVersionsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..b15f93a7cca --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.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 contentVersionsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..b816573a642 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ContentVersionsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ContentVersionsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new contentVersionsRequestBuilderGetQueryParameters. + * @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 ContentVersionsRequestBuilderGetQueryParameters + */ + 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): ContentVersionsRequestBuilderGetQueryParameters { + return new ContentVersionsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..7af5a9c1509 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..cba6aa24d2e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d9de57757dd --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..1beba42dd11 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php new file mode 100644 index 00000000000..4bef48f9458 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + * @param string $mobileContainedAppId The unique identifier of mobileContainedApp + * @return MobileContainedAppItemRequestBuilder + */ + public function byMobileContainedAppId(string $mobileContainedAppId): MobileContainedAppItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileContainedApp%2Did'] = $mobileContainedAppId; + return new MobileContainedAppItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ContainedAppsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param ContainedAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ContainedAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedAppCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to containedApps for deviceAppManagement + * @param MobileContainedApp $body The request body + * @param ContainedAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileContainedApp $body, ?ContainedAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param ContainedAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to containedApps for deviceAppManagement + * @param MobileContainedApp $body The request body + * @param ContainedAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileContainedApp $body, ?ContainedAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 ContainedAppsRequestBuilder + */ + public function withUrl(string $rawUrl): ContainedAppsRequestBuilder { + return new ContainedAppsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..cb233511d5a --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.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 containedAppsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..f01bb56c694 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ContainedAppsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ContainedAppsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new containedAppsRequestBuilderGetQueryParameters. + * @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 ContainedAppsRequestBuilderGetQueryParameters + */ + 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): ContainedAppsRequestBuilderGetQueryParameters { + return new ContainedAppsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..13c542ab2d9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..1ecc34a0b8c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..61273f320da --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..0510eac0575 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php new file mode 100644 index 00000000000..e3211a5e096 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php @@ -0,0 +1,156 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property containedApps for deviceAppManagement + * @param MobileContainedAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileContainedAppItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param MobileContainedAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileContainedAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property containedApps in deviceAppManagement + * @param MobileContainedApp $body The request body + * @param MobileContainedAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileContainedApp $body, ?MobileContainedAppItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property containedApps for deviceAppManagement + * @param MobileContainedAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileContainedAppItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param MobileContainedAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property containedApps in deviceAppManagement + * @param MobileContainedApp $body The request body + * @param MobileContainedAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileContainedApp $body, ?MobileContainedAppItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileContainedAppItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileContainedAppItemRequestBuilder { + return new MobileContainedAppItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..5781f18e74d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..9ecbe78c518 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.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 MobileContainedAppItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..a576f375395 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileContainedAppItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileContainedAppItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileContainedAppItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileContainedAppItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileContainedAppItemRequestBuilderGetQueryParameters { + return new MobileContainedAppItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..651b991ae20 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..8c54ef413d6 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..8a95114452d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..d8b472e838e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/FilesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/FilesRequestBuilder.php new file mode 100644 index 00000000000..8ef2690c64e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/FilesRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + * @param string $mobileAppContentFileId The unique identifier of mobileAppContentFile + * @return MobileAppContentFileItemRequestBuilder + */ + public function byMobileAppContentFileId(string $mobileAppContentFileId): MobileAppContentFileItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppContentFile%2Did'] = $mobileAppContentFileId; + return new MobileAppContentFileItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new FilesRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of files for this app content version. + * @param FilesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?FilesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFileCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to files for deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param FilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileAppContentFile $body, ?FilesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of files for this app content version. + * @param FilesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to files for deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param FilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppContentFile $body, ?FilesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 FilesRequestBuilder + */ + public function withUrl(string $rawUrl): FilesRequestBuilder { + return new FilesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..246d01658af --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.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 filesRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..007ff942210 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param FilesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?FilesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new filesRequestBuilderGetQueryParameters. + * @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 FilesRequestBuilderGetQueryParameters + */ + 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): FilesRequestBuilderGetQueryParameters { + return new FilesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..4f3dd390e4d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php new file mode 100644 index 00000000000..a46153cf8e7 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php @@ -0,0 +1,115 @@ +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 CommitPostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CommitPostRequestBody { + return new CommitPostRequestBody(); + } + + /** + * 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 [ + 'fileEncryptionInfo' => fn(ParseNode $n) => $o->setFileEncryptionInfo($n->getObjectValue([FileEncryptionInfo::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Gets the fileEncryptionInfo property value. The fileEncryptionInfo property + * @return FileEncryptionInfo|null + */ + public function getFileEncryptionInfo(): ?FileEncryptionInfo { + $val = $this->getBackingStore()->get('fileEncryptionInfo'); + if (is_null($val) || $val instanceof FileEncryptionInfo) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'fileEncryptionInfo'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeObjectValue('fileEncryptionInfo', $this->getFileEncryptionInfo()); + $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 fileEncryptionInfo property value. The fileEncryptionInfo property + * @param FileEncryptionInfo|null $value Value to set for the fileEncryptionInfo property. + */ + public function setFileEncryptionInfo(?FileEncryptionInfo $value): void { + $this->getBackingStore()->set('fileEncryptionInfo', $value); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php new file mode 100644 index 00000000000..65f1a7ae3ca --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php @@ -0,0 +1,80 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Commits a file of a given app. + * @param CommitPostRequestBody $body The request body + * @param CommitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(CommitPostRequestBody $body, ?CommitRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Commits a file of a given app. + * @param CommitPostRequestBody $body The request body + * @param CommitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(CommitPostRequestBody $body, ?CommitRequestBuilderPostRequestConfiguration $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->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 CommitRequestBuilder + */ + public function withUrl(string $rawUrl): CommitRequestBuilder { + return new CommitRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..480044a6171 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php new file mode 100644 index 00000000000..c867ad77d6f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php @@ -0,0 +1,172 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to call the renewUpload method. + */ + public function renewUpload(): RenewUploadRequestBuilder { + return new RenewUploadRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new MobileAppContentFileItemRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property files for deviceAppManagement + * @param MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of files for this app content version. + * @param MobileAppContentFileItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppContentFileItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property files in deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param MobileAppContentFileItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileAppContentFile $body, ?MobileAppContentFileItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property files for deviceAppManagement + * @param MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The list of files for this app content version. + * @param MobileAppContentFileItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property files in deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param MobileAppContentFileItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppContentFile $body, ?MobileAppContentFileItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppContentFileItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppContentFileItemRequestBuilder { + return new MobileAppContentFileItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..c3cea998381 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..45790021637 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.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 MobileAppContentFileItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..bb3258e1713 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppContentFileItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppContentFileItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppContentFileItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppContentFileItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppContentFileItemRequestBuilderGetQueryParameters { + return new MobileAppContentFileItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..893f8c192ca --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.php new file mode 100644 index 00000000000..6ddb08205f0 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Renews the SAS URI for an application file upload. + * @param RenewUploadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(?RenewUploadRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Renews the SAS URI for an application file upload. + * @param RenewUploadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?RenewUploadRequestBuilderPostRequestConfiguration $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); + } + 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 RenewUploadRequestBuilder + */ + public function withUrl(string $rawUrl): RenewUploadRequestBuilder { + return new RenewUploadRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..f60aa67efe6 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/MobileAppContentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/MobileAppContentItemRequestBuilder.php new file mode 100644 index 00000000000..b07b767433e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/MobileAppContentItemRequestBuilder.php @@ -0,0 +1,172 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + */ + public function files(): FilesRequestBuilder { + return new FilesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new MobileAppContentItemRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property contentVersions for deviceAppManagement + * @param MobileAppContentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileAppContentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of content versions for this app. + * @param MobileAppContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppContentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property contentVersions in deviceAppManagement + * @param MobileAppContent $body The request body + * @param MobileAppContentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileAppContent $body, ?MobileAppContentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property contentVersions for deviceAppManagement + * @param MobileAppContentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppContentItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The list of content versions for this app. + * @param MobileAppContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property contentVersions in deviceAppManagement + * @param MobileAppContent $body The request body + * @param MobileAppContentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppContent $body, ?MobileAppContentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppContentItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppContentItemRequestBuilder { + return new MobileAppContentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..a5fe9a63d0a --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..2d0f97c39c9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.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 MobileAppContentItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..5dc5d3882b8 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppContentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppContentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppContentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppContentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppContentItemRequestBuilderGetQueryParameters { + return new MobileAppContentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..8275573696c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.php index e7b200eaec3..a828e4637b8 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.php @@ -5,6 +5,9 @@ use Exception; use Http\Promise\Promise; use Http\Promise\RejectedPromise; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphWindowsMobileMSI\Assignments\AssignmentsRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphWindowsMobileMSI\Categories\CategoriesRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphWindowsMobileMSI\ContentVersions\ContentVersionsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\WindowsMobileMSI; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -17,6 +20,27 @@ */ class GraphWindowsMobileMSIRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + */ + public function assignments(): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + */ + public function categories(): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + */ + public function contentVersions(): ContentVersionsRequestBuilder { + return new ContentVersionsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new GraphWindowsMobileMSIRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/AssignmentsRequestBuilder.php new file mode 100644 index 00000000000..4806ee98043 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/AssignmentsRequestBuilder.php @@ -0,0 +1,144 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppAssignmentId The unique identifier of mobileAppAssignment + * @return MobileAppAssignmentItemRequestBuilder + */ + public function byMobileAppAssignmentId(string $mobileAppAssignmentId): MobileAppAssignmentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppAssignment%2Did'] = $mobileAppAssignmentId; + return new MobileAppAssignmentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new AssignmentsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-list?view=graph-rest-1.0 Find more info here + */ + public function get(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignmentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-create?view=graph-rest-1.0 Find more info here + */ + public function post(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 AssignmentsRequestBuilder + */ + public function withUrl(string $rawUrl): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/AssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/AssignmentsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..a7107bab6b9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/AssignmentsRequestBuilderGetQueryParameters.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 assignmentsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..2030e5f57c0 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param AssignmentsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?AssignmentsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new assignmentsRequestBuilderGetQueryParameters. + * @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 AssignmentsRequestBuilderGetQueryParameters + */ + 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): AssignmentsRequestBuilderGetQueryParameters { + return new AssignmentsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..c9ef23e57dc --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..963489a9750 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/assignments/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..707de91a7d5 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..7c679574908 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php new file mode 100644 index 00000000000..6afcfa58bf4 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -0,0 +1,159 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-delete?view=graph-rest-1.0 Find more info here + */ + public function delete(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-get?view=graph-rest-1.0 Find more info here + */ + public function get(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-update?view=graph-rest-1.0 Find more info here + */ + public function patch(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppAssignmentItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppAssignmentItemRequestBuilder { + return new MobileAppAssignmentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..0a11fd250f7 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..956a6e149ea --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.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 MobileAppAssignmentItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..94f66cbc76e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppAssignmentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppAssignmentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppAssignmentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppAssignmentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppAssignmentItemRequestBuilderGetQueryParameters { + return new MobileAppAssignmentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..32f0be1622d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/CategoriesRequestBuilder.php new file mode 100644 index 00000000000..9bc60cfb17c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/CategoriesRequestBuilder.php @@ -0,0 +1,102 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppCategoryId The unique identifier of mobileAppCategory + * @return MobileAppCategoryItemRequestBuilder + */ + public function byMobileAppCategoryId(string $mobileAppCategoryId): MobileAppCategoryItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppCategory%2Did'] = $mobileAppCategoryId; + return new MobileAppCategoryItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new CategoriesRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategoryCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 CategoriesRequestBuilder + */ + public function withUrl(string $rawUrl): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/CategoriesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/CategoriesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..81790a6a961 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/CategoriesRequestBuilderGetQueryParameters.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 categoriesRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/CategoriesRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/CategoriesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..5cd8b5403a7 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/CategoriesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CategoriesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CategoriesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new categoriesRequestBuilderGetQueryParameters. + * @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 CategoriesRequestBuilderGetQueryParameters + */ + 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): CategoriesRequestBuilderGetQueryParameters { + return new CategoriesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..cab11736d69 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/categories/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..c0acad53fcf --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..3fbd3a558da --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.php new file mode 100644 index 00000000000..30cc53e47cd --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -0,0 +1,82 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/categories/{mobileAppCategory%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategory::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 MobileAppCategoryItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppCategoryItemRequestBuilder { + return new MobileAppCategoryItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..0ce35f9bb45 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.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 MobileAppCategoryItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..90d759d0311 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppCategoryItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppCategoryItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppCategoryItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppCategoryItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppCategoryItemRequestBuilderGetQueryParameters { + return new MobileAppCategoryItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/CommittedContainedAppsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/CommittedContainedAppsRequestBuilder.php new file mode 100644 index 00000000000..a5f04199c69 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/CommittedContainedAppsRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the committedContainedApps property of the microsoft.graph.windowsUniversalAppX entity. + * @param string $mobileContainedAppId The unique identifier of mobileContainedApp + * @return MobileContainedAppItemRequestBuilder + */ + public function byMobileContainedAppId(string $mobileContainedAppId): MobileContainedAppItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileContainedApp%2Did'] = $mobileContainedAppId; + return new MobileContainedAppItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new CommittedContainedAppsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/committedContainedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. + * @param CommittedContainedAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?CommittedContainedAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedAppCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to committedContainedApps for deviceAppManagement + * @param MobileContainedApp $body The request body + * @param CommittedContainedAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileContainedApp $body, ?CommittedContainedAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. + * @param CommittedContainedAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CommittedContainedAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to committedContainedApps for deviceAppManagement + * @param MobileContainedApp $body The request body + * @param CommittedContainedAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileContainedApp $body, ?CommittedContainedAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 CommittedContainedAppsRequestBuilder + */ + public function withUrl(string $rawUrl): CommittedContainedAppsRequestBuilder { + return new CommittedContainedAppsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/CommittedContainedAppsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/CommittedContainedAppsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..1ca01418470 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/CommittedContainedAppsRequestBuilderGetQueryParameters.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 committedContainedAppsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/CommittedContainedAppsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/CommittedContainedAppsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..5f28db7e148 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/CommittedContainedAppsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CommittedContainedAppsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CommittedContainedAppsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new committedContainedAppsRequestBuilderGetQueryParameters. + * @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 CommittedContainedAppsRequestBuilderGetQueryParameters + */ + 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): CommittedContainedAppsRequestBuilderGetQueryParameters { + return new CommittedContainedAppsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/CommittedContainedAppsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/CommittedContainedAppsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..4d906d6daaf --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/CommittedContainedAppsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..30d39e0b1ba --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/committedContainedApps/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..209a586f363 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..8ef3b483774 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilder.php new file mode 100644 index 00000000000..90894c6371b --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilder.php @@ -0,0 +1,156 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/committedContainedApps/{mobileContainedApp%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property committedContainedApps for deviceAppManagement + * @param MobileContainedAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileContainedAppItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. + * @param MobileContainedAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileContainedAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property committedContainedApps in deviceAppManagement + * @param MobileContainedApp $body The request body + * @param MobileContainedAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileContainedApp $body, ?MobileContainedAppItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property committedContainedApps for deviceAppManagement + * @param MobileContainedAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileContainedAppItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. + * @param MobileContainedAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property committedContainedApps in deviceAppManagement + * @param MobileContainedApp $body The request body + * @param MobileContainedAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileContainedApp $body, ?MobileContainedAppItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileContainedAppItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileContainedAppItemRequestBuilder { + return new MobileContainedAppItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..9c7873cdeda --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..896244c2502 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.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 MobileContainedAppItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e79801052f5 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileContainedAppItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileContainedAppItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileContainedAppItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileContainedAppItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileContainedAppItemRequestBuilderGetQueryParameters { + return new MobileContainedAppItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..f67c561a6a9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/ContentVersionsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/ContentVersionsRequestBuilder.php new file mode 100644 index 00000000000..64bbee0e7b2 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/ContentVersionsRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + * @param string $mobileAppContentId The unique identifier of mobileAppContent + * @return MobileAppContentItemRequestBuilder + */ + public function byMobileAppContentId(string $mobileAppContentId): MobileAppContentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppContent%2Did'] = $mobileAppContentId; + return new MobileAppContentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ContentVersionsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of content versions for this app. + * @param ContentVersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ContentVersionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to contentVersions for deviceAppManagement + * @param MobileAppContent $body The request body + * @param ContentVersionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileAppContent $body, ?ContentVersionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of content versions for this app. + * @param ContentVersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to contentVersions for deviceAppManagement + * @param MobileAppContent $body The request body + * @param ContentVersionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppContent $body, ?ContentVersionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 ContentVersionsRequestBuilder + */ + public function withUrl(string $rawUrl): ContentVersionsRequestBuilder { + return new ContentVersionsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..2e6724494e3 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/ContentVersionsRequestBuilderGetQueryParameters.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 contentVersionsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..af77cab384d --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/ContentVersionsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ContentVersionsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ContentVersionsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new contentVersionsRequestBuilderGetQueryParameters. + * @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 ContentVersionsRequestBuilderGetQueryParameters + */ + 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): ContentVersionsRequestBuilderGetQueryParameters { + return new ContentVersionsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..de886466a39 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/ContentVersionsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..d6d79522e78 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..3275e752185 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..8ba24b5470e --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php new file mode 100644 index 00000000000..29f76ab1c44 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + * @param string $mobileContainedAppId The unique identifier of mobileContainedApp + * @return MobileContainedAppItemRequestBuilder + */ + public function byMobileContainedAppId(string $mobileContainedAppId): MobileContainedAppItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileContainedApp%2Did'] = $mobileContainedAppId; + return new MobileContainedAppItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ContainedAppsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param ContainedAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ContainedAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedAppCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to containedApps for deviceAppManagement + * @param MobileContainedApp $body The request body + * @param ContainedAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileContainedApp $body, ?ContainedAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param ContainedAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to containedApps for deviceAppManagement + * @param MobileContainedApp $body The request body + * @param ContainedAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileContainedApp $body, ?ContainedAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 ContainedAppsRequestBuilder + */ + public function withUrl(string $rawUrl): ContainedAppsRequestBuilder { + return new ContainedAppsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..ea0e76ba5b3 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetQueryParameters.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 containedAppsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..d9c588a25c9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ContainedAppsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ContainedAppsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new containedAppsRequestBuilderGetQueryParameters. + * @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 ContainedAppsRequestBuilderGetQueryParameters + */ + 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): ContainedAppsRequestBuilderGetQueryParameters { + return new ContainedAppsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..12ca6d840d2 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..f5effe3c004 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..77866028c7b --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..7f407edbfad --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php new file mode 100644 index 00000000000..5be6b7cb2c0 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.php @@ -0,0 +1,156 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property containedApps for deviceAppManagement + * @param MobileContainedAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileContainedAppItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param MobileContainedAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileContainedAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property containedApps in deviceAppManagement + * @param MobileContainedApp $body The request body + * @param MobileContainedAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileContainedApp $body, ?MobileContainedAppItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileContainedApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property containedApps for deviceAppManagement + * @param MobileContainedAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileContainedAppItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The collection of contained apps in a MobileLobApp acting as a package. + * @param MobileContainedAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property containedApps in deviceAppManagement + * @param MobileContainedApp $body The request body + * @param MobileContainedAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileContainedApp $body, ?MobileContainedAppItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileContainedAppItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileContainedAppItemRequestBuilder { + return new MobileContainedAppItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..943f95e3d20 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..895184ee866 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetQueryParameters.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 MobileContainedAppItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..dbf672672c0 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileContainedAppItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileContainedAppItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileContainedAppItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileContainedAppItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileContainedAppItemRequestBuilderGetQueryParameters { + return new MobileContainedAppItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..ad6667f65e7 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..b44a013e3d9 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..8d87d2560e0 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..9efc8470e34 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/FilesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/FilesRequestBuilder.php new file mode 100644 index 00000000000..3e06bf02964 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/FilesRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + * @param string $mobileAppContentFileId The unique identifier of mobileAppContentFile + * @return MobileAppContentFileItemRequestBuilder + */ + public function byMobileAppContentFileId(string $mobileAppContentFileId): MobileAppContentFileItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppContentFile%2Did'] = $mobileAppContentFileId; + return new MobileAppContentFileItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new FilesRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of files for this app content version. + * @param FilesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?FilesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFileCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to files for deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param FilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(MobileAppContentFile $body, ?FilesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of files for this app content version. + * @param FilesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to files for deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param FilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppContentFile $body, ?FilesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 FilesRequestBuilder + */ + public function withUrl(string $rawUrl): FilesRequestBuilder { + return new FilesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..495d32bb1e5 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/FilesRequestBuilderGetQueryParameters.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 filesRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..47d3906087f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/FilesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param FilesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?FilesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new filesRequestBuilderGetQueryParameters. + * @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 FilesRequestBuilderGetQueryParameters + */ + 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): FilesRequestBuilderGetQueryParameters { + return new FilesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..49715967aa7 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/FilesRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php new file mode 100644 index 00000000000..9ee1b607809 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.php @@ -0,0 +1,115 @@ +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 CommitPostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CommitPostRequestBody { + return new CommitPostRequestBody(); + } + + /** + * 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 [ + 'fileEncryptionInfo' => fn(ParseNode $n) => $o->setFileEncryptionInfo($n->getObjectValue([FileEncryptionInfo::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Gets the fileEncryptionInfo property value. The fileEncryptionInfo property + * @return FileEncryptionInfo|null + */ + public function getFileEncryptionInfo(): ?FileEncryptionInfo { + $val = $this->getBackingStore()->get('fileEncryptionInfo'); + if (is_null($val) || $val instanceof FileEncryptionInfo) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'fileEncryptionInfo'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeObjectValue('fileEncryptionInfo', $this->getFileEncryptionInfo()); + $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 fileEncryptionInfo property value. The fileEncryptionInfo property + * @param FileEncryptionInfo|null $value Value to set for the fileEncryptionInfo property. + */ + public function setFileEncryptionInfo(?FileEncryptionInfo $value): void { + $this->getBackingStore()->set('fileEncryptionInfo', $value); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php new file mode 100644 index 00000000000..5ea58c0b39a --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.php @@ -0,0 +1,80 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Commits a file of a given app. + * @param CommitPostRequestBody $body The request body + * @param CommitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(CommitPostRequestBody $body, ?CommitRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Commits a file of a given app. + * @param CommitPostRequestBody $body The request body + * @param CommitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(CommitPostRequestBody $body, ?CommitRequestBuilderPostRequestConfiguration $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->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 CommitRequestBuilder + */ + public function withUrl(string $rawUrl): CommitRequestBuilder { + return new CommitRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..dfe79208339 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php new file mode 100644 index 00000000000..2dbc865c5b3 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.php @@ -0,0 +1,172 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to call the renewUpload method. + */ + public function renewUpload(): RenewUploadRequestBuilder { + return new RenewUploadRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new MobileAppContentFileItemRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property files for deviceAppManagement + * @param MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of files for this app content version. + * @param MobileAppContentFileItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppContentFileItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property files in deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param MobileAppContentFileItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileAppContentFile $body, ?MobileAppContentFileItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContentFile::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property files for deviceAppManagement + * @param MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The list of files for this app content version. + * @param MobileAppContentFileItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property files in deviceAppManagement + * @param MobileAppContentFile $body The request body + * @param MobileAppContentFileItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppContentFile $body, ?MobileAppContentFileItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppContentFileItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppContentFileItemRequestBuilder { + return new MobileAppContentFileItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..6b071630366 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..1632e3347f6 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetQueryParameters.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 MobileAppContentFileItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..edb53f4c313 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppContentFileItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppContentFileItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppContentFileItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppContentFileItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppContentFileItemRequestBuilderGetQueryParameters { + return new MobileAppContentFileItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..834a1596363 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.php new file mode 100644 index 00000000000..4b264f9a56c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Renews the SAS URI for an application file upload. + * @param RenewUploadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(?RenewUploadRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Renews the SAS URI for an application file upload. + * @param RenewUploadRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?RenewUploadRequestBuilderPostRequestConfiguration $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); + } + 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 RenewUploadRequestBuilder + */ + public function withUrl(string $rawUrl): RenewUploadRequestBuilder { + return new RenewUploadRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..4e022b8d737 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.php new file mode 100644 index 00000000000..63bf91b5bbb --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.php @@ -0,0 +1,172 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + */ + public function files(): FilesRequestBuilder { + return new FilesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new MobileAppContentItemRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property contentVersions for deviceAppManagement + * @param MobileAppContentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?MobileAppContentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of content versions for this app. + * @param MobileAppContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppContentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property contentVersions in deviceAppManagement + * @param MobileAppContent $body The request body + * @param MobileAppContentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(MobileAppContent $body, ?MobileAppContentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppContent::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property contentVersions for deviceAppManagement + * @param MobileAppContentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppContentItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * The list of content versions for this app. + * @param MobileAppContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property contentVersions in deviceAppManagement + * @param MobileAppContent $body The request body + * @param MobileAppContentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppContent $body, ?MobileAppContentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppContentItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppContentItemRequestBuilder { + return new MobileAppContentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..16d95cfd772 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/MobileAppContentItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..f822a3a6624 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/MobileAppContentItemRequestBuilderGetQueryParameters.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 MobileAppContentItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..0fe245f7e95 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/MobileAppContentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppContentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppContentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppContentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppContentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppContentItemRequestBuilderGetQueryParameters { + return new MobileAppContentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..35fa92bd684 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/MobileAppContentItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.php index fa176b7bc99..d48c153a964 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.php @@ -5,6 +5,10 @@ use Exception; use Http\Promise\Promise; use Http\Promise\RejectedPromise; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphWindowsUniversalAppX\Assignments\AssignmentsRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphWindowsUniversalAppX\Categories\CategoriesRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphWindowsUniversalAppX\CommittedContainedApps\CommittedContainedAppsRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphWindowsUniversalAppX\ContentVersions\ContentVersionsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\WindowsUniversalAppX; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -17,6 +21,34 @@ */ class GraphWindowsUniversalAppXRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + */ + public function assignments(): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + */ + public function categories(): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the committedContainedApps property of the microsoft.graph.windowsUniversalAppX entity. + */ + public function committedContainedApps(): CommittedContainedAppsRequestBuilder { + return new CommittedContainedAppsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + */ + public function contentVersions(): ContentVersionsRequestBuilder { + return new ContentVersionsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new GraphWindowsUniversalAppXRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/AssignmentsRequestBuilder.php new file mode 100644 index 00000000000..833c9bbbcc2 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/AssignmentsRequestBuilder.php @@ -0,0 +1,144 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppAssignmentId The unique identifier of mobileAppAssignment + * @return MobileAppAssignmentItemRequestBuilder + */ + public function byMobileAppAssignmentId(string $mobileAppAssignmentId): MobileAppAssignmentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppAssignment%2Did'] = $mobileAppAssignmentId; + return new MobileAppAssignmentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new AssignmentsRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-list?view=graph-rest-1.0 Find more info here + */ + public function get(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignmentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-create?view=graph-rest-1.0 Find more info here + */ + public function post(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * List properties and relationships of the mobileAppAssignment objects. + * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create a new mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(MobileAppAssignment $body, ?AssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 AssignmentsRequestBuilder + */ + public function withUrl(string $rawUrl): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..4fe170c9b76 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/AssignmentsRequestBuilderGetQueryParameters.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 assignmentsRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..cabb8dd0d48 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/AssignmentsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param AssignmentsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?AssignmentsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new assignmentsRequestBuilderGetQueryParameters. + * @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 AssignmentsRequestBuilderGetQueryParameters + */ + 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): AssignmentsRequestBuilderGetQueryParameters { + return new AssignmentsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..3701d09971f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/AssignmentsRequestBuilderPostRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..e51e4811d19 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/assignments/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..0abad05de92 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..70b213f7f67 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/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/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php new file mode 100644 index 00000000000..b9c13eb5aca --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -0,0 +1,159 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-delete?view=graph-rest-1.0 Find more info here + */ + public function delete(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-get?view=graph-rest-1.0 Find more info here + */ + public function get(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/intune-apps-mobileappassignment-update?view=graph-rest-1.0 Find more info here + */ + public function patch(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Deletes a mobileAppAssignment. + * @param MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Read properties and relationships of the mobileAppAssignment object. + * @param MobileAppAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the properties of a mobileAppAssignment object. + * @param MobileAppAssignment $body The request body + * @param MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 MobileAppAssignmentItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppAssignmentItemRequestBuilder { + return new MobileAppAssignmentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..87786724f81 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..bd6d460d04f --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetQueryParameters.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 MobileAppAssignmentItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..5a622c8d610 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppAssignmentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppAssignmentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppAssignmentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppAssignmentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppAssignmentItemRequestBuilderGetQueryParameters { + return new MobileAppAssignmentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..e3c864cb19a --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration.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/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/CategoriesRequestBuilder.php new file mode 100644 index 00000000000..6b05adc199c --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/CategoriesRequestBuilder.php @@ -0,0 +1,102 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + * @param string $mobileAppCategoryId The unique identifier of mobileAppCategory + * @return MobileAppCategoryItemRequestBuilder + */ + public function byMobileAppCategoryId(string $mobileAppCategoryId): MobileAppCategoryItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mobileAppCategory%2Did'] = $mobileAppCategoryId; + return new MobileAppCategoryItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new CategoriesRequestBuilder 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategoryCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 CategoriesRequestBuilder + */ + public function withUrl(string $rawUrl): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/CategoriesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/CategoriesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..7d5ff1d6e87 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/CategoriesRequestBuilderGetQueryParameters.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 categoriesRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..dc5214c2422 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/CategoriesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CategoriesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CategoriesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new categoriesRequestBuilderGetQueryParameters. + * @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 CategoriesRequestBuilderGetQueryParameters + */ + 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): CategoriesRequestBuilderGetQueryParameters { + return new CategoriesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..e581bdc7466 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/categories/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..f54ac253965 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..a0390453755 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/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/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php new file mode 100644 index 00000000000..c9f30d7b329 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -0,0 +1,82 @@ +|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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MobileAppCategory::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * The list of categories for this app. + * @param MobileAppCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 MobileAppCategoryItemRequestBuilder + */ + public function withUrl(string $rawUrl): MobileAppCategoryItemRequestBuilder { + return new MobileAppCategoryItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..097019c35e2 --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetQueryParameters.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 MobileAppCategoryItemRequestBuilderGetQueryParameters 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/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..f2dbb2973df --- /dev/null +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Item/MobileAppCategoryItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MobileAppCategoryItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MobileAppCategoryItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MobileAppCategoryItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MobileAppCategoryItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MobileAppCategoryItemRequestBuilderGetQueryParameters { + return new MobileAppCategoryItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.php index ab2aa0295a6..a4a7242023d 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.php @@ -5,6 +5,8 @@ use Exception; use Http\Promise\Promise; use Http\Promise\RejectedPromise; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphWindowsWebApp\Assignments\AssignmentsRequestBuilder; +use Microsoft\Graph\Generated\DeviceAppManagement\MobileApps\Item\GraphWindowsWebApp\Categories\CategoriesRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\WindowsWebApp; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -17,6 +19,20 @@ */ class GraphWindowsWebAppRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + */ + public function assignments(): AssignmentsRequestBuilder { + return new AssignmentsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + */ + public function categories(): CategoriesRequestBuilder { + return new CategoriesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new GraphWindowsWebAppRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.php index eaeec9a00ff..8c2d2a1dabc 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.php @@ -184,10 +184,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Deletes a iosiPadOSWebClip. + * Deletes a windowsUniversalAppX. * @param MobileAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-apps-iosipadoswebclip-delete?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-apps-windowsuniversalappx-delete?view=graph-rest-1.0 Find more info here */ public function delete(?MobileAppItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -203,10 +203,10 @@ public function delete(?MobileAppItemRequestBuilderDeleteRequestConfiguration $r } /** - * Read properties and relationships of the webApp object. + * Read properties and relationships of the macOSLobApp object. * @param MobileAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-apps-webapp-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-apps-macoslobapp-get?view=graph-rest-1.0 Find more info here */ public function get(?MobileAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -222,11 +222,11 @@ public function get(?MobileAppItemRequestBuilderGetRequestConfiguration $request } /** - * Update the properties of a windowsMicrosoftEdgeApp object. + * Update the properties of a macOSMicrosoftEdgeApp object. * @param MobileApp $body The request body * @param MobileAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-apps-windowsmicrosoftedgeapp-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-apps-macosmicrosoftedgeapp-update?view=graph-rest-1.0 Find more info here */ public function patch(MobileApp $body, ?MobileAppItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -242,7 +242,7 @@ public function patch(MobileApp $body, ?MobileAppItemRequestBuilderPatchRequestC } /** - * Deletes a iosiPadOSWebClip. + * Deletes a windowsUniversalAppX. * @param MobileAppItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -259,7 +259,7 @@ public function toDeleteRequestInformation(?MobileAppItemRequestBuilderDeleteReq } /** - * Read properties and relationships of the webApp object. + * Read properties and relationships of the macOSLobApp object. * @param MobileAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -280,7 +280,7 @@ public function toGetRequestInformation(?MobileAppItemRequestBuilderGetRequestCo } /** - * Update the properties of a windowsMicrosoftEdgeApp object. + * Update the properties of a macOSMicrosoftEdgeApp object. * @param MobileApp $body The request body * @param MobileAppItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilderGetQueryParameters.php index 73abe340aeb..38b4d07e5cf 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read properties and relationships of the webApp object. + * Read properties and relationships of the macOSLobApp object. */ class MobileAppItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.php index 7fef851892c..f77eb9f9556 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.php @@ -181,10 +181,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List properties and relationships of the win32LobApp objects. + * List properties and relationships of the managedAndroidStoreApp objects. * @param MobileAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-apps-win32lobapp-list?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-apps-managedandroidstoreapp-list?view=graph-rest-1.0 Find more info here */ public function get(?MobileAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -200,11 +200,11 @@ public function get(?MobileAppsRequestBuilderGetRequestConfiguration $requestCon } /** - * Create a new managedIOSStoreApp object. + * Create a new androidStoreApp object. * @param MobileApp $body The request body * @param MobileAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-apps-managediosstoreapp-create?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-apps-androidstoreapp-create?view=graph-rest-1.0 Find more info here */ public function post(MobileApp $body, ?MobileAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -220,7 +220,7 @@ public function post(MobileApp $body, ?MobileAppsRequestBuilderPostRequestConfig } /** - * List properties and relationships of the win32LobApp objects. + * List properties and relationships of the managedAndroidStoreApp objects. * @param MobileAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -241,7 +241,7 @@ public function toGetRequestInformation(?MobileAppsRequestBuilderGetRequestConfi } /** - * Create a new managedIOSStoreApp object. + * Create a new androidStoreApp object. * @param MobileApp $body The request body * @param MobileAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilderGetQueryParameters.php index ee26d51f179..7052c72ddfd 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List properties and relationships of the win32LobApp objects. + * List properties and relationships of the managedAndroidStoreApp objects. */ class MobileAppsRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestGetResponse.php b/src/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestGetResponse.php new file mode 100644 index 00000000000..a8e6f4e08aa --- /dev/null +++ b/src/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestGetResponse.php @@ -0,0 +1,114 @@ +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 DownloadApplePushNotificationCertificateSigningRequestGetResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): DownloadApplePushNotificationCertificateSigningRequestGetResponse { + return new DownloadApplePushNotificationCertificateSigningRequestGetResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getStringValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return string|null + */ + public function getValue(): ?string { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_string($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 { + $writer->writeStringValue('value', $this->getValue()); + $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 value property value. The value property + * @param string|null $value Value to set for the value property. + */ + public function setValue(?string $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestRequestBuilder.php b/src/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestRequestBuilder.php index b60dd70c7fa..29ddeaaf96f 100644 --- a/src/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestRequestBuilder.php +++ b/src/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DownloadApplePushNotificationCertificateSigningRequestReque '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DownloadApplePushNotificationCertificateSigningRequestResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DownloadApplePushNotificationCertificateSigningRequestGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestResponse.php b/src/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestResponse.php deleted file mode 100644 index f5edcc89b7b..00000000000 --- a/src/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 DownloadApplePushNotificationCertificateSigningRequestResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): DownloadApplePushNotificationCertificateSigningRequestResponse { - return new DownloadApplePushNotificationCertificateSigningRequestResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getStringValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return string|null - */ - public function getValue(): ?string { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_string($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 { - $writer->writeStringValue('value', $this->getValue()); - $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 value property value. The value property - * @param string|null $value Value to set for the value property. - */ - public function setValue(?string $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryGetResponse.php b/src/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryGetResponse.php new file mode 100644 index 00000000000..f2c7ff5dba5 --- /dev/null +++ b/src/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryGetResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryRequestBuilder.php b/src/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryRequestBuilder.php index f59f540ba02..c0c261ce9a9 100644 --- a/src/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryRequestBuilder.php +++ b/src/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryRequestBuilder.php @@ -45,7 +45,7 @@ public function get(?GetAuditActivityTypesWithCategoryRequestBuilderGetRequestCo '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetAuditActivityTypesWithCategoryResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetAuditActivityTypesWithCategoryGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryResponse.php b/src/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryResponse.php deleted file mode 100644 index d512b62795f..00000000000 --- a/src/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesGetResponse.php b/src/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesGetResponse.php new file mode 100644 index 00000000000..c119c5051d7 --- /dev/null +++ b/src/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesGetResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesRequestBuilder.php b/src/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesRequestBuilder.php index 724da3dfbc5..c716a41098a 100644 --- a/src/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesRequestBuilder.php +++ b/src/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?GetAuditCategoriesRequestBuilderGetRequestConfiguration $re '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetAuditCategoriesResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetAuditCategoriesGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesResponse.php b/src/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesResponse.php deleted file mode 100644 index a7f1bab8c4d..00000000000 --- a/src/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.php index f4ad38e6df4..a5c59210106 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.php @@ -53,10 +53,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List properties and relationships of the androidWorkProfileCompliancePolicy objects. + * List properties and relationships of the iosCompliancePolicy objects. * @param DeviceCompliancePoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilecompliancepolicy-list?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-ioscompliancepolicy-list?view=graph-rest-1.0 Find more info here */ public function get(?DeviceCompliancePoliciesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -72,11 +72,11 @@ public function get(?DeviceCompliancePoliciesRequestBuilderGetRequestConfigurati } /** - * Create a new macOSCompliancePolicy object. + * Create a new iosCompliancePolicy object. * @param DeviceCompliancePolicy $body The request body * @param DeviceCompliancePoliciesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-macoscompliancepolicy-create?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-ioscompliancepolicy-create?view=graph-rest-1.0 Find more info here */ public function post(DeviceCompliancePolicy $body, ?DeviceCompliancePoliciesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -92,7 +92,7 @@ public function post(DeviceCompliancePolicy $body, ?DeviceCompliancePoliciesRequ } /** - * List properties and relationships of the androidWorkProfileCompliancePolicy objects. + * List properties and relationships of the iosCompliancePolicy objects. * @param DeviceCompliancePoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?DeviceCompliancePoliciesRequestBuilderG } /** - * Create a new macOSCompliancePolicy object. + * Create a new iosCompliancePolicy object. * @param DeviceCompliancePolicy $body The request body * @param DeviceCompliancePoliciesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilderGetQueryParameters.php index 70697b67873..991307a65ca 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List properties and relationships of the androidWorkProfileCompliancePolicy objects. + * List properties and relationships of the iosCompliancePolicy objects. */ class DeviceCompliancePoliciesRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignPostResponse.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignPostResponse.php new file mode 100644 index 00000000000..f0cb2a4ae11 --- /dev/null +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DeviceCompliancePolicyAssignment::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, DeviceCompliancePolicyAssignment::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/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignRequestBuilder.php index b989ba6e7f4..a467680f90f 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignRequestBuilder.php @@ -44,7 +44,7 @@ public function post(AssignPostRequestBody $body, ?AssignRequestBuilderPostReque '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [AssignResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [AssignPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignResponse.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignResponse.php deleted file mode 100644 index ffc85fcf36e..00000000000 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DeviceCompliancePolicyAssignment::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, DeviceCompliancePolicyAssignment::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/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.php index 640dd23f892..86199c17187 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.php @@ -104,10 +104,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Deletes a androidCompliancePolicy. + * Deletes a macOSCompliancePolicy. * @param DeviceCompliancePolicyItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidcompliancepolicy-delete?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-macoscompliancepolicy-delete?view=graph-rest-1.0 Find more info here */ public function delete(?DeviceCompliancePolicyItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -142,11 +142,11 @@ public function get(?DeviceCompliancePolicyItemRequestBuilderGetRequestConfigura } /** - * Update the properties of a windows81CompliancePolicy object. + * Update the properties of a androidWorkProfileCompliancePolicy object. * @param DeviceCompliancePolicy $body The request body * @param DeviceCompliancePolicyItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows81compliancepolicy-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilecompliancepolicy-update?view=graph-rest-1.0 Find more info here */ public function patch(DeviceCompliancePolicy $body, ?DeviceCompliancePolicyItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -162,7 +162,7 @@ public function patch(DeviceCompliancePolicy $body, ?DeviceCompliancePolicyItemR } /** - * Deletes a androidCompliancePolicy. + * Deletes a macOSCompliancePolicy. * @param DeviceCompliancePolicyItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -200,7 +200,7 @@ public function toGetRequestInformation(?DeviceCompliancePolicyItemRequestBuilde } /** - * Update the properties of a windows81CompliancePolicy object. + * Update the properties of a androidWorkProfileCompliancePolicy object. * @param DeviceCompliancePolicy $body The request body * @param DeviceCompliancePolicyItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.php b/src/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.php index 8db81b12887..bd1186a2d09 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.php @@ -53,10 +53,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List properties and relationships of the windows10EndpointProtectionConfiguration objects. + * List properties and relationships of the iosCertificateProfile objects. * @param DeviceConfigurationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10endpointprotectionconfiguration-list?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-ioscertificateprofile-list?view=graph-rest-1.0 Find more info here */ public function get(?DeviceConfigurationsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -92,7 +92,7 @@ public function post(DeviceConfiguration $body, ?DeviceConfigurationsRequestBuil } /** - * List properties and relationships of the windows10EndpointProtectionConfiguration objects. + * List properties and relationships of the iosCertificateProfile objects. * @param DeviceConfigurationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilderGetQueryParameters.php index a64c97ce03d..bcdb0563db3 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List properties and relationships of the windows10EndpointProtectionConfiguration objects. + * List properties and relationships of the iosCertificateProfile objects. */ class DeviceConfigurationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignPostResponse.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignPostResponse.php new file mode 100644 index 00000000000..f32e61ee7a9 --- /dev/null +++ b/src/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DeviceConfigurationAssignment::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, DeviceConfigurationAssignment::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/DeviceManagement/DeviceConfigurations/Item/Assign/AssignRequestBuilder.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignRequestBuilder.php index f9f6910cbdb..42bf7349003 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignRequestBuilder.php @@ -44,7 +44,7 @@ public function post(AssignPostRequestBody $body, ?AssignRequestBuilderPostReque '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [AssignResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [AssignPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignResponse.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignResponse.php deleted file mode 100644 index b3bb4153d28..00000000000 --- a/src/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DeviceConfigurationAssignment::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, DeviceConfigurationAssignment::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/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.php index 28db11129b5..03fe8b40811 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.php @@ -89,10 +89,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Deletes a windows10EnterpriseModernAppManagementConfiguration. + * Deletes a windows10EndpointProtectionConfiguration. * @param DeviceConfigurationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10enterprisemodernappmanagementconfiguration-delete?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10endpointprotectionconfiguration-delete?view=graph-rest-1.0 Find more info here */ public function delete(?DeviceConfigurationItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -108,10 +108,10 @@ public function delete(?DeviceConfigurationItemRequestBuilderDeleteRequestConfig } /** - * Read properties and relationships of the androidWorkProfileCustomConfiguration object. + * Read properties and relationships of the iosGeneralDeviceConfiguration object. * @param DeviceConfigurationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilecustomconfiguration-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-iosgeneraldeviceconfiguration-get?view=graph-rest-1.0 Find more info here */ public function get(?DeviceConfigurationItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -136,11 +136,11 @@ public function getOmaSettingPlainTextValueWithSecretReferenceValueId(string $se } /** - * Update the properties of a windows81GeneralConfiguration object. + * Update the properties of a androidCustomConfiguration object. * @param DeviceConfiguration $body The request body * @param DeviceConfigurationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows81generalconfiguration-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidcustomconfiguration-update?view=graph-rest-1.0 Find more info here */ public function patch(DeviceConfiguration $body, ?DeviceConfigurationItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -156,7 +156,7 @@ public function patch(DeviceConfiguration $body, ?DeviceConfigurationItemRequest } /** - * Deletes a windows10EnterpriseModernAppManagementConfiguration. + * Deletes a windows10EndpointProtectionConfiguration. * @param DeviceConfigurationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -173,7 +173,7 @@ public function toDeleteRequestInformation(?DeviceConfigurationItemRequestBuilde } /** - * Read properties and relationships of the androidWorkProfileCustomConfiguration object. + * Read properties and relationships of the iosGeneralDeviceConfiguration object. * @param DeviceConfigurationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -194,7 +194,7 @@ public function toGetRequestInformation(?DeviceConfigurationItemRequestBuilderGe } /** - * Update the properties of a windows81GeneralConfiguration object. + * Update the properties of a androidCustomConfiguration object. * @param DeviceConfiguration $body The request body * @param DeviceConfigurationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilderGetQueryParameters.php index a5fa135fe5f..02f9361c4fb 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read properties and relationships of the androidWorkProfileCustomConfiguration object. + * Read properties and relationships of the iosGeneralDeviceConfiguration object. */ class DeviceConfigurationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse.php new file mode 100644 index 00000000000..523c34940ab --- /dev/null +++ b/src/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse.php @@ -0,0 +1,114 @@ +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 GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse { + return new GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getStringValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return string|null + */ + public function getValue(): ?string { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_string($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 { + $writer->writeStringValue('value', $this->getValue()); + $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 value property value. The value property + * @param string|null $value Value to set for the value property. + */ + public function setValue(?string $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder.php index 72ffabb6212..3b0f903b70d 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder.php @@ -45,7 +45,7 @@ public function get(?GetOmaSettingPlainTextValueWithSecretReferenceValueIdReques '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetOmaSettingPlainTextValueWithSecretReferenceValueIdResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdResponse.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdResponse.php deleted file mode 100644 index 56ca222b5ff..00000000000 --- a/src/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 GetOmaSettingPlainTextValueWithSecretReferenceValueIdResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): GetOmaSettingPlainTextValueWithSecretReferenceValueIdResponse { - return new GetOmaSettingPlainTextValueWithSecretReferenceValueIdResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getStringValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return string|null - */ - public function getValue(): ?string { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_string($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 { - $writer->writeStringValue('value', $this->getValue()); - $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 value property value. The value property - * @param string|null $value Value to set for the value property. - */ - public function setValue(?string $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.php b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.php index e4ab62836fa..0c9a346c695 100644 --- a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.php @@ -53,10 +53,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. + * List properties and relationships of the deviceEnrollmentLimitConfiguration objects. * @param DeviceEnrollmentConfigurationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentplatformrestrictionsconfiguration-list?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentlimitconfiguration-list?view=graph-rest-1.0 Find more info here */ public function get(?DeviceEnrollmentConfigurationsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -92,7 +92,7 @@ public function post(DeviceEnrollmentConfiguration $body, ?DeviceEnrollmentConfi } /** - * List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. + * List properties and relationships of the deviceEnrollmentLimitConfiguration objects. * @param DeviceEnrollmentConfigurationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters.php index 0e1a5b8ac93..06a2f624fdb 100644 --- a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. + * List properties and relationships of the deviceEnrollmentLimitConfiguration objects. */ class DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.php b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.php index e9c998960e1..5199d34562f 100644 --- a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.php @@ -56,10 +56,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. + * Deletes a deviceEnrollmentPlatformRestrictionsConfiguration. * @param DeviceEnrollmentConfigurationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentwindowshelloforbusinessconfiguration-delete?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentplatformrestrictionsconfiguration-delete?view=graph-rest-1.0 Find more info here */ public function delete(?DeviceEnrollmentConfigurationItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -94,11 +94,11 @@ public function get(?DeviceEnrollmentConfigurationItemRequestBuilderGetRequestCo } /** - * Update the properties of a deviceEnrollmentPlatformRestrictionsConfiguration object. + * Update the properties of a deviceEnrollmentLimitConfiguration object. * @param DeviceEnrollmentConfiguration $body The request body * @param DeviceEnrollmentConfigurationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentplatformrestrictionsconfiguration-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentlimitconfiguration-update?view=graph-rest-1.0 Find more info here */ public function patch(DeviceEnrollmentConfiguration $body, ?DeviceEnrollmentConfigurationItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -114,7 +114,7 @@ public function patch(DeviceEnrollmentConfiguration $body, ?DeviceEnrollmentConf } /** - * Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. + * Deletes a deviceEnrollmentPlatformRestrictionsConfiguration. * @param DeviceEnrollmentConfigurationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -152,7 +152,7 @@ public function toGetRequestInformation(?DeviceEnrollmentConfigurationItemReques } /** - * Update the properties of a deviceEnrollmentPlatformRestrictionsConfiguration object. + * Update the properties of a deviceEnrollmentLimitConfiguration object. * @param DeviceEnrollmentConfiguration $body The request body * @param DeviceEnrollmentConfigurationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DeviceManagement/DeviceManagementRequestBuilder.php b/src/Generated/DeviceManagement/DeviceManagementRequestBuilder.php index b81ef666db2..e326a3255cf 100644 --- a/src/Generated/DeviceManagement/DeviceManagementRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceManagementRequestBuilder.php @@ -501,7 +501,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * Read properties and relationships of the deviceManagement object. * @param DeviceManagementRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-reporting-devicemanagement-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-devices-devicemanagement-get?view=graph-rest-1.0 Find more info here */ public function get(?DeviceManagementRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -530,7 +530,7 @@ public function getEffectivePermissionsWithScope(string $scope): GetEffectivePer * @param DeviceManagement $body The request body * @param DeviceManagementRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-rbac-devicemanagement-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-notification-devicemanagement-update?view=graph-rest-1.0 Find more info here */ public function patch(DeviceManagement $body, ?DeviceManagementRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); diff --git a/src/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeGetResponse.php b/src/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeGetResponse.php new file mode 100644 index 00000000000..b6ef5c2c469 --- /dev/null +++ b/src/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([RolePermission::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, RolePermission::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/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeRequestBuilder.php b/src/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeRequestBuilder.php index 7b18dd3ce10..0fd2398a6ad 100644 --- a/src/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeRequestBuilder.php +++ b/src/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeRequestBuilder.php @@ -45,7 +45,7 @@ public function get(?GetEffectivePermissionsWithScopeRequestBuilderGetRequestCon '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetEffectivePermissionsWithScopeResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetEffectivePermissionsWithScopeGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeResponse.php b/src/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeResponse.php deleted file mode 100644 index 7f13669a577..00000000000 --- a/src/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([RolePermission::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, RolePermission::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/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportPostResponse.php b/src/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportPostResponse.php new file mode 100644 index 00000000000..f39cc603e83 --- /dev/null +++ b/src/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ImportedWindowsAutopilotDeviceIdentity::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, ImportedWindowsAutopilotDeviceIdentity::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/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportRequestBuilder.php b/src/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportRequestBuilder.php index acc5566584d..9d92b994625 100644 --- a/src/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportRequestBuilder.php +++ b/src/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportRequestBuilder.php @@ -44,7 +44,7 @@ public function post(ImportPostRequestBody $body, ?ImportRequestBuilderPostReque '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [ImportResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [ImportPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportResponse.php b/src/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportResponse.php deleted file mode 100644 index f7f51321481..00000000000 --- a/src/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ImportedWindowsAutopilotDeviceIdentity::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, ImportedWindowsAutopilotDeviceIdentity::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/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.php b/src/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.php new file mode 100644 index 00000000000..4c3cb6cde57 --- /dev/null +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.php @@ -0,0 +1,114 @@ +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 CreateDownloadUrlPostResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CreateDownloadUrlPostResponse { + return new CreateDownloadUrlPostResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getStringValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return string|null + */ + public function getValue(): ?string { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_string($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 { + $writer->writeStringValue('value', $this->getValue()); + $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 value property value. The value property + * @param string|null $value Value to set for the value property. + */ + public function setValue(?string $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.php index e4f099126a8..6c82efc9caa 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.php @@ -42,7 +42,7 @@ public function post(?CreateDownloadUrlRequestBuilderPostRequestConfiguration $r '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CreateDownloadUrlResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CreateDownloadUrlPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlResponse.php b/src/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlResponse.php deleted file mode 100644 index 62b2535c36d..00000000000 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 CreateDownloadUrlResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): CreateDownloadUrlResponse { - return new CreateDownloadUrlResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getStringValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return string|null - */ - public function getValue(): ?string { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_string($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 { - $writer->writeStringValue('value', $this->getValue()); - $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 value property value. The value property - * @param string|null $value Value to set for the value property. - */ - public function setValue(?string $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.php b/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.php index 9c00a7a90b8..b377bc93783 100644 --- a/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.php @@ -40,10 +40,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Deletes a roleDefinition. + * Deletes a deviceAndAppManagementRoleDefinition. * @param RoleDefinitionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-delete?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-delete?view=graph-rest-1.0 Find more info here */ public function delete(?RoleDefinitionItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -59,10 +59,10 @@ public function delete(?RoleDefinitionItemRequestBuilderDeleteRequestConfigurati } /** - * Read properties and relationships of the deviceAndAppManagementRoleDefinition object. + * Read properties and relationships of the roleDefinition object. * @param RoleDefinitionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-get?view=graph-rest-1.0 Find more info here */ public function get(?RoleDefinitionItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -78,11 +78,11 @@ public function get(?RoleDefinitionItemRequestBuilderGetRequestConfiguration $re } /** - * Update the properties of a roleDefinition object. + * Update the properties of a deviceAndAppManagementRoleDefinition object. * @param RoleDefinition $body The request body * @param RoleDefinitionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-update?view=graph-rest-1.0 Find more info here */ public function patch(RoleDefinition $body, ?RoleDefinitionItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -98,7 +98,7 @@ public function patch(RoleDefinition $body, ?RoleDefinitionItemRequestBuilderPat } /** - * Deletes a roleDefinition. + * Deletes a deviceAndAppManagementRoleDefinition. * @param RoleDefinitionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -115,7 +115,7 @@ public function toDeleteRequestInformation(?RoleDefinitionItemRequestBuilderDele } /** - * Read properties and relationships of the deviceAndAppManagementRoleDefinition object. + * Read properties and relationships of the roleDefinition object. * @param RoleDefinitionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -136,7 +136,7 @@ public function toGetRequestInformation(?RoleDefinitionItemRequestBuilderGetRequ } /** - * Update the properties of a roleDefinition object. + * Update the properties of a deviceAndAppManagementRoleDefinition object. * @param RoleDefinition $body The request body * @param RoleDefinitionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilderGetQueryParameters.php index 66802fd4f88..6ab7af424b5 100644 --- a/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read properties and relationships of the deviceAndAppManagementRoleDefinition object. + * Read properties and relationships of the roleDefinition object. */ class RoleDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse.php new file mode 100644 index 00000000000..eb8936f9d31 --- /dev/null +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([UserExperienceAnalyticsDevicePerformance::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, UserExperienceAnalyticsDevicePerformance::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/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder.php index d4ea66c350b..54a59c48266 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder.php @@ -45,7 +45,7 @@ public function get(?SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuil '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [SummarizeDevicePerformanceDevicesWithSummarizeByResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByResponse.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByResponse.php deleted file mode 100644 index a2c43a3a767..00000000000 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([UserExperienceAnalyticsDevicePerformance::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, UserExperienceAnalyticsDevicePerformance::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/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse.php b/src/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse.php new file mode 100644 index 00000000000..00d96bc3ff3 --- /dev/null +++ b/src/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse.php @@ -0,0 +1,114 @@ +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 VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse { + return new VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return bool|null + */ + public function getValue(): ?bool { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_bool($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 { + $writer->writeBooleanValue('value', $this->getValue()); + $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 value property value. The value property + * @param bool|null $value Value to set for the value property. + */ + public function setValue(?bool $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder.php b/src/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder.php index 828e3fc478c..23f5e886a57 100644 --- a/src/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder.php +++ b/src/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder.php @@ -45,7 +45,7 @@ public function get(?VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBu '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameResponse.php b/src/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameResponse.php deleted file mode 100644 index c331cf2a08d..00000000000 --- a/src/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameResponse { - return new VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return bool|null - */ - public function getValue(): ?bool { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_bool($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 { - $writer->writeBooleanValue('value', $this->getValue()); - $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 value property value. The value property - * @param bool|null $value Value to set for the value property. - */ - public function setValue(?bool $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Devices/Delta/DeltaGetResponse.php b/src/Generated/Devices/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..16070c3d5e3 --- /dev/null +++ b/src/Generated/Devices/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([Device::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, Device::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/Devices/Delta/DeltaRequestBuilder.php b/src/Generated/Devices/Delta/DeltaRequestBuilder.php index cdcb82daab3..d673b2e252b 100644 --- a/src/Generated/Devices/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Devices/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Devices/Delta/DeltaResponse.php b/src/Generated/Devices/Delta/DeltaResponse.php deleted file mode 100644 index 909b87ef5cc..00000000000 --- a/src/Generated/Devices/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Device::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, Device::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/Devices/DevicesRequestBuilder.php b/src/Generated/Devices/DevicesRequestBuilder.php index c74d37e9d05..e65c16a7bbb 100644 --- a/src/Generated/Devices/DevicesRequestBuilder.php +++ b/src/Generated/Devices/DevicesRequestBuilder.php @@ -85,7 +85,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of device objects registered in the organization. + * Retrieve a list of device objects registered in the organization. This API is supported in the following national cloud deployments. * @param DevicesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/device-list?view=graph-rest-1.0 Find more info here @@ -104,7 +104,7 @@ public function get(?DevicesRequestBuilderGetRequestConfiguration $requestConfig } /** - * Create and register a new device in the organization. + * Create and register a new device in the organization. This API is supported in the following national cloud deployments. * @param Device $body The request body * @param DevicesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -124,7 +124,7 @@ public function post(Device $body, ?DevicesRequestBuilderPostRequestConfiguratio } /** - * Retrieve a list of device objects registered in the organization. + * Retrieve a list of device objects registered in the organization. This API is supported in the following national cloud deployments. * @param DevicesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -145,7 +145,7 @@ public function toGetRequestInformation(?DevicesRequestBuilderGetRequestConfigur } /** - * Create and register a new device in the organization. + * Create and register a new device in the organization. This API is supported in the following national cloud deployments. * @param Device $body The request body * @param DevicesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Devices/DevicesRequestBuilderGetQueryParameters.php b/src/Generated/Devices/DevicesRequestBuilderGetQueryParameters.php index 93561fbaf86..a1ba2797324 100644 --- a/src/Generated/Devices/DevicesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Devices/DevicesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of device objects registered in the organization. + * Retrieve a list of device objects registered in the organization. This API is supported in the following national cloud deployments. */ class DevicesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php b/src/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php new file mode 100644 index 00000000000..80978b705cd --- /dev/null +++ b/src/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index 51b73fb63e6..2ac3f341377 100644 --- a/src/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetAvailableExtensionPropertiesPostRequestBody $body, ?GetA '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php b/src/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php deleted file mode 100644 index 1e7ce37a66e..00000000000 --- a/src/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/Devices/GetByIds/GetByIdsPostResponse.php b/src/Generated/Devices/GetByIds/GetByIdsPostResponse.php new file mode 100644 index 00000000000..16d2b83cbf9 --- /dev/null +++ b/src/Generated/Devices/GetByIds/GetByIdsPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/Devices/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/Devices/GetByIds/GetByIdsRequestBuilder.php index 2b70513b332..0de0160edc3 100644 --- a/src/Generated/Devices/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/Devices/GetByIds/GetByIdsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetByIdsPostRequestBody $body, ?GetByIdsRequestBuilderPostR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Devices/GetByIds/GetByIdsResponse.php b/src/Generated/Devices/GetByIds/GetByIdsResponse.php deleted file mode 100644 index c76c731a934..00000000000 --- a/src/Generated/Devices/GetByIds/GetByIdsResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/Devices/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php b/src/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php new file mode 100644 index 00000000000..309b179971b --- /dev/null +++ b/src/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Devices/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php b/src/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php index c15ec8b2856..153cdfdaaef 100644 --- a/src/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php +++ b/src/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. * @param CheckMemberGroupsPostRequestBody $body The request body * @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberGroupsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberGroupsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. * @param CheckMemberGroupsPostRequestBody $body The request body * @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsResponse.php b/src/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsResponse.php deleted file mode 100644 index 3f9a77b645d..00000000000 --- a/src/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Devices/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php b/src/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php new file mode 100644 index 00000000000..cce52326df1 --- /dev/null +++ b/src/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Devices/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php b/src/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php index 88af68669cc..69c82f16e06 100644 --- a/src/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php +++ b/src/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php @@ -43,7 +43,7 @@ public function post(CheckMemberObjectsPostRequestBody $body, ?CheckMemberObject '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberObjectsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberObjectsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsResponse.php b/src/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsResponse.php deleted file mode 100644 index c2802ec9272..00000000000 --- a/src/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Devices/Item/DeviceItemRequestBuilder.php b/src/Generated/Devices/Item/DeviceItemRequestBuilder.php index b394d6ad6c5..e073d9ca49e 100644 --- a/src/Generated/Devices/Item/DeviceItemRequestBuilder.php +++ b/src/Generated/Devices/Item/DeviceItemRequestBuilder.php @@ -112,7 +112,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a registered device. + * Delete a registered device. This API is supported in the following national cloud deployments. * @param DeviceItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/device-delete?view=graph-rest-1.0 Find more info here @@ -131,7 +131,7 @@ public function delete(?DeviceItemRequestBuilderDeleteRequestConfiguration $requ } /** - * Get the properties and relationships of a device object. + * Get the properties and relationships of a device object. This API is supported in the following national cloud deployments. * @param DeviceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/device-get?view=graph-rest-1.0 Find more info here @@ -150,7 +150,7 @@ public function get(?DeviceItemRequestBuilderGetRequestConfiguration $requestCon } /** - * Update the properties of a registered device. Only certain properties of a device can be updated through approved Mobile Device Managment (MDM) apps. + * Update the properties of a registered device. Only certain properties of a device can be updated through approved Mobile Device Managment (MDM) apps. This API is supported in the following national cloud deployments. * @param Device $body The request body * @param DeviceItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -170,7 +170,7 @@ public function patch(Device $body, ?DeviceItemRequestBuilderPatchRequestConfigu } /** - * Delete a registered device. + * Delete a registered device. This API is supported in the following national cloud deployments. * @param DeviceItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -187,7 +187,7 @@ public function toDeleteRequestInformation(?DeviceItemRequestBuilderDeleteReques } /** - * Get the properties and relationships of a device object. + * Get the properties and relationships of a device object. This API is supported in the following national cloud deployments. * @param DeviceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -208,7 +208,7 @@ public function toGetRequestInformation(?DeviceItemRequestBuilderGetRequestConfi } /** - * Update the properties of a registered device. Only certain properties of a device can be updated through approved Mobile Device Managment (MDM) apps. + * Update the properties of a registered device. Only certain properties of a device can be updated through approved Mobile Device Managment (MDM) apps. This API is supported in the following national cloud deployments. * @param Device $body The request body * @param DeviceItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Devices/Item/DeviceItemRequestBuilderGetQueryParameters.php b/src/Generated/Devices/Item/DeviceItemRequestBuilderGetQueryParameters.php index 19757b024a2..f0562c56bf9 100644 --- a/src/Generated/Devices/Item/DeviceItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Devices/Item/DeviceItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the properties and relationships of a device object. + * Get the properties and relationships of a device object. This API is supported in the following national cloud deployments. */ class DeviceItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsPostResponse.php b/src/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsPostResponse.php new file mode 100644 index 00000000000..9277026ecc5 --- /dev/null +++ b/src/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Devices/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index 63e531861e8..8b51b0b9f99 100644 --- a/src/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsReque '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetMemberGroupsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetMemberGroupsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsResponse.php b/src/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsResponse.php deleted file mode 100644 index ab2722f8bb8..00000000000 --- a/src/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Devices/Item/GetMemberObjects/GetMemberObjectsPostResponse.php b/src/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsPostResponse.php new file mode 100644 index 00000000000..5cddff120d7 --- /dev/null +++ b/src/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Devices/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php b/src/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php index d7427944604..f13d02c62fe 100644 --- a/src/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php +++ b/src/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. * @param GetMemberObjectsPostRequestBody $body The request body * @param GetMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetMemberObjectsPostRequestBody $body, ?GetMemberObjectsReq '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetMemberObjectsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetMemberObjectsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. * @param GetMemberObjectsPostRequestBody $body The request body * @param GetMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsResponse.php b/src/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsResponse.php deleted file mode 100644 index 658ea89301e..00000000000 --- a/src/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.php b/src/Generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.php index 1c59c279d90..c90935697c1 100644 --- a/src/Generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove a user as a registered owner of the device. + * Remove a user as a registered owner of the device. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/device-delete-registeredowners?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function delete(?RefRequestBuilderDeleteRequestConfiguration $requestConf } /** - * Remove a user as a registered owner of the device. + * Remove a user as a registered owner of the device. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilderDeleteQueryParameters.php b/src/Generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilderDeleteQueryParameters.php index b175574b69e..85c43cf4b54 100644 --- a/src/Generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilderDeleteQueryParameters.php +++ b/src/Generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilderDeleteQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Remove a user as a registered owner of the device. + * Remove a user as a registered owner of the device. This API is supported in the following national cloud deployments. */ class RefRequestBuilderDeleteQueryParameters { diff --git a/src/Generated/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.php b/src/Generated/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.php index a13bbda452a..aacc9909940 100644 --- a/src/Generated/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.php @@ -52,7 +52,7 @@ public function get(?RefRequestBuilderGetRequestConfiguration $requestConfigurat } /** - * Add a user as a registered owner of the device. + * Add a user as a registered owner of the device. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -93,7 +93,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } /** - * Add a user as a registered owner of the device. + * Add a user as a registered owner of the device. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.php b/src/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.php index 26650623ae4..fc23dc8ea53 100644 --- a/src/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove a user as a registered user of the device. + * Remove a user as a registered user of the device. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/device-delete-registeredusers?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function delete(?RefRequestBuilderDeleteRequestConfiguration $requestConf } /** - * Remove a user as a registered user of the device. + * Remove a user as a registered user of the device. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilderDeleteQueryParameters.php b/src/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilderDeleteQueryParameters.php index 41be97d65cc..6b9be8f2558 100644 --- a/src/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilderDeleteQueryParameters.php +++ b/src/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilderDeleteQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Remove a user as a registered user of the device. + * Remove a user as a registered user of the device. This API is supported in the following national cloud deployments. */ class RefRequestBuilderDeleteQueryParameters { diff --git a/src/Generated/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.php b/src/Generated/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.php index 76e2d209f3f..fa3c2b9befd 100644 --- a/src/Generated/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.php @@ -52,7 +52,7 @@ public function get(?RefRequestBuilderGetRequestConfiguration $requestConfigurat } /** - * Add a registered user for the device. + * Add a registered user for the device. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -93,7 +93,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } /** - * Add a registered user for the device. + * Add a registered user for the device. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|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 0a08a24c132..2174c73131f 100644 --- a/src/Generated/Devices/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Devices/Item/Restore/RestoreRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Devices/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/Devices/ValidateProperties/ValidatePropertiesRequestBuilder.php index 723495cace9..953a6cada28 100644 --- a/src/Generated/Devices/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/Devices/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ValidatePropertiesPostRequestBody $body, ?ValidatePropertie } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DevicesWithDeviceId/DevicesWithDeviceIdRequestBuilder.php b/src/Generated/DevicesWithDeviceId/DevicesWithDeviceIdRequestBuilder.php index 7e3b8f34b3d..6611236c6b7 100644 --- a/src/Generated/DevicesWithDeviceId/DevicesWithDeviceIdRequestBuilder.php +++ b/src/Generated/DevicesWithDeviceId/DevicesWithDeviceIdRequestBuilder.php @@ -35,7 +35,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a registered device. + * Delete a registered device. This API is supported in the following national cloud deployments. * @param DevicesWithDeviceIdRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/device-delete?view=graph-rest-1.0 Find more info here @@ -54,7 +54,7 @@ public function delete(?DevicesWithDeviceIdRequestBuilderDeleteRequestConfigurat } /** - * Get the properties and relationships of a device object. + * Get the properties and relationships of a device object. This API is supported in the following national cloud deployments. * @param DevicesWithDeviceIdRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/device-get?view=graph-rest-1.0 Find more info here @@ -73,7 +73,7 @@ public function get(?DevicesWithDeviceIdRequestBuilderGetRequestConfiguration $r } /** - * Update the properties of a registered device. Only certain properties of a device can be updated through approved Mobile Device Managment (MDM) apps. + * Update the properties of a registered device. Only certain properties of a device can be updated through approved Mobile Device Managment (MDM) apps. This API is supported in the following national cloud deployments. * @param Device $body The request body * @param DevicesWithDeviceIdRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -93,7 +93,7 @@ public function patch(Device $body, ?DevicesWithDeviceIdRequestBuilderPatchReque } /** - * Delete a registered device. + * Delete a registered device. This API is supported in the following national cloud deployments. * @param DevicesWithDeviceIdRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -110,7 +110,7 @@ public function toDeleteRequestInformation(?DevicesWithDeviceIdRequestBuilderDel } /** - * Get the properties and relationships of a device object. + * Get the properties and relationships of a device object. This API is supported in the following national cloud deployments. * @param DevicesWithDeviceIdRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -131,7 +131,7 @@ public function toGetRequestInformation(?DevicesWithDeviceIdRequestBuilderGetReq } /** - * Update the properties of a registered device. Only certain properties of a device can be updated through approved Mobile Device Managment (MDM) apps. + * Update the properties of a registered device. Only certain properties of a device can be updated through approved Mobile Device Managment (MDM) apps. This API is supported in the following national cloud deployments. * @param Device $body The request body * @param DevicesWithDeviceIdRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DevicesWithDeviceId/DevicesWithDeviceIdRequestBuilderGetQueryParameters.php b/src/Generated/DevicesWithDeviceId/DevicesWithDeviceIdRequestBuilderGetQueryParameters.php index a49f51dd8c5..f52ba30e17f 100644 --- a/src/Generated/DevicesWithDeviceId/DevicesWithDeviceIdRequestBuilderGetQueryParameters.php +++ b/src/Generated/DevicesWithDeviceId/DevicesWithDeviceIdRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the properties and relationships of a device object. + * Get the properties and relationships of a device object. This API is supported in the following national cloud deployments. */ class DevicesWithDeviceIdRequestBuilderGetQueryParameters { diff --git a/src/Generated/Directory/AdministrativeUnits/AdministrativeUnitsRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/AdministrativeUnitsRequestBuilder.php index 86f33d1ecb5..6a28a6c86e4 100644 --- a/src/Generated/Directory/AdministrativeUnits/AdministrativeUnitsRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/AdministrativeUnitsRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of administrativeUnit objects. + * Retrieve a list of administrativeUnit objects. This API is supported in the following national cloud deployments. * @param AdministrativeUnitsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directory-list-administrativeunits?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?AdministrativeUnitsRequestBuilderGetRequestConfiguration $r } /** - * Use this API to create a new administrativeUnit. + * Use this API to create a new administrativeUnit. This API is supported in the following national cloud deployments. * @param AdministrativeUnit $body The request body * @param AdministrativeUnitsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(AdministrativeUnit $body, ?AdministrativeUnitsRequestBuilde } /** - * Retrieve a list of administrativeUnit objects. + * Retrieve a list of administrativeUnit objects. This API is supported in the following national cloud deployments. * @param AdministrativeUnitsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?AdministrativeUnitsRequestBuilderGetReq } /** - * Use this API to create a new administrativeUnit. + * Use this API to create a new administrativeUnit. This API is supported in the following national cloud deployments. * @param AdministrativeUnit $body The request body * @param AdministrativeUnitsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Directory/AdministrativeUnits/AdministrativeUnitsRequestBuilderGetQueryParameters.php b/src/Generated/Directory/AdministrativeUnits/AdministrativeUnitsRequestBuilderGetQueryParameters.php index ad4cb609b3f..0c2eb67f59b 100644 --- a/src/Generated/Directory/AdministrativeUnits/AdministrativeUnitsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Directory/AdministrativeUnits/AdministrativeUnitsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of administrativeUnit objects. + * Retrieve a list of administrativeUnit objects. This API is supported in the following national cloud deployments. */ class AdministrativeUnitsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Directory/AdministrativeUnits/Delta/DeltaGetResponse.php b/src/Generated/Directory/AdministrativeUnits/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..f415a59df92 --- /dev/null +++ b/src/Generated/Directory/AdministrativeUnits/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([AdministrativeUnit::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, AdministrativeUnit::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/Directory/AdministrativeUnits/Delta/DeltaRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Delta/DeltaRequestBuilder.php index 3e7c0fcaed6..f9b217316e3 100644 --- a/src/Generated/Directory/AdministrativeUnits/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Directory/AdministrativeUnits/Delta/DeltaResponse.php b/src/Generated/Directory/AdministrativeUnits/Delta/DeltaResponse.php deleted file mode 100644 index 2619907ac94..00000000000 --- a/src/Generated/Directory/AdministrativeUnits/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AdministrativeUnit::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, AdministrativeUnit::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/Directory/AdministrativeUnits/Item/AdministrativeUnitItemRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/AdministrativeUnitItemRequestBuilder.php index d86e427c7eb..36dc951b657 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/AdministrativeUnitItemRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/AdministrativeUnitItemRequestBuilder.php @@ -56,7 +56,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an administrativeUnit. + * Delete an administrativeUnit. This API is supported in the following national cloud deployments. * @param AdministrativeUnitItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/administrativeunit-delete?view=graph-rest-1.0 Find more info here @@ -75,7 +75,7 @@ public function delete(?AdministrativeUnitItemRequestBuilderDeleteRequestConfigu } /** - * Retrieve the properties and relationships of an administrativeUnit object. + * Retrieve the properties and relationships of an administrativeUnit object. This API is supported in the following national cloud deployments. * @param AdministrativeUnitItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/administrativeunit-get?view=graph-rest-1.0 Find more info here @@ -94,7 +94,7 @@ public function get(?AdministrativeUnitItemRequestBuilderGetRequestConfiguration } /** - * Update the properties of an administrativeUnit object. + * Update the properties of an administrativeUnit object. This API is supported in the following national cloud deployments. * @param AdministrativeUnit $body The request body * @param AdministrativeUnitItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -114,7 +114,7 @@ public function patch(AdministrativeUnit $body, ?AdministrativeUnitItemRequestBu } /** - * Delete an administrativeUnit. + * Delete an administrativeUnit. This API is supported in the following national cloud deployments. * @param AdministrativeUnitItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -131,7 +131,7 @@ public function toDeleteRequestInformation(?AdministrativeUnitItemRequestBuilder } /** - * Retrieve the properties and relationships of an administrativeUnit object. + * Retrieve the properties and relationships of an administrativeUnit object. This API is supported in the following national cloud deployments. * @param AdministrativeUnitItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -152,7 +152,7 @@ public function toGetRequestInformation(?AdministrativeUnitItemRequestBuilderGet } /** - * Update the properties of an administrativeUnit object. + * Update the properties of an administrativeUnit object. This API is supported in the following national cloud deployments. * @param AdministrativeUnit $body The request body * @param AdministrativeUnitItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Directory/AdministrativeUnits/Item/AdministrativeUnitItemRequestBuilderGetQueryParameters.php b/src/Generated/Directory/AdministrativeUnits/Item/AdministrativeUnitItemRequestBuilderGetQueryParameters.php index 7b84bf03aca..4d307ba113b 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/AdministrativeUnitItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/AdministrativeUnitItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of an administrativeUnit object. + * Retrieve the properties and relationships of an administrativeUnit object. This API is supported in the following national cloud deployments. */ class AdministrativeUnitItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.php index decaf25674a..022252d4449 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Use this API to remove a member (user, group, or device) from an administrative unit. + * Use this API to remove a member (user, group, or device) from an administrative unit. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/administrativeunit-delete-members?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function delete(?RefRequestBuilderDeleteRequestConfiguration $requestConf } /** - * Use this API to remove a member (user, group, or device) from an administrative unit. + * Use this API to remove a member (user, group, or device) from an administrative unit. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilderDeleteQueryParameters.php b/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilderDeleteQueryParameters.php index 29f2d6b4f0a..75e9df14750 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilderDeleteQueryParameters.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilderDeleteQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Use this API to remove a member (user, group, or device) from an administrative unit. + * Use this API to remove a member (user, group, or device) from an administrative unit. This API is supported in the following national cloud deployments. */ class RefRequestBuilderDeleteQueryParameters { diff --git a/src/Generated/Directory/AdministrativeUnits/Item/ScopedRoleMembers/Item/ScopedRoleMembershipItemRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/ScopedRoleMembers/Item/ScopedRoleMembershipItemRequestBuilder.php index d24e7da0e0f..d295db3ccbb 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/ScopedRoleMembers/Item/ScopedRoleMembershipItemRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/ScopedRoleMembers/Item/ScopedRoleMembershipItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove an Azure Active Directory (Azure AD) role assignment with administrative unit scope. + * Remove an Azure Active Directory (Azure AD) role assignment with administrative unit scope. This API is supported in the following national cloud deployments. * @param ScopedRoleMembershipItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/administrativeunit-delete-scopedrolemembers?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?ScopedRoleMembershipItemRequestBuilderDeleteRequestConfi } /** - * Get an Azure Active Directory (Azure AD) role assignment with administrative unit scope. + * Get an Azure Active Directory (Azure AD) role assignment with administrative unit scope. This API is supported in the following national cloud deployments. * @param ScopedRoleMembershipItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/administrativeunit-get-scopedrolemembers?view=graph-rest-1.0 Find more info here @@ -89,7 +89,7 @@ public function patch(ScopedRoleMembership $body, ?ScopedRoleMembershipItemReque } /** - * Remove an Azure Active Directory (Azure AD) role assignment with administrative unit scope. + * Remove an Azure Active Directory (Azure AD) role assignment with administrative unit scope. This API is supported in the following national cloud deployments. * @param ScopedRoleMembershipItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?ScopedRoleMembershipItemRequestBuild } /** - * Get an Azure Active Directory (Azure AD) role assignment with administrative unit scope. + * Get an Azure Active Directory (Azure AD) role assignment with administrative unit scope. This API is supported in the following national cloud deployments. * @param ScopedRoleMembershipItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Directory/AdministrativeUnits/Item/ScopedRoleMembers/Item/ScopedRoleMembershipItemRequestBuilderGetQueryParameters.php b/src/Generated/Directory/AdministrativeUnits/Item/ScopedRoleMembers/Item/ScopedRoleMembershipItemRequestBuilderGetQueryParameters.php index e98e688e974..e2196d5b3c1 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/ScopedRoleMembers/Item/ScopedRoleMembershipItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/ScopedRoleMembers/Item/ScopedRoleMembershipItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an Azure Active Directory (Azure AD) role assignment with administrative unit scope. + * Get an Azure Active Directory (Azure AD) role assignment with administrative unit scope. This API is supported in the following national cloud deployments. */ class ScopedRoleMembershipItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Directory/AdministrativeUnits/Item/ScopedRoleMembers/ScopedRoleMembersRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/ScopedRoleMembers/ScopedRoleMembersRequestBuilder.php index c1f1d62d061..f7c74b20130 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/ScopedRoleMembers/ScopedRoleMembersRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/ScopedRoleMembers/ScopedRoleMembersRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List Azure Active Directory (Azure AD) role assignments with administrative unit scope. + * List Azure Active Directory (Azure AD) role assignments with administrative unit scope. This API is supported in the following national cloud deployments. * @param ScopedRoleMembersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/administrativeunit-list-scopedrolemembers?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ScopedRoleMembersRequestBuilderGetRequestConfiguration $req } /** - * Assign an Azure Active Directory (Azure AD) role with administrative unit scope. For a list of roles that can be assigned with administrative unit scope, see Assign Azure AD roles with administrative unit scope. + * Assign an Azure Active Directory (Azure AD) role with administrative unit scope. For a list of roles that can be assigned with administrative unit scope, see Assign Azure AD roles with administrative unit scope. This API is supported in the following national cloud deployments. * @param ScopedRoleMembership $body The request body * @param ScopedRoleMembersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(ScopedRoleMembership $body, ?ScopedRoleMembersRequestBuilde } /** - * List Azure Active Directory (Azure AD) role assignments with administrative unit scope. + * List Azure Active Directory (Azure AD) role assignments with administrative unit scope. This API is supported in the following national cloud deployments. * @param ScopedRoleMembersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ScopedRoleMembersRequestBuilderGetReque } /** - * Assign an Azure Active Directory (Azure AD) role with administrative unit scope. For a list of roles that can be assigned with administrative unit scope, see Assign Azure AD roles with administrative unit scope. + * Assign an Azure Active Directory (Azure AD) role with administrative unit scope. For a list of roles that can be assigned with administrative unit scope, see Assign Azure AD roles with administrative unit scope. This API is supported in the following national cloud deployments. * @param ScopedRoleMembership $body The request body * @param ScopedRoleMembersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Directory/AdministrativeUnits/Item/ScopedRoleMembers/ScopedRoleMembersRequestBuilderGetQueryParameters.php b/src/Generated/Directory/AdministrativeUnits/Item/ScopedRoleMembers/ScopedRoleMembersRequestBuilderGetQueryParameters.php index a1ef4654c75..523e3187e1a 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/ScopedRoleMembers/ScopedRoleMembersRequestBuilderGetQueryParameters.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/ScopedRoleMembers/ScopedRoleMembersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List Azure Active Directory (Azure AD) role assignments with administrative unit scope. + * List Azure Active Directory (Azure AD) role assignments with administrative unit scope. This API is supported in the following national cloud deployments. */ class ScopedRoleMembersRequestBuilderGetQueryParameters { diff --git a/src/Generated/Directory/AttributeSets/AttributeSetsRequestBuilder.php b/src/Generated/Directory/AttributeSets/AttributeSetsRequestBuilder.php index ab4f7ef4f17..da6b511bd76 100644 --- a/src/Generated/Directory/AttributeSets/AttributeSetsRequestBuilder.php +++ b/src/Generated/Directory/AttributeSets/AttributeSetsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the attributeSet objects and their properties. + * Get a list of the attributeSet objects and their properties. This API is supported in the following national cloud deployments. * @param AttributeSetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directory-list-attributesets?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?AttributeSetsRequestBuilderGetRequestConfiguration $request } /** - * Create a new attributeSet object. + * Create a new attributeSet object. This API is supported in the following national cloud deployments. * @param AttributeSet $body The request body * @param AttributeSetsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(AttributeSet $body, ?AttributeSetsRequestBuilderPostRequest } /** - * Get a list of the attributeSet objects and their properties. + * Get a list of the attributeSet objects and their properties. This API is supported in the following national cloud deployments. * @param AttributeSetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?AttributeSetsRequestBuilderGetRequestCo } /** - * Create a new attributeSet object. + * Create a new attributeSet object. This API is supported in the following national cloud deployments. * @param AttributeSet $body The request body * @param AttributeSetsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Directory/AttributeSets/AttributeSetsRequestBuilderGetQueryParameters.php b/src/Generated/Directory/AttributeSets/AttributeSetsRequestBuilderGetQueryParameters.php index c99284c2468..0141ee30772 100644 --- a/src/Generated/Directory/AttributeSets/AttributeSetsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Directory/AttributeSets/AttributeSetsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the attributeSet objects and their properties. + * Get a list of the attributeSet objects and their properties. This API is supported in the following national cloud deployments. */ class AttributeSetsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Directory/AttributeSets/Item/AttributeSetItemRequestBuilder.php b/src/Generated/Directory/AttributeSets/Item/AttributeSetItemRequestBuilder.php index eac1a0c0ff7..c15b76f04ce 100644 --- a/src/Generated/Directory/AttributeSets/Item/AttributeSetItemRequestBuilder.php +++ b/src/Generated/Directory/AttributeSets/Item/AttributeSetItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?AttributeSetItemRequestBuilderDeleteRequestConfiguration } /** - * Read the properties and relationships of an attributeSet object. + * Read the properties and relationships of an attributeSet object. This API is supported in the following national cloud deployments. * @param AttributeSetItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/attributeset-get?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?AttributeSetItemRequestBuilderGetRequestConfiguration $requ } /** - * Update the properties of an attributeSet object. + * Update the properties of an attributeSet object. This API is supported in the following national cloud deployments. * @param AttributeSet $body The request body * @param AttributeSetItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?AttributeSetItemRequestBuilderDelete } /** - * Read the properties and relationships of an attributeSet object. + * Read the properties and relationships of an attributeSet object. This API is supported in the following national cloud deployments. * @param AttributeSetItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -127,7 +127,7 @@ public function toGetRequestInformation(?AttributeSetItemRequestBuilderGetReques } /** - * Update the properties of an attributeSet object. + * Update the properties of an attributeSet object. This API is supported in the following national cloud deployments. * @param AttributeSet $body The request body * @param AttributeSetItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Directory/AttributeSets/Item/AttributeSetItemRequestBuilderGetQueryParameters.php b/src/Generated/Directory/AttributeSets/Item/AttributeSetItemRequestBuilderGetQueryParameters.php index b29b19c0e77..b6cab790549 100644 --- a/src/Generated/Directory/AttributeSets/Item/AttributeSetItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Directory/AttributeSets/Item/AttributeSetItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of an attributeSet object. + * Read the properties and relationships of an attributeSet object. This API is supported in the following national cloud deployments. */ class AttributeSetItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Directory/CustomSecurityAttributeDefinitions/CustomSecurityAttributeDefinitionsRequestBuilder.php b/src/Generated/Directory/CustomSecurityAttributeDefinitions/CustomSecurityAttributeDefinitionsRequestBuilder.php index 3e96378e730..fd158e9abac 100644 --- a/src/Generated/Directory/CustomSecurityAttributeDefinitions/CustomSecurityAttributeDefinitionsRequestBuilder.php +++ b/src/Generated/Directory/CustomSecurityAttributeDefinitions/CustomSecurityAttributeDefinitionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the customSecurityAttributeDefinition objects and their properties. + * Get a list of the customSecurityAttributeDefinition objects and their properties. This API is supported in the following national cloud deployments. * @param CustomSecurityAttributeDefinitionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directory-list-customsecurityattributedefinitions?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?CustomSecurityAttributeDefinitionsRequestBuilderGetRequestC } /** - * Create a new customSecurityAttributeDefinition object. + * Create a new customSecurityAttributeDefinition object. This API is supported in the following national cloud deployments. * @param CustomSecurityAttributeDefinition $body The request body * @param CustomSecurityAttributeDefinitionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(CustomSecurityAttributeDefinition $body, ?CustomSecurityAtt } /** - * Get a list of the customSecurityAttributeDefinition objects and their properties. + * Get a list of the customSecurityAttributeDefinition objects and their properties. This API is supported in the following national cloud deployments. * @param CustomSecurityAttributeDefinitionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?CustomSecurityAttributeDefinitionsReque } /** - * Create a new customSecurityAttributeDefinition object. + * Create a new customSecurityAttributeDefinition object. This API is supported in the following national cloud deployments. * @param CustomSecurityAttributeDefinition $body The request body * @param CustomSecurityAttributeDefinitionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Directory/CustomSecurityAttributeDefinitions/CustomSecurityAttributeDefinitionsRequestBuilderGetQueryParameters.php b/src/Generated/Directory/CustomSecurityAttributeDefinitions/CustomSecurityAttributeDefinitionsRequestBuilderGetQueryParameters.php index 962a702a4ca..5f103ab9b67 100644 --- a/src/Generated/Directory/CustomSecurityAttributeDefinitions/CustomSecurityAttributeDefinitionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Directory/CustomSecurityAttributeDefinitions/CustomSecurityAttributeDefinitionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the customSecurityAttributeDefinition objects and their properties. + * Get a list of the customSecurityAttributeDefinition objects and their properties. This API is supported in the following national cloud deployments. */ class CustomSecurityAttributeDefinitionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/AllowedValuesRequestBuilder.php b/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/AllowedValuesRequestBuilder.php index 3527851338c..14e2bc0c31e 100644 --- a/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/AllowedValuesRequestBuilder.php +++ b/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/AllowedValuesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the allowedValue objects and their properties. + * Get a list of the allowedValue objects and their properties. This API is supported in the following national cloud deployments. * @param AllowedValuesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/customsecurityattributedefinition-list-allowedvalues?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?AllowedValuesRequestBuilderGetRequestConfiguration $request } /** - * Create a new allowedValue object. + * Create a new allowedValue object. This API is supported in the following national cloud deployments. * @param AllowedValue $body The request body * @param AllowedValuesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(AllowedValue $body, ?AllowedValuesRequestBuilderPostRequest } /** - * Get a list of the allowedValue objects and their properties. + * Get a list of the allowedValue objects and their properties. This API is supported in the following national cloud deployments. * @param AllowedValuesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?AllowedValuesRequestBuilderGetRequestCo } /** - * Create a new allowedValue object. + * Create a new allowedValue object. This API is supported in the following national cloud deployments. * @param AllowedValue $body The request body * @param AllowedValuesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/AllowedValuesRequestBuilderGetQueryParameters.php b/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/AllowedValuesRequestBuilderGetQueryParameters.php index 6fca57798a6..2905df73128 100644 --- a/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/AllowedValuesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/AllowedValuesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the allowedValue objects and their properties. + * Get a list of the allowedValue objects and their properties. This API is supported in the following national cloud deployments. */ class AllowedValuesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/Item/AllowedValueItemRequestBuilder.php b/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/Item/AllowedValueItemRequestBuilder.php index d5cbdd3b462..8dd4f13d8b6 100644 --- a/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/Item/AllowedValueItemRequestBuilder.php +++ b/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/Item/AllowedValueItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?AllowedValueItemRequestBuilderDeleteRequestConfiguration } /** - * Read the properties and relationships of an allowedValue object. + * Read the properties and relationships of an allowedValue object. This API is supported in the following national cloud deployments. * @param AllowedValueItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/allowedvalue-get?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?AllowedValueItemRequestBuilderGetRequestConfiguration $requ } /** - * Update the properties of an allowedValue object. + * Update the properties of an allowedValue object. This API is supported in the following national cloud deployments. * @param AllowedValue $body The request body * @param AllowedValueItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?AllowedValueItemRequestBuilderDelete } /** - * Read the properties and relationships of an allowedValue object. + * Read the properties and relationships of an allowedValue object. This API is supported in the following national cloud deployments. * @param AllowedValueItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -127,7 +127,7 @@ public function toGetRequestInformation(?AllowedValueItemRequestBuilderGetReques } /** - * Update the properties of an allowedValue object. + * Update the properties of an allowedValue object. This API is supported in the following national cloud deployments. * @param AllowedValue $body The request body * @param AllowedValueItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/Item/AllowedValueItemRequestBuilderGetQueryParameters.php b/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/Item/AllowedValueItemRequestBuilderGetQueryParameters.php index adddfd9a6be..016b3b5e5a3 100644 --- a/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/Item/AllowedValueItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/Item/AllowedValueItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of an allowedValue object. + * Read the properties and relationships of an allowedValue object. This API is supported in the following national cloud deployments. */ class AllowedValueItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/CustomSecurityAttributeDefinitionItemRequestBuilder.php b/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/CustomSecurityAttributeDefinitionItemRequestBuilder.php index a5dd2b76444..1573cbfeb1c 100644 --- a/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/CustomSecurityAttributeDefinitionItemRequestBuilder.php +++ b/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/CustomSecurityAttributeDefinitionItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?CustomSecurityAttributeDefinitionItemRequestBuilderDelet } /** - * Read the properties and relationships of a customSecurityAttributeDefinition object. + * Read the properties and relationships of a customSecurityAttributeDefinition object. This API is supported in the following national cloud deployments. * @param CustomSecurityAttributeDefinitionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/customsecurityattributedefinition-get?view=graph-rest-1.0 Find more info here @@ -77,7 +77,7 @@ public function get(?CustomSecurityAttributeDefinitionItemRequestBuilderGetReque } /** - * Update the properties of a customSecurityAttributeDefinition object. + * Update the properties of a customSecurityAttributeDefinition object. This API is supported in the following national cloud deployments. * @param CustomSecurityAttributeDefinition $body The request body * @param CustomSecurityAttributeDefinitionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -114,7 +114,7 @@ public function toDeleteRequestInformation(?CustomSecurityAttributeDefinitionIte } /** - * Read the properties and relationships of a customSecurityAttributeDefinition object. + * Read the properties and relationships of a customSecurityAttributeDefinition object. This API is supported in the following national cloud deployments. * @param CustomSecurityAttributeDefinitionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -135,7 +135,7 @@ public function toGetRequestInformation(?CustomSecurityAttributeDefinitionItemRe } /** - * Update the properties of a customSecurityAttributeDefinition object. + * Update the properties of a customSecurityAttributeDefinition object. This API is supported in the following national cloud deployments. * @param CustomSecurityAttributeDefinition $body The request body * @param CustomSecurityAttributeDefinitionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/CustomSecurityAttributeDefinitionItemRequestBuilderGetQueryParameters.php b/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/CustomSecurityAttributeDefinitionItemRequestBuilderGetQueryParameters.php index 6fecf3ee9e6..6933ab014dc 100644 --- a/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/CustomSecurityAttributeDefinitionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/CustomSecurityAttributeDefinitionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a customSecurityAttributeDefinition object. + * Read the properties and relationships of a customSecurityAttributeDefinition object. This API is supported in the following national cloud deployments. */ class CustomSecurityAttributeDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilder.php b/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilder.php index 5136a23f425..255779834a2 100644 --- a/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilder.php @@ -6,9 +6,6 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\Directory\DeletedItems\Count\CountRequestBuilder; -use Microsoft\Graph\Generated\Directory\DeletedItems\Delta\DeltaRequestBuilder; -use Microsoft\Graph\Generated\Directory\DeletedItems\GetAvailableExtensionProperties\GetAvailableExtensionPropertiesRequestBuilder; -use Microsoft\Graph\Generated\Directory\DeletedItems\GetByIds\GetByIdsRequestBuilder; use Microsoft\Graph\Generated\Directory\DeletedItems\GraphAdministrativeUnit\GraphAdministrativeUnitRequestBuilder; use Microsoft\Graph\Generated\Directory\DeletedItems\GraphApplication\GraphApplicationRequestBuilder; use Microsoft\Graph\Generated\Directory\DeletedItems\GraphDevice\GraphDeviceRequestBuilder; @@ -16,8 +13,6 @@ use Microsoft\Graph\Generated\Directory\DeletedItems\GraphServicePrincipal\GraphServicePrincipalRequestBuilder; use Microsoft\Graph\Generated\Directory\DeletedItems\GraphUser\GraphUserRequestBuilder; use Microsoft\Graph\Generated\Directory\DeletedItems\Item\DirectoryObjectItemRequestBuilder; -use Microsoft\Graph\Generated\Directory\DeletedItems\ValidateProperties\ValidatePropertiesRequestBuilder; -use Microsoft\Graph\Generated\Models\DirectoryObject; use Microsoft\Graph\Generated\Models\DirectoryObjectCollectionResponse; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -37,27 +32,6 @@ public function count(): CountRequestBuilder { return new CountRequestBuilder($this->pathParameters, $this->requestAdapter); } - /** - * Provides operations to call the delta method. - */ - public function delta(): DeltaRequestBuilder { - return new DeltaRequestBuilder($this->pathParameters, $this->requestAdapter); - } - - /** - * Provides operations to call the getAvailableExtensionProperties method. - */ - public function getAvailableExtensionProperties(): GetAvailableExtensionPropertiesRequestBuilder { - return new GetAvailableExtensionPropertiesRequestBuilder($this->pathParameters, $this->requestAdapter); - } - - /** - * Provides operations to call the getByIds method. - */ - public function getByIds(): GetByIdsRequestBuilder { - return new GetByIdsRequestBuilder($this->pathParameters, $this->requestAdapter); - } - /** * Casts the previous resource to administrativeUnit. */ @@ -100,13 +74,6 @@ public function graphUser(): GraphUserRequestBuilder { return new GraphUserRequestBuilder($this->pathParameters, $this->requestAdapter); } - /** - * Provides operations to call the validateProperties method. - */ - public function validateProperties(): ValidatePropertiesRequestBuilder { - return new ValidatePropertiesRequestBuilder($this->pathParameters, $this->requestAdapter); - } - /** * Provides operations to manage the deletedItems property of the microsoft.graph.directory entity. * @param string $directoryObjectId The unique identifier of directoryObject @@ -133,7 +100,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 application, group, servicePrincipal, administrative unit, or user object from deleted items. This API is supported in the following national cloud deployments. * @param DeletedItemsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -151,26 +118,7 @@ public function get(?DeletedItemsRequestBuilderGetRequestConfiguration $requestC } /** - * Create new navigation property to deletedItems for directory - * @param DirectoryObject $body The request body - * @param DeletedItemsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return Promise - */ - public function post(DirectoryObject $body, ?DeletedItemsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { - $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); - try { - $errorMappings = [ - '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], - '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], - ]; - return $this->requestAdapter->sendAsync($requestInfo, [DirectoryObject::class, 'createFromDiscriminatorValue'], $errorMappings); - } catch(Exception $ex) { - return new RejectedPromise($ex); - } - } - - /** - * 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 application, group, servicePrincipal, administrative unit, or user object from deleted items. This API is supported in the following national cloud deployments. * @param DeletedItemsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -190,26 +138,6 @@ public function toGetRequestInformation(?DeletedItemsRequestBuilderGetRequestCon return $requestInfo; } - /** - * Create new navigation property to deletedItems for directory - * @param DirectoryObject $body The request body - * @param DeletedItemsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return RequestInformation - */ - public function toPostRequestInformation(DirectoryObject $body, ?DeletedItemsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { - $requestInfo = new RequestInformation(); - $requestInfo->urlTemplate = $this->urlTemplate; - $requestInfo->pathParameters = $this->pathParameters; - $requestInfo->httpMethod = HttpMethod::POST; - $requestInfo->addHeader('Accept', "application/json"); - if ($requestConfiguration !== null) { - $requestInfo->addHeaders($requestConfiguration->headers); - $requestInfo->addRequestOptions(...$requestConfiguration->options); - } - $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. diff --git a/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilderGetQueryParameters.php b/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilderGetQueryParameters.php index 92f3694a99f..43c7064c615 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 application, group, servicePrincipal, administrative unit, or user object from deleted items. This API is supported in the following national cloud deployments. */ class DeletedItemsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilderPostRequestConfiguration.php b/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilderPostRequestConfiguration.php deleted file mode 100644 index f2f7c91d2ab..00000000000 --- a/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilderPostRequestConfiguration.php +++ /dev/null @@ -1,22 +0,0 @@ -|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/Directory/DeletedItems/Delta/DeltaRequestBuilder.php b/src/Generated/Directory/DeletedItems/Delta/DeltaRequestBuilder.php deleted file mode 100644 index a14b181ab2f..00000000000 --- a/src/Generated/Directory/DeletedItems/Delta/DeltaRequestBuilder.php +++ /dev/null @@ -1,81 +0,0 @@ -|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}/directory/deletedItems/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}'); - 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 - */ - public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { - $requestInfo = $this->toGetRequestInformation($requestConfiguration); - try { - $errorMappings = [ - '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], - '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], - ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); - } catch(Exception $ex) { - return new RejectedPromise($ex); - } - } - - /** - * 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; - $requestInfo->addHeader('Accept', "application/json"); - if ($requestConfiguration !== null) { - $requestInfo->addHeaders($requestConfiguration->headers); - if ($requestConfiguration->queryParameters !== null) { - $requestInfo->setQueryParameters($requestConfiguration->queryParameters); - } - $requestInfo->addRequestOptions(...$requestConfiguration->options); - } - 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/Directory/DeletedItems/Delta/DeltaRequestBuilderGetQueryParameters.php b/src/Generated/Directory/DeletedItems/Delta/DeltaRequestBuilderGetQueryParameters.php deleted file mode 100644 index 4bb0c872dbb..00000000000 --- a/src/Generated/Directory/DeletedItems/Delta/DeltaRequestBuilderGetQueryParameters.php +++ /dev/null @@ -1,74 +0,0 @@ -|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 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, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) { - $this->count = $count; - $this->filter = $filter; - $this->orderby = $orderby; - $this->search = $search; - $this->select = $select; - $this->skip = $skip; - $this->top = $top; - } - -} diff --git a/src/Generated/Directory/DeletedItems/Delta/DeltaRequestBuilderGetRequestConfiguration.php b/src/Generated/Directory/DeletedItems/Delta/DeltaRequestBuilderGetRequestConfiguration.php deleted file mode 100644 index 98e331ae05d..00000000000 --- a/src/Generated/Directory/DeletedItems/Delta/DeltaRequestBuilderGetRequestConfiguration.php +++ /dev/null @@ -1,44 +0,0 @@ -|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 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, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): DeltaRequestBuilderGetQueryParameters { - return new DeltaRequestBuilderGetQueryParameters($count, $filter, $orderby, $search, $select, $skip, $top); - } - -} diff --git a/src/Generated/Directory/DeletedItems/Delta/DeltaResponse.php b/src/Generated/Directory/DeletedItems/Delta/DeltaResponse.php deleted file mode 100644 index d1b7a0bbe5b..00000000000 --- a/src/Generated/Directory/DeletedItems/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/Directory/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.php b/src/Generated/Directory/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.php deleted file mode 100644 index 4db8fa0eec0..00000000000 --- a/src/Generated/Directory/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.php +++ /dev/null @@ -1,114 +0,0 @@ -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 GetAvailableExtensionPropertiesPostRequestBody - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): GetAvailableExtensionPropertiesPostRequestBody { - return new GetAvailableExtensionPropertiesPostRequestBody(); - } - - /** - * 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 [ - 'isSyncedFromOnPremises' => fn(ParseNode $n) => $o->setIsSyncedFromOnPremises($n->getBooleanValue()), - ]; - } - - /** - * Gets the isSyncedFromOnPremises property value. The isSyncedFromOnPremises property - * @return bool|null - */ - public function getIsSyncedFromOnPremises(): ?bool { - $val = $this->getBackingStore()->get('isSyncedFromOnPremises'); - if (is_null($val) || is_bool($val)) { - return $val; - } - throw new \UnexpectedValueException("Invalid type found in backing store for 'isSyncedFromOnPremises'"); - } - - /** - * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { - $writer->writeBooleanValue('isSyncedFromOnPremises', $this->getIsSyncedFromOnPremises()); - $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 isSyncedFromOnPremises property value. The isSyncedFromOnPremises property - * @param bool|null $value Value to set for the isSyncedFromOnPremises property. - */ - public function setIsSyncedFromOnPremises(?bool $value): void { - $this->getBackingStore()->set('isSyncedFromOnPremises', $value); - } - -} diff --git a/src/Generated/Directory/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/Directory/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php deleted file mode 100644 index 9690b3f79aa..00000000000 --- a/src/Generated/Directory/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ /dev/null @@ -1,82 +0,0 @@ -|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}/directory/deletedItems/getAvailableExtensionProperties'); - if (is_array($pathParametersOrRawUrl)) { - $this->pathParameters = $pathParametersOrRawUrl; - } else { - $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; - } - } - - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization - * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body - * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return Promise - * @link https://learn.microsoft.com/graph/api/directoryobject-getavailableextensionproperties?view=graph-rest-1.0 Find more info here - */ - public function post(GetAvailableExtensionPropertiesPostRequestBody $body, ?GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { - $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); - try { - $errorMappings = [ - '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], - '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], - ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesResponse::class, 'createFromDiscriminatorValue'], $errorMappings); - } catch(Exception $ex) { - return new RejectedPromise($ex); - } - } - - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization - * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body - * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return RequestInformation - */ - public function toPostRequestInformation(GetAvailableExtensionPropertiesPostRequestBody $body, ?GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { - $requestInfo = new RequestInformation(); - $requestInfo->urlTemplate = $this->urlTemplate; - $requestInfo->pathParameters = $this->pathParameters; - $requestInfo->httpMethod = HttpMethod::POST; - $requestInfo->addHeader('Accept', "application/json"); - if ($requestConfiguration !== null) { - $requestInfo->addHeaders($requestConfiguration->headers); - $requestInfo->addRequestOptions(...$requestConfiguration->options); - } - $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 GetAvailableExtensionPropertiesRequestBuilder - */ - public function withUrl(string $rawUrl): GetAvailableExtensionPropertiesRequestBuilder { - return new GetAvailableExtensionPropertiesRequestBuilder($rawUrl, $this->requestAdapter); - } - -} diff --git a/src/Generated/Directory/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration.php b/src/Generated/Directory/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration.php deleted file mode 100644 index 33abfa23c24..00000000000 --- a/src/Generated/Directory/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration.php +++ /dev/null @@ -1,22 +0,0 @@ -|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/Directory/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php b/src/Generated/Directory/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php deleted file mode 100644 index f263906da13..00000000000 --- a/src/Generated/Directory/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/Directory/DeletedItems/GetByIds/GetByIdsPostRequestBody.php b/src/Generated/Directory/DeletedItems/GetByIds/GetByIdsPostRequestBody.php deleted file mode 100644 index 65f129b6157..00000000000 --- a/src/Generated/Directory/DeletedItems/GetByIds/GetByIdsPostRequestBody.php +++ /dev/null @@ -1,155 +0,0 @@ -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 GetByIdsPostRequestBody - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): GetByIdsPostRequestBody { - return new GetByIdsPostRequestBody(); - } - - /** - * 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 [ - 'ids' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setIds($val); - }, - 'types' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setTypes($val); - }, - ]; - } - - /** - * Gets the ids property value. The ids property - * @return array|null - */ - public function getIds(): ?array { - $val = $this->getBackingStore()->get('ids'); - 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 'ids'"); - } - - /** - * Gets the types property value. The types property - * @return array|null - */ - public function getTypes(): ?array { - $val = $this->getBackingStore()->get('types'); - 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 'types'"); - } - - /** - * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { - $writer->writeCollectionOfPrimitiveValues('ids', $this->getIds()); - $writer->writeCollectionOfPrimitiveValues('types', $this->getTypes()); - $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 ids property value. The ids property - * @param array|null $value Value to set for the ids property. - */ - public function setIds(?array $value): void { - $this->getBackingStore()->set('ids', $value); - } - - /** - * Sets the types property value. The types property - * @param array|null $value Value to set for the types property. - */ - public function setTypes(?array $value): void { - $this->getBackingStore()->set('types', $value); - } - -} diff --git a/src/Generated/Directory/DeletedItems/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/Directory/DeletedItems/GetByIds/GetByIdsRequestBuilder.php deleted file mode 100644 index f6d157b2bb9..00000000000 --- a/src/Generated/Directory/DeletedItems/GetByIds/GetByIdsRequestBuilder.php +++ /dev/null @@ -1,82 +0,0 @@ -|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}/directory/deletedItems/getByIds'); - if (is_array($pathParametersOrRawUrl)) { - $this->pathParameters = $pathParametersOrRawUrl; - } else { - $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; - } - } - - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param GetByIdsPostRequestBody $body The request body - * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return Promise - * @link https://learn.microsoft.com/graph/api/directoryobject-getbyids?view=graph-rest-1.0 Find more info here - */ - public function post(GetByIdsPostRequestBody $body, ?GetByIdsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { - $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); - try { - $errorMappings = [ - '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], - '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], - ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); - } catch(Exception $ex) { - return new RejectedPromise($ex); - } - } - - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param GetByIdsPostRequestBody $body The request body - * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return RequestInformation - */ - public function toPostRequestInformation(GetByIdsPostRequestBody $body, ?GetByIdsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { - $requestInfo = new RequestInformation(); - $requestInfo->urlTemplate = $this->urlTemplate; - $requestInfo->pathParameters = $this->pathParameters; - $requestInfo->httpMethod = HttpMethod::POST; - $requestInfo->addHeader('Accept', "application/json"); - if ($requestConfiguration !== null) { - $requestInfo->addHeaders($requestConfiguration->headers); - $requestInfo->addRequestOptions(...$requestConfiguration->options); - } - $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 GetByIdsRequestBuilder - */ - public function withUrl(string $rawUrl): GetByIdsRequestBuilder { - return new GetByIdsRequestBuilder($rawUrl, $this->requestAdapter); - } - -} diff --git a/src/Generated/Directory/DeletedItems/GetByIds/GetByIdsRequestBuilderPostRequestConfiguration.php b/src/Generated/Directory/DeletedItems/GetByIds/GetByIdsRequestBuilderPostRequestConfiguration.php deleted file mode 100644 index b7874606708..00000000000 --- a/src/Generated/Directory/DeletedItems/GetByIds/GetByIdsRequestBuilderPostRequestConfiguration.php +++ /dev/null @@ -1,22 +0,0 @@ -|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/Directory/DeletedItems/GetByIds/GetByIdsResponse.php b/src/Generated/Directory/DeletedItems/GetByIds/GetByIdsResponse.php deleted file mode 100644 index 9157f352d58..00000000000 --- a/src/Generated/Directory/DeletedItems/GetByIds/GetByIdsResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/Directory/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.php b/src/Generated/Directory/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.php deleted file mode 100644 index a0a6e5d0a15..00000000000 --- a/src/Generated/Directory/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.php +++ /dev/null @@ -1,124 +0,0 @@ -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 CheckMemberGroupsPostRequestBody - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): CheckMemberGroupsPostRequestBody { - return new CheckMemberGroupsPostRequestBody(); - } - - /** - * 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 [ - 'groupIds' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setGroupIds($val); - }, - ]; - } - - /** - * Gets the groupIds property value. The groupIds property - * @return array|null - */ - public function getGroupIds(): ?array { - $val = $this->getBackingStore()->get('groupIds'); - 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 'groupIds'"); - } - - /** - * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { - $writer->writeCollectionOfPrimitiveValues('groupIds', $this->getGroupIds()); - $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 groupIds property value. The groupIds property - * @param array|null $value Value to set for the groupIds property. - */ - public function setGroupIds(?array $value): void { - $this->getBackingStore()->set('groupIds', $value); - } - -} diff --git a/src/Generated/Directory/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php b/src/Generated/Directory/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php deleted file mode 100644 index 783c341fd44..00000000000 --- a/src/Generated/Directory/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php +++ /dev/null @@ -1,82 +0,0 @@ -|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}/directory/deletedItems/{directoryObject%2Did}/checkMemberGroups'); - if (is_array($pathParametersOrRawUrl)) { - $this->pathParameters = $pathParametersOrRawUrl; - } else { - $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; - } - } - - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param CheckMemberGroupsPostRequestBody $body The request body - * @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return Promise - * @link https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0 Find more info here - */ - public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { - $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); - try { - $errorMappings = [ - '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], - '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], - ]; - return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberGroupsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); - } catch(Exception $ex) { - return new RejectedPromise($ex); - } - } - - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param CheckMemberGroupsPostRequestBody $body The request body - * @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return RequestInformation - */ - public function toPostRequestInformation(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { - $requestInfo = new RequestInformation(); - $requestInfo->urlTemplate = $this->urlTemplate; - $requestInfo->pathParameters = $this->pathParameters; - $requestInfo->httpMethod = HttpMethod::POST; - $requestInfo->addHeader('Accept', "application/json"); - if ($requestConfiguration !== null) { - $requestInfo->addHeaders($requestConfiguration->headers); - $requestInfo->addRequestOptions(...$requestConfiguration->options); - } - $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 CheckMemberGroupsRequestBuilder - */ - public function withUrl(string $rawUrl): CheckMemberGroupsRequestBuilder { - return new CheckMemberGroupsRequestBuilder($rawUrl, $this->requestAdapter); - } - -} diff --git a/src/Generated/Directory/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilderPostRequestConfiguration.php b/src/Generated/Directory/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilderPostRequestConfiguration.php deleted file mode 100644 index cd7bace5741..00000000000 --- a/src/Generated/Directory/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilderPostRequestConfiguration.php +++ /dev/null @@ -1,22 +0,0 @@ -|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/Directory/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsResponse.php b/src/Generated/Directory/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsResponse.php deleted file mode 100644 index 3acce61431f..00000000000 --- a/src/Generated/Directory/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Directory/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.php b/src/Generated/Directory/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.php deleted file mode 100644 index 12475410f22..00000000000 --- a/src/Generated/Directory/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.php +++ /dev/null @@ -1,124 +0,0 @@ -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 CheckMemberObjectsPostRequestBody - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): CheckMemberObjectsPostRequestBody { - return new CheckMemberObjectsPostRequestBody(); - } - - /** - * 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 [ - 'ids' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setIds($val); - }, - ]; - } - - /** - * Gets the ids property value. The ids property - * @return array|null - */ - public function getIds(): ?array { - $val = $this->getBackingStore()->get('ids'); - 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 'ids'"); - } - - /** - * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { - $writer->writeCollectionOfPrimitiveValues('ids', $this->getIds()); - $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 ids property value. The ids property - * @param array|null $value Value to set for the ids property. - */ - public function setIds(?array $value): void { - $this->getBackingStore()->set('ids', $value); - } - -} diff --git a/src/Generated/Directory/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php b/src/Generated/Directory/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php deleted file mode 100644 index 32e118e08d4..00000000000 --- a/src/Generated/Directory/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php +++ /dev/null @@ -1,81 +0,0 @@ -|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}/directory/deletedItems/{directoryObject%2Did}/checkMemberObjects'); - if (is_array($pathParametersOrRawUrl)) { - $this->pathParameters = $pathParametersOrRawUrl; - } else { - $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; - } - } - - /** - * Invoke action checkMemberObjects - * @param CheckMemberObjectsPostRequestBody $body The request body - * @param CheckMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return Promise - */ - public function post(CheckMemberObjectsPostRequestBody $body, ?CheckMemberObjectsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { - $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); - try { - $errorMappings = [ - '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], - '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], - ]; - return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberObjectsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); - } catch(Exception $ex) { - return new RejectedPromise($ex); - } - } - - /** - * Invoke action checkMemberObjects - * @param CheckMemberObjectsPostRequestBody $body The request body - * @param CheckMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return RequestInformation - */ - public function toPostRequestInformation(CheckMemberObjectsPostRequestBody $body, ?CheckMemberObjectsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { - $requestInfo = new RequestInformation(); - $requestInfo->urlTemplate = $this->urlTemplate; - $requestInfo->pathParameters = $this->pathParameters; - $requestInfo->httpMethod = HttpMethod::POST; - $requestInfo->addHeader('Accept', "application/json"); - if ($requestConfiguration !== null) { - $requestInfo->addHeaders($requestConfiguration->headers); - $requestInfo->addRequestOptions(...$requestConfiguration->options); - } - $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 CheckMemberObjectsRequestBuilder - */ - public function withUrl(string $rawUrl): CheckMemberObjectsRequestBuilder { - return new CheckMemberObjectsRequestBuilder($rawUrl, $this->requestAdapter); - } - -} diff --git a/src/Generated/Directory/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilderPostRequestConfiguration.php b/src/Generated/Directory/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilderPostRequestConfiguration.php deleted file mode 100644 index 69388cf4d65..00000000000 --- a/src/Generated/Directory/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilderPostRequestConfiguration.php +++ /dev/null @@ -1,22 +0,0 @@ -|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/Directory/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsResponse.php b/src/Generated/Directory/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsResponse.php deleted file mode 100644 index 8ba2174dc15..00000000000 --- a/src/Generated/Directory/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilder.php index 1638f5848e3..01289bc8244 100644 --- a/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilder.php @@ -5,17 +5,12 @@ use Exception; use Http\Promise\Promise; use Http\Promise\RejectedPromise; -use Microsoft\Graph\Generated\Directory\DeletedItems\Item\CheckMemberGroups\CheckMemberGroupsRequestBuilder; -use Microsoft\Graph\Generated\Directory\DeletedItems\Item\CheckMemberObjects\CheckMemberObjectsRequestBuilder; -use Microsoft\Graph\Generated\Directory\DeletedItems\Item\GetMemberGroups\GetMemberGroupsRequestBuilder; -use Microsoft\Graph\Generated\Directory\DeletedItems\Item\GetMemberObjects\GetMemberObjectsRequestBuilder; use Microsoft\Graph\Generated\Directory\DeletedItems\Item\GraphAdministrativeUnit\GraphAdministrativeUnitRequestBuilder; use Microsoft\Graph\Generated\Directory\DeletedItems\Item\GraphApplication\GraphApplicationRequestBuilder; use Microsoft\Graph\Generated\Directory\DeletedItems\Item\GraphDevice\GraphDeviceRequestBuilder; use Microsoft\Graph\Generated\Directory\DeletedItems\Item\GraphGroup\GraphGroupRequestBuilder; use Microsoft\Graph\Generated\Directory\DeletedItems\Item\GraphServicePrincipal\GraphServicePrincipalRequestBuilder; use Microsoft\Graph\Generated\Directory\DeletedItems\Item\GraphUser\GraphUserRequestBuilder; -use Microsoft\Graph\Generated\Directory\DeletedItems\Item\Restore\RestoreRequestBuilder; use Microsoft\Graph\Generated\Models\DirectoryObject; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -28,34 +23,6 @@ */ class DirectoryObjectItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the checkMemberGroups method. - */ - public function checkMemberGroups(): CheckMemberGroupsRequestBuilder { - return new CheckMemberGroupsRequestBuilder($this->pathParameters, $this->requestAdapter); - } - - /** - * Provides operations to call the checkMemberObjects method. - */ - public function checkMemberObjects(): CheckMemberObjectsRequestBuilder { - return new CheckMemberObjectsRequestBuilder($this->pathParameters, $this->requestAdapter); - } - - /** - * Provides operations to call the getMemberGroups method. - */ - public function getMemberGroups(): GetMemberGroupsRequestBuilder { - return new GetMemberGroupsRequestBuilder($this->pathParameters, $this->requestAdapter); - } - - /** - * Provides operations to call the getMemberObjects method. - */ - public function getMemberObjects(): GetMemberObjectsRequestBuilder { - return new GetMemberObjectsRequestBuilder($this->pathParameters, $this->requestAdapter); - } - /** * Casts the previous resource to administrativeUnit. */ @@ -98,13 +65,6 @@ public function graphUser(): GraphUserRequestBuilder { return new GraphUserRequestBuilder($this->pathParameters, $this->requestAdapter); } - /** - * Provides operations to call the restore method. - */ - public function restore(): RestoreRequestBuilder { - return new RestoreRequestBuilder($this->pathParameters, $this->requestAdapter); - } - /** * Instantiates a new DirectoryObjectItemRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. @@ -120,7 +80,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Permanently delete a recently deleted application, group, servicePrincipal, or user object from deleted items. After an item is permanently deleted, it cannot be restored. Administrative units cannot be permanently deleted by using the deletedItems API. Soft-deleted administrative units will be permanently deleted 30 days after initial deletion unless they are restored. + * Permanently delete a recently deleted application, group, servicePrincipal, or user object from deleted items. After an item is permanently deleted, it cannot be restored. Administrative units cannot be permanently deleted by using the deletedItems API. Soft-deleted administrative units will be permanently deleted 30 days after initial deletion unless they are restored. This API is supported in the following national cloud deployments. * @param DirectoryObjectItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directory-deleteditems-delete?view=graph-rest-1.0 Find more info here @@ -139,7 +99,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 application, group, servicePrincipal, administrative unit, or user object from deleted items. This API is supported in the following national cloud deployments. * @param DirectoryObjectItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directory-deleteditems-get?view=graph-rest-1.0 Find more info here @@ -158,26 +118,7 @@ public function get(?DirectoryObjectItemRequestBuilderGetRequestConfiguration $r } /** - * Update the navigation property deletedItems in directory - * @param DirectoryObject $body The request body - * @param DirectoryObjectItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return Promise - */ - public function patch(DirectoryObject $body, ?DirectoryObjectItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { - $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); - try { - $errorMappings = [ - '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], - '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], - ]; - return $this->requestAdapter->sendAsync($requestInfo, [DirectoryObject::class, 'createFromDiscriminatorValue'], $errorMappings); - } catch(Exception $ex) { - return new RejectedPromise($ex); - } - } - - /** - * Permanently delete a recently deleted application, group, servicePrincipal, or user object from deleted items. After an item is permanently deleted, it cannot be restored. Administrative units cannot be permanently deleted by using the deletedItems API. Soft-deleted administrative units will be permanently deleted 30 days after initial deletion unless they are restored. + * Permanently delete a recently deleted application, group, servicePrincipal, or user object from deleted items. After an item is permanently deleted, it cannot be restored. Administrative units cannot be permanently deleted by using the deletedItems API. Soft-deleted administrative units will be permanently deleted 30 days after initial deletion unless they are restored. This API is supported in the following national cloud deployments. * @param DirectoryObjectItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -194,7 +135,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 application, group, servicePrincipal, administrative unit, or user object from deleted items. This API is supported in the following national cloud deployments. * @param DirectoryObjectItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -214,26 +155,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq return $requestInfo; } - /** - * Update the navigation property deletedItems in directory - * @param DirectoryObject $body The request body - * @param DirectoryObjectItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return RequestInformation - */ - public function toPatchRequestInformation(DirectoryObject $body, ?DirectoryObjectItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { - $requestInfo = new RequestInformation(); - $requestInfo->urlTemplate = $this->urlTemplate; - $requestInfo->pathParameters = $this->pathParameters; - $requestInfo->httpMethod = HttpMethod::PATCH; - $requestInfo->addHeader('Accept', "application/json"); - if ($requestConfiguration !== null) { - $requestInfo->addHeaders($requestConfiguration->headers); - $requestInfo->addRequestOptions(...$requestConfiguration->options); - } - $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. diff --git a/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php b/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php index 682a67df295..1f2a5dfe168 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 application, group, servicePrincipal, administrative unit, or user object from deleted items. This API is supported in the following national cloud deployments. */ class DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilderPatchRequestConfiguration.php deleted file mode 100644 index 14c2a7c5010..00000000000 --- a/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilderPatchRequestConfiguration.php +++ /dev/null @@ -1,22 +0,0 @@ -|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/Directory/DeletedItems/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.php b/src/Generated/Directory/DeletedItems/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.php deleted file mode 100644 index 18b0311d360..00000000000 --- a/src/Generated/Directory/DeletedItems/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.php +++ /dev/null @@ -1,114 +0,0 @@ -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 GetMemberGroupsPostRequestBody - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): GetMemberGroupsPostRequestBody { - return new GetMemberGroupsPostRequestBody(); - } - - /** - * 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 [ - 'securityEnabledOnly' => fn(ParseNode $n) => $o->setSecurityEnabledOnly($n->getBooleanValue()), - ]; - } - - /** - * Gets the securityEnabledOnly property value. The securityEnabledOnly property - * @return bool|null - */ - public function getSecurityEnabledOnly(): ?bool { - $val = $this->getBackingStore()->get('securityEnabledOnly'); - if (is_null($val) || is_bool($val)) { - return $val; - } - throw new \UnexpectedValueException("Invalid type found in backing store for 'securityEnabledOnly'"); - } - - /** - * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { - $writer->writeBooleanValue('securityEnabledOnly', $this->getSecurityEnabledOnly()); - $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 securityEnabledOnly property value. The securityEnabledOnly property - * @param bool|null $value Value to set for the securityEnabledOnly property. - */ - public function setSecurityEnabledOnly(?bool $value): void { - $this->getBackingStore()->set('securityEnabledOnly', $value); - } - -} diff --git a/src/Generated/Directory/DeletedItems/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/Directory/DeletedItems/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php deleted file mode 100644 index 004e02764e7..00000000000 --- a/src/Generated/Directory/DeletedItems/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ /dev/null @@ -1,82 +0,0 @@ -|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}/directory/deletedItems/{directoryObject%2Did}/getMemberGroups'); - if (is_array($pathParametersOrRawUrl)) { - $this->pathParameters = $pathParametersOrRawUrl; - } else { - $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; - } - } - - /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. - * @param GetMemberGroupsPostRequestBody $body The request body - * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return Promise - * @link https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0 Find more info here - */ - public function post(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { - $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); - try { - $errorMappings = [ - '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], - '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], - ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetMemberGroupsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); - } catch(Exception $ex) { - return new RejectedPromise($ex); - } - } - - /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. - * @param GetMemberGroupsPostRequestBody $body The request body - * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return RequestInformation - */ - public function toPostRequestInformation(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { - $requestInfo = new RequestInformation(); - $requestInfo->urlTemplate = $this->urlTemplate; - $requestInfo->pathParameters = $this->pathParameters; - $requestInfo->httpMethod = HttpMethod::POST; - $requestInfo->addHeader('Accept', "application/json"); - if ($requestConfiguration !== null) { - $requestInfo->addHeaders($requestConfiguration->headers); - $requestInfo->addRequestOptions(...$requestConfiguration->options); - } - $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 GetMemberGroupsRequestBuilder - */ - public function withUrl(string $rawUrl): GetMemberGroupsRequestBuilder { - return new GetMemberGroupsRequestBuilder($rawUrl, $this->requestAdapter); - } - -} diff --git a/src/Generated/Directory/DeletedItems/Item/GetMemberGroups/GetMemberGroupsRequestBuilderPostRequestConfiguration.php b/src/Generated/Directory/DeletedItems/Item/GetMemberGroups/GetMemberGroupsRequestBuilderPostRequestConfiguration.php deleted file mode 100644 index de40ae077f6..00000000000 --- a/src/Generated/Directory/DeletedItems/Item/GetMemberGroups/GetMemberGroupsRequestBuilderPostRequestConfiguration.php +++ /dev/null @@ -1,22 +0,0 @@ -|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/Directory/DeletedItems/Item/GetMemberGroups/GetMemberGroupsResponse.php b/src/Generated/Directory/DeletedItems/Item/GetMemberGroups/GetMemberGroupsResponse.php deleted file mode 100644 index 7fb4c504d40..00000000000 --- a/src/Generated/Directory/DeletedItems/Item/GetMemberGroups/GetMemberGroupsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Directory/DeletedItems/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.php b/src/Generated/Directory/DeletedItems/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.php deleted file mode 100644 index 405573b0bc2..00000000000 --- a/src/Generated/Directory/DeletedItems/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.php +++ /dev/null @@ -1,114 +0,0 @@ -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 GetMemberObjectsPostRequestBody - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): GetMemberObjectsPostRequestBody { - return new GetMemberObjectsPostRequestBody(); - } - - /** - * 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 [ - 'securityEnabledOnly' => fn(ParseNode $n) => $o->setSecurityEnabledOnly($n->getBooleanValue()), - ]; - } - - /** - * Gets the securityEnabledOnly property value. The securityEnabledOnly property - * @return bool|null - */ - public function getSecurityEnabledOnly(): ?bool { - $val = $this->getBackingStore()->get('securityEnabledOnly'); - if (is_null($val) || is_bool($val)) { - return $val; - } - throw new \UnexpectedValueException("Invalid type found in backing store for 'securityEnabledOnly'"); - } - - /** - * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { - $writer->writeBooleanValue('securityEnabledOnly', $this->getSecurityEnabledOnly()); - $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 securityEnabledOnly property value. The securityEnabledOnly property - * @param bool|null $value Value to set for the securityEnabledOnly property. - */ - public function setSecurityEnabledOnly(?bool $value): void { - $this->getBackingStore()->set('securityEnabledOnly', $value); - } - -} diff --git a/src/Generated/Directory/DeletedItems/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php b/src/Generated/Directory/DeletedItems/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php deleted file mode 100644 index d9a85e5d728..00000000000 --- a/src/Generated/Directory/DeletedItems/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php +++ /dev/null @@ -1,82 +0,0 @@ -|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}/directory/deletedItems/{directoryObject%2Did}/getMemberObjects'); - if (is_array($pathParametersOrRawUrl)) { - $this->pathParameters = $pathParametersOrRawUrl; - } else { - $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; - } - } - - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param GetMemberObjectsPostRequestBody $body The request body - * @param GetMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return Promise - * @link https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0 Find more info here - */ - public function post(GetMemberObjectsPostRequestBody $body, ?GetMemberObjectsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { - $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); - try { - $errorMappings = [ - '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], - '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], - ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetMemberObjectsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); - } catch(Exception $ex) { - return new RejectedPromise($ex); - } - } - - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param GetMemberObjectsPostRequestBody $body The request body - * @param GetMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return RequestInformation - */ - public function toPostRequestInformation(GetMemberObjectsPostRequestBody $body, ?GetMemberObjectsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { - $requestInfo = new RequestInformation(); - $requestInfo->urlTemplate = $this->urlTemplate; - $requestInfo->pathParameters = $this->pathParameters; - $requestInfo->httpMethod = HttpMethod::POST; - $requestInfo->addHeader('Accept', "application/json"); - if ($requestConfiguration !== null) { - $requestInfo->addHeaders($requestConfiguration->headers); - $requestInfo->addRequestOptions(...$requestConfiguration->options); - } - $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 GetMemberObjectsRequestBuilder - */ - public function withUrl(string $rawUrl): GetMemberObjectsRequestBuilder { - return new GetMemberObjectsRequestBuilder($rawUrl, $this->requestAdapter); - } - -} diff --git a/src/Generated/Directory/DeletedItems/Item/GetMemberObjects/GetMemberObjectsRequestBuilderPostRequestConfiguration.php b/src/Generated/Directory/DeletedItems/Item/GetMemberObjects/GetMemberObjectsRequestBuilderPostRequestConfiguration.php deleted file mode 100644 index 15cd7df7d5a..00000000000 --- a/src/Generated/Directory/DeletedItems/Item/GetMemberObjects/GetMemberObjectsRequestBuilderPostRequestConfiguration.php +++ /dev/null @@ -1,22 +0,0 @@ -|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/Directory/DeletedItems/Item/GetMemberObjects/GetMemberObjectsResponse.php b/src/Generated/Directory/DeletedItems/Item/GetMemberObjects/GetMemberObjectsResponse.php deleted file mode 100644 index b2d4ea8a233..00000000000 --- a/src/Generated/Directory/DeletedItems/Item/GetMemberObjects/GetMemberObjectsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Directory/DeletedItems/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Directory/DeletedItems/Item/Restore/RestoreRequestBuilder.php deleted file mode 100644 index 6d1b94c6392..00000000000 --- a/src/Generated/Directory/DeletedItems/Item/Restore/RestoreRequestBuilder.php +++ /dev/null @@ -1,80 +0,0 @@ -|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}/directory/deletedItems/{directoryObject%2Did}/restore'); - if (is_array($pathParametersOrRawUrl)) { - $this->pathParameters = $pathParametersOrRawUrl; - } else { - $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; - } - } - - /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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 - * @link https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0 Find more info here - */ - public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { - $requestInfo = $this->toPostRequestInformation($requestConfiguration); - try { - $errorMappings = [ - '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], - '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], - ]; - return $this->requestAdapter->sendAsync($requestInfo, [DirectoryObject::class, 'createFromDiscriminatorValue'], $errorMappings); - } catch(Exception $ex) { - return new RejectedPromise($ex); - } - } - - /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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 - */ - public function toPostRequestInformation(?RestoreRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { - $requestInfo = new RequestInformation(); - $requestInfo->urlTemplate = $this->urlTemplate; - $requestInfo->pathParameters = $this->pathParameters; - $requestInfo->httpMethod = HttpMethod::POST; - $requestInfo->addHeader('Accept', "application/json"); - if ($requestConfiguration !== null) { - $requestInfo->addHeaders($requestConfiguration->headers); - $requestInfo->addRequestOptions(...$requestConfiguration->options); - } - 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 RestoreRequestBuilder - */ - public function withUrl(string $rawUrl): RestoreRequestBuilder { - return new RestoreRequestBuilder($rawUrl, $this->requestAdapter); - } - -} diff --git a/src/Generated/Directory/DeletedItems/Item/Restore/RestoreRequestBuilderPostRequestConfiguration.php b/src/Generated/Directory/DeletedItems/Item/Restore/RestoreRequestBuilderPostRequestConfiguration.php deleted file mode 100644 index 99e931e8c22..00000000000 --- a/src/Generated/Directory/DeletedItems/Item/Restore/RestoreRequestBuilderPostRequestConfiguration.php +++ /dev/null @@ -1,22 +0,0 @@ -|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/Directory/DeletedItems/ValidateProperties/ValidatePropertiesPostRequestBody.php b/src/Generated/Directory/DeletedItems/ValidateProperties/ValidatePropertiesPostRequestBody.php deleted file mode 100644 index 56a0af4572a..00000000000 --- a/src/Generated/Directory/DeletedItems/ValidateProperties/ValidatePropertiesPostRequestBody.php +++ /dev/null @@ -1,180 +0,0 @@ -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 ValidatePropertiesPostRequestBody - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): ValidatePropertiesPostRequestBody { - return new ValidatePropertiesPostRequestBody(); - } - - /** - * 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. The displayName property - * @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 entityType property value. The entityType property - * @return string|null - */ - public function getEntityType(): ?string { - $val = $this->getBackingStore()->get('entityType'); - if (is_null($val) || is_string($val)) { - return $val; - } - throw new \UnexpectedValueException("Invalid type found in backing store for 'entityType'"); - } - - /** - * The deserialization information for the current model - * @return array - */ - public function getFieldDeserializers(): array { - $o = $this; - return [ - 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()), - 'entityType' => fn(ParseNode $n) => $o->setEntityType($n->getStringValue()), - 'mailNickname' => fn(ParseNode $n) => $o->setMailNickname($n->getStringValue()), - 'onBehalfOfUserId' => fn(ParseNode $n) => $o->setOnBehalfOfUserId($n->getStringValue()), - ]; - } - - /** - * Gets the mailNickname property value. The mailNickname property - * @return string|null - */ - public function getMailNickname(): ?string { - $val = $this->getBackingStore()->get('mailNickname'); - if (is_null($val) || is_string($val)) { - return $val; - } - throw new \UnexpectedValueException("Invalid type found in backing store for 'mailNickname'"); - } - - /** - * Gets the onBehalfOfUserId property value. The onBehalfOfUserId property - * @return string|null - */ - public function getOnBehalfOfUserId(): ?string { - $val = $this->getBackingStore()->get('onBehalfOfUserId'); - if (is_null($val) || is_string($val)) { - return $val; - } - throw new \UnexpectedValueException("Invalid type found in backing store for 'onBehalfOfUserId'"); - } - - /** - * 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('entityType', $this->getEntityType()); - $writer->writeStringValue('mailNickname', $this->getMailNickname()); - $writer->writeStringValue('onBehalfOfUserId', $this->getOnBehalfOfUserId()); - $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. The displayName property - * @param string|null $value Value to set for the displayName property. - */ - public function setDisplayName(?string $value): void { - $this->getBackingStore()->set('displayName', $value); - } - - /** - * Sets the entityType property value. The entityType property - * @param string|null $value Value to set for the entityType property. - */ - public function setEntityType(?string $value): void { - $this->getBackingStore()->set('entityType', $value); - } - - /** - * Sets the mailNickname property value. The mailNickname property - * @param string|null $value Value to set for the mailNickname property. - */ - public function setMailNickname(?string $value): void { - $this->getBackingStore()->set('mailNickname', $value); - } - - /** - * Sets the onBehalfOfUserId property value. The onBehalfOfUserId property - * @param string|null $value Value to set for the onBehalfOfUserId property. - */ - public function setOnBehalfOfUserId(?string $value): void { - $this->getBackingStore()->set('onBehalfOfUserId', $value); - } - -} diff --git a/src/Generated/Directory/DeletedItems/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/Directory/DeletedItems/ValidateProperties/ValidatePropertiesRequestBuilder.php deleted file mode 100644 index 5f6a249208b..00000000000 --- a/src/Generated/Directory/DeletedItems/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ /dev/null @@ -1,81 +0,0 @@ -|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}/directory/deletedItems/validateProperties'); - if (is_array($pathParametersOrRawUrl)) { - $this->pathParameters = $pathParametersOrRawUrl; - } else { - $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; - } - } - - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param ValidatePropertiesPostRequestBody $body The request body - * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return Promise - * @link https://learn.microsoft.com/graph/api/directoryobject-validateproperties?view=graph-rest-1.0 Find more info here - */ - public function post(ValidatePropertiesPostRequestBody $body, ?ValidatePropertiesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { - $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); - try { - $errorMappings = [ - '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], - '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], - ]; - return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); - } catch(Exception $ex) { - return new RejectedPromise($ex); - } - } - - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param ValidatePropertiesPostRequestBody $body The request body - * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return RequestInformation - */ - public function toPostRequestInformation(ValidatePropertiesPostRequestBody $body, ?ValidatePropertiesRequestBuilderPostRequestConfiguration $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->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 ValidatePropertiesRequestBuilder - */ - public function withUrl(string $rawUrl): ValidatePropertiesRequestBuilder { - return new ValidatePropertiesRequestBuilder($rawUrl, $this->requestAdapter); - } - -} diff --git a/src/Generated/Directory/DeletedItems/ValidateProperties/ValidatePropertiesRequestBuilderPostRequestConfiguration.php b/src/Generated/Directory/DeletedItems/ValidateProperties/ValidatePropertiesRequestBuilderPostRequestConfiguration.php deleted file mode 100644 index a879732df28..00000000000 --- a/src/Generated/Directory/DeletedItems/ValidateProperties/ValidatePropertiesRequestBuilderPostRequestConfiguration.php +++ /dev/null @@ -1,22 +0,0 @@ -|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/Directory/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesGetResponse.php b/src/Generated/Directory/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesGetResponse.php new file mode 100644 index 00000000000..4d98b806e02 --- /dev/null +++ b/src/Generated/Directory/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesGetResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Directory/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.php b/src/Generated/Directory/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.php index 3e02a905136..06f019c6ae9 100644 --- a/src/Generated/Directory/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.php +++ b/src/Generated/Directory/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?AvailableProviderTypesRequestBuilderGetRequestConfiguration '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [AvailableProviderTypesResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [AvailableProviderTypesGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Directory/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesResponse.php b/src/Generated/Directory/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesResponse.php deleted file mode 100644 index 052d428f6ae..00000000000 --- a/src/Generated/Directory/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Directory/FederationConfigurations/Item/IdentityProviderBaseItemRequestBuilder.php b/src/Generated/Directory/FederationConfigurations/Item/IdentityProviderBaseItemRequestBuilder.php index 838dc2a403c..989fadc6669 100644 --- a/src/Generated/Directory/FederationConfigurations/Item/IdentityProviderBaseItemRequestBuilder.php +++ b/src/Generated/Directory/FederationConfigurations/Item/IdentityProviderBaseItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a samlOrWsFedExternalDomainFederation object. + * Delete a samlOrWsFedExternalDomainFederation object. This API is supported in the following national cloud deployments. * @param IdentityProviderBaseItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/samlorwsfedexternaldomainfederation-delete?view=graph-rest-1.0 Find more info here @@ -88,7 +88,7 @@ public function patch(IdentityProviderBase $body, ?IdentityProviderBaseItemReque } /** - * Delete a samlOrWsFedExternalDomainFederation object. + * Delete a samlOrWsFedExternalDomainFederation object. This API is supported in the following national cloud deployments. * @param IdentityProviderBaseItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Directory/OnPremisesSynchronization/Item/OnPremisesDirectorySynchronizationItemRequestBuilder.php b/src/Generated/Directory/OnPremisesSynchronization/Item/OnPremisesDirectorySynchronizationItemRequestBuilder.php index 5891b63554e..6b4e013002a 100644 --- a/src/Generated/Directory/OnPremisesSynchronization/Item/OnPremisesDirectorySynchronizationItemRequestBuilder.php +++ b/src/Generated/Directory/OnPremisesSynchronization/Item/OnPremisesDirectorySynchronizationItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?OnPremisesDirectorySynchronizationItemRequestBuilderDele } /** - * Read the properties and relationships of an onPremisesDirectorySynchronization object. + * Read the properties and relationships of an onPremisesDirectorySynchronization object. This API is supported in the following national cloud deployments. * @param OnPremisesDirectorySynchronizationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/onpremisesdirectorysynchronization-get?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?OnPremisesDirectorySynchronizationItemRequestBuilderGetRequ } /** - * Update the properties of an onPremisesDirectorySynchronization object. + * Update the properties of an onPremisesDirectorySynchronization object. This API is supported in the following national cloud deployments. * @param OnPremisesDirectorySynchronization $body The request body * @param OnPremisesDirectorySynchronizationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?OnPremisesDirectorySynchronizationIt } /** - * Read the properties and relationships of an onPremisesDirectorySynchronization object. + * Read the properties and relationships of an onPremisesDirectorySynchronization object. This API is supported in the following national cloud deployments. * @param OnPremisesDirectorySynchronizationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -127,7 +127,7 @@ public function toGetRequestInformation(?OnPremisesDirectorySynchronizationItemR } /** - * Update the properties of an onPremisesDirectorySynchronization object. + * Update the properties of an onPremisesDirectorySynchronization object. This API is supported in the following national cloud deployments. * @param OnPremisesDirectorySynchronization $body The request body * @param OnPremisesDirectorySynchronizationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Directory/OnPremisesSynchronization/Item/OnPremisesDirectorySynchronizationItemRequestBuilderGetQueryParameters.php b/src/Generated/Directory/OnPremisesSynchronization/Item/OnPremisesDirectorySynchronizationItemRequestBuilderGetQueryParameters.php index 4e563428c8e..35f13d867e5 100644 --- a/src/Generated/Directory/OnPremisesSynchronization/Item/OnPremisesDirectorySynchronizationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Directory/OnPremisesSynchronization/Item/OnPremisesDirectorySynchronizationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of an onPremisesDirectorySynchronization object. + * Read the properties and relationships of an onPremisesDirectorySynchronization object. This API is supported in the following national cloud deployments. */ class OnPremisesDirectorySynchronizationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Directory/OnPremisesSynchronization/OnPremisesSynchronizationRequestBuilder.php b/src/Generated/Directory/OnPremisesSynchronization/OnPremisesSynchronizationRequestBuilder.php index 6bb39b07726..16eaa3e6073 100644 --- a/src/Generated/Directory/OnPremisesSynchronization/OnPremisesSynchronizationRequestBuilder.php +++ b/src/Generated/Directory/OnPremisesSynchronization/OnPremisesSynchronizationRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read the properties and relationships of an onPremisesDirectorySynchronization object. + * Read the properties and relationships of an onPremisesDirectorySynchronization object. This API is supported in the following national cloud deployments. * @param OnPremisesSynchronizationRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(OnPremisesDirectorySynchronization $body, ?OnPremisesSynchr } /** - * Read the properties and relationships of an onPremisesDirectorySynchronization object. + * Read the properties and relationships of an onPremisesDirectorySynchronization object. This API is supported in the following national cloud deployments. * @param OnPremisesSynchronizationRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Directory/OnPremisesSynchronization/OnPremisesSynchronizationRequestBuilderGetQueryParameters.php b/src/Generated/Directory/OnPremisesSynchronization/OnPremisesSynchronizationRequestBuilderGetQueryParameters.php index 73c1d64e5a4..443132d3ed2 100644 --- a/src/Generated/Directory/OnPremisesSynchronization/OnPremisesSynchronizationRequestBuilderGetQueryParameters.php +++ b/src/Generated/Directory/OnPremisesSynchronization/OnPremisesSynchronizationRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of an onPremisesDirectorySynchronization object. + * Read the properties and relationships of an onPremisesDirectorySynchronization object. This API is supported in the following national cloud deployments. */ class OnPremisesSynchronizationRequestBuilderGetQueryParameters { diff --git a/src/Generated/DirectoryObjects/Delta/DeltaGetResponse.php b/src/Generated/DirectoryObjects/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..cde72c52f8b --- /dev/null +++ b/src/Generated/DirectoryObjects/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([DirectoryObject::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, DirectoryObject::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/DirectoryObjects/Delta/DeltaRequestBuilder.php b/src/Generated/DirectoryObjects/Delta/DeltaRequestBuilder.php index f0fb6a67677..6ffad3a5793 100644 --- a/src/Generated/DirectoryObjects/Delta/DeltaRequestBuilder.php +++ b/src/Generated/DirectoryObjects/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/DirectoryObjects/Delta/DeltaResponse.php b/src/Generated/DirectoryObjects/Delta/DeltaResponse.php deleted file mode 100644 index e865e3def1c..00000000000 --- a/src/Generated/DirectoryObjects/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php b/src/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php new file mode 100644 index 00000000000..60aad789261 --- /dev/null +++ b/src/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index 32146e956a0..e9feaca5aef 100644 --- a/src/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetAvailableExtensionPropertiesPostRequestBody $body, ?GetA '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php b/src/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php deleted file mode 100644 index dac9aea3363..00000000000 --- a/src/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/DirectoryObjects/GetByIds/GetByIdsPostResponse.php b/src/Generated/DirectoryObjects/GetByIds/GetByIdsPostResponse.php new file mode 100644 index 00000000000..e11aef455e4 --- /dev/null +++ b/src/Generated/DirectoryObjects/GetByIds/GetByIdsPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/DirectoryObjects/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/DirectoryObjects/GetByIds/GetByIdsRequestBuilder.php index e55e7170389..c53a5c30051 100644 --- a/src/Generated/DirectoryObjects/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/DirectoryObjects/GetByIds/GetByIdsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetByIdsPostRequestBody $body, ?GetByIdsRequestBuilderPostR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DirectoryObjects/GetByIds/GetByIdsResponse.php b/src/Generated/DirectoryObjects/GetByIds/GetByIdsResponse.php deleted file mode 100644 index 2682b5680b6..00000000000 --- a/src/Generated/DirectoryObjects/GetByIds/GetByIdsResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php b/src/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php new file mode 100644 index 00000000000..8606714aeea --- /dev/null +++ b/src/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php b/src/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php index 08f7d7d15a9..23fbdedba44 100644 --- a/src/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php +++ b/src/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. * @param CheckMemberGroupsPostRequestBody $body The request body * @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberGroupsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberGroupsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. * @param CheckMemberGroupsPostRequestBody $body The request body * @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsResponse.php b/src/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsResponse.php deleted file mode 100644 index 0d8f6f5db5b..00000000000 --- a/src/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php b/src/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php new file mode 100644 index 00000000000..2de2298700d --- /dev/null +++ b/src/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php b/src/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php index 9e2a4852dc2..4bae6c8fe5f 100644 --- a/src/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php +++ b/src/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php @@ -43,7 +43,7 @@ public function post(CheckMemberObjectsPostRequestBody $body, ?CheckMemberObject '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberObjectsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberObjectsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsResponse.php b/src/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsResponse.php deleted file mode 100644 index 398897aa793..00000000000 --- a/src/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/DirectoryObjects/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/DirectoryObjects/Item/DirectoryObjectItemRequestBuilder.php index 703d9be7828..d8d9a7d997e 100644 --- a/src/Generated/DirectoryObjects/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/DirectoryObjects/Item/DirectoryObjectItemRequestBuilder.php @@ -72,7 +72,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a directory object, for example, a group, user, application, or service principal. + * Delete a directory object, for example, a group, user, application, or service principal. This API is supported in the following national cloud deployments. * @param DirectoryObjectItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directoryobject-delete?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function delete(?DirectoryObjectItemRequestBuilderDeleteRequestConfigurat } /** - * Retrieve the properties and relationships of a directoryObject object. + * Retrieve the properties and relationships of a directoryObject object. This API is supported in the following national cloud deployments. * @param DirectoryObjectItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directoryobject-get?view=graph-rest-1.0 Find more info here @@ -129,7 +129,7 @@ public function patch(DirectoryObject $body, ?DirectoryObjectItemRequestBuilderP } /** - * Delete a directory object, for example, a group, user, application, or service principal. + * Delete a directory object, for example, a group, user, application, or service principal. This API is supported in the following national cloud deployments. * @param DirectoryObjectItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -146,7 +146,7 @@ public function toDeleteRequestInformation(?DirectoryObjectItemRequestBuilderDel } /** - * Retrieve the properties and relationships of a directoryObject object. + * Retrieve the properties and relationships of a directoryObject object. This API is supported in the following national cloud deployments. * @param DirectoryObjectItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DirectoryObjects/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php b/src/Generated/DirectoryObjects/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php index deb730874d4..99581e94e04 100644 --- a/src/Generated/DirectoryObjects/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/DirectoryObjects/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a directoryObject object. + * Retrieve the properties and relationships of a directoryObject object. This API is supported in the following national cloud deployments. */ class DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsPostResponse.php b/src/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsPostResponse.php new file mode 100644 index 00000000000..b6b79c783c4 --- /dev/null +++ b/src/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index 22a11440f79..366c446c5fb 100644 --- a/src/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsReque '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetMemberGroupsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetMemberGroupsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsResponse.php b/src/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsResponse.php deleted file mode 100644 index d2f816b5056..00000000000 --- a/src/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsPostResponse.php b/src/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsPostResponse.php new file mode 100644 index 00000000000..63be99deeaa --- /dev/null +++ b/src/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php b/src/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php index 402b56591e5..654c4819e63 100644 --- a/src/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php +++ b/src/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. * @param GetMemberObjectsPostRequestBody $body The request body * @param GetMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetMemberObjectsPostRequestBody $body, ?GetMemberObjectsReq '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetMemberObjectsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetMemberObjectsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. * @param GetMemberObjectsPostRequestBody $body The request body * @param GetMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsResponse.php b/src/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsResponse.php deleted file mode 100644 index 9deff07f50b..00000000000 --- a/src/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/DirectoryObjects/Item/Restore/RestoreRequestBuilder.php b/src/Generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.php index 3ace3ecc00d..ec86a6d04fa 100644 --- a/src/Generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DirectoryObjects/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/DirectoryObjects/ValidateProperties/ValidatePropertiesRequestBuilder.php index 2b720270fe5..86ae523ff2b 100644 --- a/src/Generated/DirectoryObjects/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/DirectoryObjects/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ValidatePropertiesPostRequestBody $body, ?ValidatePropertie } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DirectoryRoleTemplates/Delta/DeltaGetResponse.php b/src/Generated/DirectoryRoleTemplates/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..2c505d50184 --- /dev/null +++ b/src/Generated/DirectoryRoleTemplates/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([DirectoryObject::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, DirectoryObject::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/DirectoryRoleTemplates/Delta/DeltaRequestBuilder.php b/src/Generated/DirectoryRoleTemplates/Delta/DeltaRequestBuilder.php index db2ddbb72fe..d397a8274ce 100644 --- a/src/Generated/DirectoryRoleTemplates/Delta/DeltaRequestBuilder.php +++ b/src/Generated/DirectoryRoleTemplates/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/DirectoryRoleTemplates/Delta/DeltaResponse.php b/src/Generated/DirectoryRoleTemplates/Delta/DeltaResponse.php deleted file mode 100644 index 0e7fadb3bb1..00000000000 --- a/src/Generated/DirectoryRoleTemplates/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilder.php b/src/Generated/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilder.php index 2cd8d7ffd81..518f140bac3 100644 --- a/src/Generated/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilder.php +++ b/src/Generated/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilder.php @@ -85,7 +85,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of directoryRoleTemplate objects. + * Retrieve a list of directoryRoleTemplate objects. This API is supported in the following national cloud deployments. * @param DirectoryRoleTemplatesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directoryroletemplate-list?view=graph-rest-1.0 Find more info here @@ -123,7 +123,7 @@ public function post(DirectoryRoleTemplate $body, ?DirectoryRoleTemplatesRequest } /** - * Retrieve a list of directoryRoleTemplate objects. + * Retrieve a list of directoryRoleTemplate objects. This API is supported in the following national cloud deployments. * @param DirectoryRoleTemplatesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilderGetQueryParameters.php b/src/Generated/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilderGetQueryParameters.php index a4d97c08240..1b59f74a3e8 100644 --- a/src/Generated/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilderGetQueryParameters.php +++ b/src/Generated/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of directoryRoleTemplate objects. + * Retrieve a list of directoryRoleTemplate objects. This API is supported in the following national cloud deployments. */ class DirectoryRoleTemplatesRequestBuilderGetQueryParameters { diff --git a/src/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php b/src/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php new file mode 100644 index 00000000000..983aa21bfc8 --- /dev/null +++ b/src/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index d92d3609b78..856dfa0f33d 100644 --- a/src/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetAvailableExtensionPropertiesPostRequestBody $body, ?GetA '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php b/src/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php deleted file mode 100644 index 05fbd152b65..00000000000 --- a/src/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/DirectoryRoleTemplates/GetByIds/GetByIdsPostResponse.php b/src/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsPostResponse.php new file mode 100644 index 00000000000..e842d94abda --- /dev/null +++ b/src/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/DirectoryRoleTemplates/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsRequestBuilder.php index 0a2991edbbc..e620a6e955b 100644 --- a/src/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetByIdsPostRequestBody $body, ?GetByIdsRequestBuilderPostR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsResponse.php b/src/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsResponse.php deleted file mode 100644 index b85ae0f17e5..00000000000 --- a/src/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php b/src/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php new file mode 100644 index 00000000000..407fc270db0 --- /dev/null +++ b/src/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php b/src/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php index 76d3dccdf4b..700d4b58420 100644 --- a/src/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php +++ b/src/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. * @param CheckMemberGroupsPostRequestBody $body The request body * @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberGroupsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberGroupsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. * @param CheckMemberGroupsPostRequestBody $body The request body * @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsResponse.php b/src/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsResponse.php deleted file mode 100644 index 2011f1b9af2..00000000000 --- a/src/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php b/src/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php new file mode 100644 index 00000000000..4c043f6e466 --- /dev/null +++ b/src/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php b/src/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php index efaca3623e0..58826f8fbb6 100644 --- a/src/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php +++ b/src/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php @@ -43,7 +43,7 @@ public function post(CheckMemberObjectsPostRequestBody $body, ?CheckMemberObject '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberObjectsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberObjectsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsResponse.php b/src/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsResponse.php deleted file mode 100644 index 6ce2d2ef03e..00000000000 --- a/src/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/DirectoryRoleTemplates/Item/DirectoryRoleTemplateItemRequestBuilder.php b/src/Generated/DirectoryRoleTemplates/Item/DirectoryRoleTemplateItemRequestBuilder.php index cef4e777530..6504cb4364e 100644 --- a/src/Generated/DirectoryRoleTemplates/Item/DirectoryRoleTemplateItemRequestBuilder.php +++ b/src/Generated/DirectoryRoleTemplates/Item/DirectoryRoleTemplateItemRequestBuilder.php @@ -90,7 +90,7 @@ public function delete(?DirectoryRoleTemplateItemRequestBuilderDeleteRequestConf } /** - * Retrieve the properties and relationships of a directoryroletemplate object. + * Retrieve the properties and relationships of a directoryroletemplate object. This API is supported in the following national cloud deployments. * @param DirectoryRoleTemplateItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directoryroletemplate-get?view=graph-rest-1.0 Find more info here @@ -145,7 +145,7 @@ public function toDeleteRequestInformation(?DirectoryRoleTemplateItemRequestBuil } /** - * Retrieve the properties and relationships of a directoryroletemplate object. + * Retrieve the properties and relationships of a directoryroletemplate object. This API is supported in the following national cloud deployments. * @param DirectoryRoleTemplateItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DirectoryRoleTemplates/Item/DirectoryRoleTemplateItemRequestBuilderGetQueryParameters.php b/src/Generated/DirectoryRoleTemplates/Item/DirectoryRoleTemplateItemRequestBuilderGetQueryParameters.php index bd3a1bb0a13..77e26a5ce8a 100644 --- a/src/Generated/DirectoryRoleTemplates/Item/DirectoryRoleTemplateItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/DirectoryRoleTemplates/Item/DirectoryRoleTemplateItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a directoryroletemplate object. + * Retrieve the properties and relationships of a directoryroletemplate object. This API is supported in the following national cloud deployments. */ class DirectoryRoleTemplateItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.php b/src/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.php new file mode 100644 index 00000000000..12434266636 --- /dev/null +++ b/src/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index 846d8cdb11c..06a8f6ecd22 100644 --- a/src/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsReque '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetMemberGroupsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetMemberGroupsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsResponse.php b/src/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsResponse.php deleted file mode 100644 index 208e9cda020..00000000000 --- a/src/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.php b/src/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.php new file mode 100644 index 00000000000..76a30f74340 --- /dev/null +++ b/src/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php b/src/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php index c3edf34c45c..e4530d71935 100644 --- a/src/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php +++ b/src/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. * @param GetMemberObjectsPostRequestBody $body The request body * @param GetMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetMemberObjectsPostRequestBody $body, ?GetMemberObjectsReq '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetMemberObjectsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetMemberObjectsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. * @param GetMemberObjectsPostRequestBody $body The request body * @param GetMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsResponse.php b/src/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsResponse.php deleted file mode 100644 index ac07d3e0cce..00000000000 --- a/src/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.php b/src/Generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.php index 5607c29a201..a4a348159c5 100644 --- a/src/Generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DirectoryRoleTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/DirectoryRoleTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.php index 9a5edd57555..288de0e5bd2 100644 --- a/src/Generated/DirectoryRoleTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/DirectoryRoleTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ValidatePropertiesPostRequestBody $body, ?ValidatePropertie } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DirectoryRoles/Delta/DeltaGetResponse.php b/src/Generated/DirectoryRoles/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..3660ae82c70 --- /dev/null +++ b/src/Generated/DirectoryRoles/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([DirectoryRole::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, DirectoryRole::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/DirectoryRoles/Delta/DeltaRequestBuilder.php b/src/Generated/DirectoryRoles/Delta/DeltaRequestBuilder.php index 6622b93f19b..2d9f18d2bad 100644 --- a/src/Generated/DirectoryRoles/Delta/DeltaRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/DirectoryRoles/Delta/DeltaResponse.php b/src/Generated/DirectoryRoles/Delta/DeltaResponse.php deleted file mode 100644 index 6543ca9be26..00000000000 --- a/src/Generated/DirectoryRoles/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryRole::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, DirectoryRole::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/DirectoryRoles/DirectoryRolesRequestBuilder.php b/src/Generated/DirectoryRoles/DirectoryRolesRequestBuilder.php index b0da512da50..b778cfa2b3b 100644 --- a/src/Generated/DirectoryRoles/DirectoryRolesRequestBuilder.php +++ b/src/Generated/DirectoryRoles/DirectoryRolesRequestBuilder.php @@ -85,7 +85,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Azure portal, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Azure AD, use List directoryRoleTemplates. + * List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Microsoft Entra admin center, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Azure AD, use List directoryRoleTemplates. This API is supported in the following national cloud deployments. * @param DirectoryRolesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directoryrole-list?view=graph-rest-1.0 Find more info here @@ -104,7 +104,7 @@ public function get(?DirectoryRolesRequestBuilderGetRequestConfiguration $reques } /** - * Activate a directory role. To read a directory role or update its members, it must first be activated in the tenant. The Company Administrators and the implicit user directory roles (User, Guest User, and Restricted Guest User roles) are activated by default. To access and assign members to other directory roles, you must first activate it with its corresponding directory role template ID. + * Activate a directory role. To read a directory role or update its members, it must first be activated in the tenant. The Company Administrators and the implicit user directory roles (User, Guest User, and Restricted Guest User roles) are activated by default. To access and assign members to other directory roles, you must first activate it with its corresponding directory role template ID. This API is supported in the following national cloud deployments. * @param DirectoryRole $body The request body * @param DirectoryRolesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -124,7 +124,7 @@ public function post(DirectoryRole $body, ?DirectoryRolesRequestBuilderPostReque } /** - * List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Azure portal, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Azure AD, use List directoryRoleTemplates. + * List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Microsoft Entra admin center, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Azure AD, use List directoryRoleTemplates. This API is supported in the following national cloud deployments. * @param DirectoryRolesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -145,7 +145,7 @@ public function toGetRequestInformation(?DirectoryRolesRequestBuilderGetRequestC } /** - * Activate a directory role. To read a directory role or update its members, it must first be activated in the tenant. The Company Administrators and the implicit user directory roles (User, Guest User, and Restricted Guest User roles) are activated by default. To access and assign members to other directory roles, you must first activate it with its corresponding directory role template ID. + * Activate a directory role. To read a directory role or update its members, it must first be activated in the tenant. The Company Administrators and the implicit user directory roles (User, Guest User, and Restricted Guest User roles) are activated by default. To access and assign members to other directory roles, you must first activate it with its corresponding directory role template ID. This API is supported in the following national cloud deployments. * @param DirectoryRole $body The request body * @param DirectoryRolesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DirectoryRoles/DirectoryRolesRequestBuilderGetQueryParameters.php b/src/Generated/DirectoryRoles/DirectoryRolesRequestBuilderGetQueryParameters.php index 48b1f0728ed..73b3a3f5178 100644 --- a/src/Generated/DirectoryRoles/DirectoryRolesRequestBuilderGetQueryParameters.php +++ b/src/Generated/DirectoryRoles/DirectoryRolesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Azure portal, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Azure AD, use List directoryRoleTemplates. + * List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Microsoft Entra admin center, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Azure AD, use List directoryRoleTemplates. This API is supported in the following national cloud deployments. */ class DirectoryRolesRequestBuilderGetQueryParameters { diff --git a/src/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php b/src/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php new file mode 100644 index 00000000000..8b939012a07 --- /dev/null +++ b/src/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index b43aada8ab2..f8fa051efc0 100644 --- a/src/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetAvailableExtensionPropertiesPostRequestBody $body, ?GetA '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php b/src/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php deleted file mode 100644 index 0736a54ec8f..00000000000 --- a/src/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/DirectoryRoles/GetByIds/GetByIdsPostResponse.php b/src/Generated/DirectoryRoles/GetByIds/GetByIdsPostResponse.php new file mode 100644 index 00000000000..1560de7f03c --- /dev/null +++ b/src/Generated/DirectoryRoles/GetByIds/GetByIdsPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/DirectoryRoles/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/DirectoryRoles/GetByIds/GetByIdsRequestBuilder.php index 9265406c905..d0622555eda 100644 --- a/src/Generated/DirectoryRoles/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/DirectoryRoles/GetByIds/GetByIdsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetByIdsPostRequestBody $body, ?GetByIdsRequestBuilderPostR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DirectoryRoles/GetByIds/GetByIdsResponse.php b/src/Generated/DirectoryRoles/GetByIds/GetByIdsResponse.php deleted file mode 100644 index 680695aaa64..00000000000 --- a/src/Generated/DirectoryRoles/GetByIds/GetByIdsResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php b/src/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php new file mode 100644 index 00000000000..e08ab89cc7f --- /dev/null +++ b/src/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php b/src/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php index bd45bfb4fa7..6ee4019b350 100644 --- a/src/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. * @param CheckMemberGroupsPostRequestBody $body The request body * @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberGroupsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberGroupsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. * @param CheckMemberGroupsPostRequestBody $body The request body * @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsResponse.php b/src/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsResponse.php deleted file mode 100644 index a27ca5472c5..00000000000 --- a/src/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php b/src/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php new file mode 100644 index 00000000000..ed60a06c00c --- /dev/null +++ b/src/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php b/src/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php index 2d156ef3173..b11ed8c2f5c 100644 --- a/src/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php @@ -43,7 +43,7 @@ public function post(CheckMemberObjectsPostRequestBody $body, ?CheckMemberObject '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberObjectsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberObjectsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsResponse.php b/src/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsResponse.php deleted file mode 100644 index e8b052b6417..00000000000 --- a/src/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/DirectoryRoles/Item/DirectoryRoleItemRequestBuilder.php b/src/Generated/DirectoryRoles/Item/DirectoryRoleItemRequestBuilder.php index bd012b48909..ae2a403e020 100644 --- a/src/Generated/DirectoryRoles/Item/DirectoryRoleItemRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/DirectoryRoleItemRequestBuilder.php @@ -106,7 +106,7 @@ public function delete(?DirectoryRoleItemRequestBuilderDeleteRequestConfiguratio } /** - * Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + * Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. This API is supported in the following national cloud deployments. * @param DirectoryRoleItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directoryrole-get?view=graph-rest-1.0 Find more info here @@ -161,7 +161,7 @@ public function toDeleteRequestInformation(?DirectoryRoleItemRequestBuilderDelet } /** - * Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + * Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. This API is supported in the following national cloud deployments. * @param DirectoryRoleItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DirectoryRoles/Item/DirectoryRoleItemRequestBuilderGetQueryParameters.php b/src/Generated/DirectoryRoles/Item/DirectoryRoleItemRequestBuilderGetQueryParameters.php index 9447d458680..9d50065bedb 100644 --- a/src/Generated/DirectoryRoles/Item/DirectoryRoleItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/DirectoryRoles/Item/DirectoryRoleItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + * Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. This API is supported in the following national cloud deployments. */ class DirectoryRoleItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsPostResponse.php b/src/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsPostResponse.php new file mode 100644 index 00000000000..064feddc864 --- /dev/null +++ b/src/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index 3998f7588d0..e256b9d3edd 100644 --- a/src/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsReque '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetMemberGroupsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetMemberGroupsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsResponse.php b/src/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsResponse.php deleted file mode 100644 index 67893b5f23f..00000000000 --- a/src/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsPostResponse.php b/src/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsPostResponse.php new file mode 100644 index 00000000000..759b9781400 --- /dev/null +++ b/src/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php b/src/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php index d2f8ea76e66..c0362e45f34 100644 --- a/src/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. * @param GetMemberObjectsPostRequestBody $body The request body * @param GetMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetMemberObjectsPostRequestBody $body, ?GetMemberObjectsReq '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetMemberObjectsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetMemberObjectsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. * @param GetMemberObjectsPostRequestBody $body The request body * @param GetMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsResponse.php b/src/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsResponse.php deleted file mode 100644 index de68c10be64..00000000000 --- a/src/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.php b/src/Generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.php index f28c8f88253..923b46a1762 100644 --- a/src/Generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + * Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directoryrole-delete-member?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function delete(?RefRequestBuilderDeleteRequestConfiguration $requestConf } /** - * Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + * Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilderDeleteQueryParameters.php b/src/Generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilderDeleteQueryParameters.php index d7176112267..3af8bfcac03 100644 --- a/src/Generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilderDeleteQueryParameters.php +++ b/src/Generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilderDeleteQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + * Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. This API is supported in the following national cloud deployments. */ class RefRequestBuilderDeleteQueryParameters { diff --git a/src/Generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.php b/src/Generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.php index a967358ace4..0e3885919ee 100644 --- a/src/Generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.php @@ -52,7 +52,7 @@ public function get(?RefRequestBuilderGetRequestConfiguration $requestConfigurat } /** - * Create a new directory role member. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + * Create a new directory role member. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -93,7 +93,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } /** - * Create a new directory role member. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + * Create a new directory role member. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|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 2a3c462f5be..f7110728ab7 100644 --- a/src/Generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. * @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/ScopedMembers/ScopedMembersRequestBuilder.php b/src/Generated/DirectoryRoles/Item/ScopedMembers/ScopedMembersRequestBuilder.php index 2b6617be1f7..e3da6831a75 100644 --- a/src/Generated/DirectoryRoles/Item/ScopedMembers/ScopedMembersRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/ScopedMembers/ScopedMembersRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of scopedRoleMembership objects for a directory role. + * Retrieve a list of scopedRoleMembership objects for a directory role. This API is supported in the following national cloud deployments. * @param ScopedMembersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directoryrole-list-scopedmembers?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(ScopedRoleMembership $body, ?ScopedMembersRequestBuilderPos } /** - * Retrieve a list of scopedRoleMembership objects for a directory role. + * Retrieve a list of scopedRoleMembership objects for a directory role. This API is supported in the following national cloud deployments. * @param ScopedMembersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DirectoryRoles/Item/ScopedMembers/ScopedMembersRequestBuilderGetQueryParameters.php b/src/Generated/DirectoryRoles/Item/ScopedMembers/ScopedMembersRequestBuilderGetQueryParameters.php index 342727710e6..444129438ab 100644 --- a/src/Generated/DirectoryRoles/Item/ScopedMembers/ScopedMembersRequestBuilderGetQueryParameters.php +++ b/src/Generated/DirectoryRoles/Item/ScopedMembers/ScopedMembersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of scopedRoleMembership objects for a directory role. + * Retrieve a list of scopedRoleMembership objects for a directory role. This API is supported in the following national cloud deployments. */ class ScopedMembersRequestBuilderGetQueryParameters { diff --git a/src/Generated/DirectoryRoles/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/DirectoryRoles/ValidateProperties/ValidatePropertiesRequestBuilder.php index 8529f406e6b..0a391555f1d 100644 --- a/src/Generated/DirectoryRoles/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/DirectoryRoles/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ValidatePropertiesPostRequestBody $body, ?ValidatePropertie } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/DirectoryRolesWithRoleTemplateId/DirectoryRolesWithRoleTemplateIdRequestBuilder.php b/src/Generated/DirectoryRolesWithRoleTemplateId/DirectoryRolesWithRoleTemplateIdRequestBuilder.php index 03f6ff575ce..f5d1cba8b95 100644 --- a/src/Generated/DirectoryRolesWithRoleTemplateId/DirectoryRolesWithRoleTemplateIdRequestBuilder.php +++ b/src/Generated/DirectoryRolesWithRoleTemplateId/DirectoryRolesWithRoleTemplateIdRequestBuilder.php @@ -53,7 +53,7 @@ public function delete(?DirectoryRolesWithRoleTemplateIdRequestBuilderDeleteRequ } /** - * Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + * Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. This API is supported in the following national cloud deployments. * @param DirectoryRolesWithRoleTemplateIdRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directoryrole-get?view=graph-rest-1.0 Find more info here @@ -108,7 +108,7 @@ public function toDeleteRequestInformation(?DirectoryRolesWithRoleTemplateIdRequ } /** - * Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + * Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. This API is supported in the following national cloud deployments. * @param DirectoryRolesWithRoleTemplateIdRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DirectoryRolesWithRoleTemplateId/DirectoryRolesWithRoleTemplateIdRequestBuilderGetQueryParameters.php b/src/Generated/DirectoryRolesWithRoleTemplateId/DirectoryRolesWithRoleTemplateIdRequestBuilderGetQueryParameters.php index 25bb5d105a1..a0881bbd37d 100644 --- a/src/Generated/DirectoryRolesWithRoleTemplateId/DirectoryRolesWithRoleTemplateIdRequestBuilderGetQueryParameters.php +++ b/src/Generated/DirectoryRolesWithRoleTemplateId/DirectoryRolesWithRoleTemplateIdRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + * Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. This API is supported in the following national cloud deployments. */ class DirectoryRolesWithRoleTemplateIdRequestBuilderGetQueryParameters { diff --git a/src/Generated/Domains/DomainsRequestBuilder.php b/src/Generated/Domains/DomainsRequestBuilder.php index 2b91ed30c34..fdb86e44db2 100644 --- a/src/Generated/Domains/DomainsRequestBuilder.php +++ b/src/Generated/Domains/DomainsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of domain objects. + * Retrieve a list of domain objects. This API is supported in the following national cloud deployments. * @param DomainsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/domain-list?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?DomainsRequestBuilderGetRequestConfiguration $requestConfig } /** - * Adds a domain to the tenant. Important: You cannot use an associated domain with your Azure AD tenant until ownership is verified. See List verificationDnsRecords for details. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. + * Adds a domain to the tenant. Important: You cannot use an associated domain with your Azure AD tenant until ownership is verified. See List verificationDnsRecords for details. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. This API is supported in the following national cloud deployments. * @param Domain $body The request body * @param DomainsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(Domain $body, ?DomainsRequestBuilderPostRequestConfiguratio } /** - * Retrieve a list of domain objects. + * Retrieve a list of domain objects. This API is supported in the following national cloud deployments. * @param DomainsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?DomainsRequestBuilderGetRequestConfigur } /** - * Adds a domain to the tenant. Important: You cannot use an associated domain with your Azure AD tenant until ownership is verified. See List verificationDnsRecords for details. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. + * Adds a domain to the tenant. Important: You cannot use an associated domain with your Azure AD tenant until ownership is verified. See List verificationDnsRecords for details. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. This API is supported in the following national cloud deployments. * @param Domain $body The request body * @param DomainsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Domains/DomainsRequestBuilderGetQueryParameters.php b/src/Generated/Domains/DomainsRequestBuilderGetQueryParameters.php index a02dcda80d0..ffc2baa7152 100644 --- a/src/Generated/Domains/DomainsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Domains/DomainsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of domain objects. + * Retrieve a list of domain objects. This API is supported in the following national cloud deployments. */ class DomainsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Domains/Item/DomainItemRequestBuilder.php b/src/Generated/Domains/Item/DomainItemRequestBuilder.php index 1bdc920e029..2170803df7b 100644 --- a/src/Generated/Domains/Item/DomainItemRequestBuilder.php +++ b/src/Generated/Domains/Item/DomainItemRequestBuilder.php @@ -88,7 +88,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Deletes a domain from a tenant. + * Deletes a domain from a tenant. This API is supported in the following national cloud deployments. * @param DomainItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/domain-delete?view=graph-rest-1.0 Find more info here @@ -107,7 +107,7 @@ public function delete(?DomainItemRequestBuilderDeleteRequestConfiguration $requ } /** - * Retrieve the properties and relationships of domain object. + * Retrieve the properties and relationships of domain object. This API is supported in the following national cloud deployments. * @param DomainItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/domain-get?view=graph-rest-1.0 Find more info here @@ -126,7 +126,7 @@ public function get(?DomainItemRequestBuilderGetRequestConfiguration $requestCon } /** - * Update the properties of domain object. + * Update the properties of domain object. This API is supported in the following national cloud deployments. * @param Domain $body The request body * @param DomainItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -146,7 +146,7 @@ public function patch(Domain $body, ?DomainItemRequestBuilderPatchRequestConfigu } /** - * Deletes a domain from a tenant. + * Deletes a domain from a tenant. This API is supported in the following national cloud deployments. * @param DomainItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -163,7 +163,7 @@ public function toDeleteRequestInformation(?DomainItemRequestBuilderDeleteReques } /** - * Retrieve the properties and relationships of domain object. + * Retrieve the properties and relationships of domain object. This API is supported in the following national cloud deployments. * @param DomainItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -184,7 +184,7 @@ public function toGetRequestInformation(?DomainItemRequestBuilderGetRequestConfi } /** - * Update the properties of domain object. + * Update the properties of domain object. This API is supported in the following national cloud deployments. * @param Domain $body The request body * @param DomainItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Domains/Item/DomainItemRequestBuilderGetQueryParameters.php b/src/Generated/Domains/Item/DomainItemRequestBuilderGetQueryParameters.php index 888bde2517a..218fc4ebf7d 100644 --- a/src/Generated/Domains/Item/DomainItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Domains/Item/DomainItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of domain object. + * Retrieve the properties and relationships of domain object. This API is supported in the following national cloud deployments. */ class DomainItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.php b/src/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.php index 0dd7878264e..4e6486e34fa 100644 --- a/src/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.php +++ b/src/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of directoryObject with a reference to the domain. The returned list will contain all directory objects that have a dependency on the domain. + * Retrieve a list of directoryObject with a reference to the domain. The returned list will contain all directory objects that have a dependency on the domain. This API is supported in the following national cloud deployments. * @param DomainNameReferencesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/domain-list-domainnamereferences?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?DomainNameReferencesRequestBuilderGetRequestConfiguration $ } /** - * Retrieve a list of directoryObject with a reference to the domain. The returned list will contain all directory objects that have a dependency on the domain. + * Retrieve a list of directoryObject with a reference to the domain. The returned list will contain all directory objects that have a dependency on the domain. This API is supported in the following national cloud deployments. * @param DomainNameReferencesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilderGetQueryParameters.php b/src/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilderGetQueryParameters.php index 0de3408c689..bc2abe01f41 100644 --- a/src/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of directoryObject with a reference to the domain. The returned list will contain all directory objects that have a dependency on the domain. + * Retrieve a list of directoryObject with a reference to the domain. The returned list will contain all directory objects that have a dependency on the domain. This API is supported in the following national cloud deployments. */ class DomainNameReferencesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Domains/Item/FederationConfiguration/FederationConfigurationRequestBuilder.php b/src/Generated/Domains/Item/FederationConfiguration/FederationConfigurationRequestBuilder.php index f238a7c06f1..325da9b8364 100644 --- a/src/Generated/Domains/Item/FederationConfiguration/FederationConfigurationRequestBuilder.php +++ b/src/Generated/Domains/Item/FederationConfiguration/FederationConfigurationRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read the properties and relationships of an internalDomainFederation object. + * Read the properties and relationships of an internalDomainFederation object. This API is supported in the following national cloud deployments. * @param FederationConfigurationRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -71,7 +71,7 @@ public function get(?FederationConfigurationRequestBuilderGetRequestConfiguratio } /** - * Create a new internalDomainFederation object. + * Create a new internalDomainFederation object. This API is supported in the following national cloud deployments. * @param InternalDomainFederation $body The request body * @param FederationConfigurationRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -91,7 +91,7 @@ public function post(InternalDomainFederation $body, ?FederationConfigurationReq } /** - * Read the properties and relationships of an internalDomainFederation object. + * Read the properties and relationships of an internalDomainFederation object. This API is supported in the following national cloud deployments. * @param FederationConfigurationRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -112,7 +112,7 @@ public function toGetRequestInformation(?FederationConfigurationRequestBuilderGe } /** - * Create a new internalDomainFederation object. + * Create a new internalDomainFederation object. This API is supported in the following national cloud deployments. * @param InternalDomainFederation $body The request body * @param FederationConfigurationRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Domains/Item/FederationConfiguration/FederationConfigurationRequestBuilderGetQueryParameters.php b/src/Generated/Domains/Item/FederationConfiguration/FederationConfigurationRequestBuilderGetQueryParameters.php index 70cb2eaa01c..3d9625aed3e 100644 --- a/src/Generated/Domains/Item/FederationConfiguration/FederationConfigurationRequestBuilderGetQueryParameters.php +++ b/src/Generated/Domains/Item/FederationConfiguration/FederationConfigurationRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of an internalDomainFederation object. + * Read the properties and relationships of an internalDomainFederation object. This API is supported in the following national cloud deployments. */ class FederationConfigurationRequestBuilderGetQueryParameters { diff --git a/src/Generated/Domains/Item/FederationConfiguration/Item/InternalDomainFederationItemRequestBuilder.php b/src/Generated/Domains/Item/FederationConfiguration/Item/InternalDomainFederationItemRequestBuilder.php index 2c0d900d030..a8fc7c9fb69 100644 --- a/src/Generated/Domains/Item/FederationConfiguration/Item/InternalDomainFederationItemRequestBuilder.php +++ b/src/Generated/Domains/Item/FederationConfiguration/Item/InternalDomainFederationItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an internalDomainFederation object. + * Delete an internalDomainFederation object. This API is supported in the following national cloud deployments. * @param InternalDomainFederationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/internaldomainfederation-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?InternalDomainFederationItemRequestBuilderDeleteRequestC } /** - * Read the properties and relationships of an internalDomainFederation object. + * Read the properties and relationships of an internalDomainFederation object. This API is supported in the following national cloud deployments. * @param InternalDomainFederationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/internaldomainfederation-get?view=graph-rest-1.0 Find more info here @@ -70,7 +70,7 @@ public function get(?InternalDomainFederationItemRequestBuilderGetRequestConfigu } /** - * Update the properties of an internalDomainFederation object. + * Update the properties of an internalDomainFederation object. This API is supported in the following national cloud deployments. * @param InternalDomainFederation $body The request body * @param InternalDomainFederationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -90,7 +90,7 @@ public function patch(InternalDomainFederation $body, ?InternalDomainFederationI } /** - * Delete an internalDomainFederation object. + * Delete an internalDomainFederation object. This API is supported in the following national cloud deployments. * @param InternalDomainFederationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?InternalDomainFederationItemRequestB } /** - * Read the properties and relationships of an internalDomainFederation object. + * Read the properties and relationships of an internalDomainFederation object. This API is supported in the following national cloud deployments. * @param InternalDomainFederationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -128,7 +128,7 @@ public function toGetRequestInformation(?InternalDomainFederationItemRequestBuil } /** - * Update the properties of an internalDomainFederation object. + * Update the properties of an internalDomainFederation object. This API is supported in the following national cloud deployments. * @param InternalDomainFederation $body The request body * @param InternalDomainFederationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Domains/Item/FederationConfiguration/Item/InternalDomainFederationItemRequestBuilderGetQueryParameters.php b/src/Generated/Domains/Item/FederationConfiguration/Item/InternalDomainFederationItemRequestBuilderGetQueryParameters.php index fb7d7fb61c0..e09be566322 100644 --- a/src/Generated/Domains/Item/FederationConfiguration/Item/InternalDomainFederationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Domains/Item/FederationConfiguration/Item/InternalDomainFederationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of an internalDomainFederation object. + * Read the properties and relationships of an internalDomainFederation object. This API is supported in the following national cloud deployments. */ class InternalDomainFederationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.php b/src/Generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.php index 3d1fe909e66..6335e57cafd 100644 --- a/src/Generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.php +++ b/src/Generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Deletes a domain using an asynchronous long-running operation. Prior to calling forceDelete, you must update or remove any references to Exchange as the provisioning service. The following actions are performed as part of this operation: After the domain deletion completes, API operations for the deleted domain will return a HTTP 404 status code. To verify deletion of a domain, you can perform a get domain operation. + * Deletes a domain using an asynchronous long-running operation. Prior to calling forceDelete, you must update or remove any references to Exchange as the provisioning service. The following actions are performed as part of this operation: After the domain deletion completes, API operations for the deleted domain will return a HTTP 404 status code. To verify deletion of a domain, you can perform a get domain operation. This API is supported in the following national cloud deployments. * @param ForceDeletePostRequestBody $body The request body * @param ForceDeleteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ForceDeletePostRequestBody $body, ?ForceDeleteRequestBuilde } /** - * Deletes a domain using an asynchronous long-running operation. Prior to calling forceDelete, you must update or remove any references to Exchange as the provisioning service. The following actions are performed as part of this operation: After the domain deletion completes, API operations for the deleted domain will return a HTTP 404 status code. To verify deletion of a domain, you can perform a get domain operation. + * Deletes a domain using an asynchronous long-running operation. Prior to calling forceDelete, you must update or remove any references to Exchange as the provisioning service. The following actions are performed as part of this operation: After the domain deletion completes, API operations for the deleted domain will return a HTTP 404 status code. To verify deletion of a domain, you can perform a get domain operation. This API is supported in the following national cloud deployments. * @param ForceDeletePostRequestBody $body The request body * @param ForceDeleteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Domains/Item/Promote/PromotePostResponse.php b/src/Generated/Domains/Item/Promote/PromotePostResponse.php new file mode 100644 index 00000000000..6e2292402c9 --- /dev/null +++ b/src/Generated/Domains/Item/Promote/PromotePostResponse.php @@ -0,0 +1,114 @@ +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 PromotePostResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): PromotePostResponse { + return new PromotePostResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return bool|null + */ + public function getValue(): ?bool { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_bool($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 { + $writer->writeBooleanValue('value', $this->getValue()); + $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 value property value. The value property + * @param bool|null $value Value to set for the value property. + */ + public function setValue(?bool $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Domains/Item/Promote/PromoteRequestBuilder.php b/src/Generated/Domains/Item/Promote/PromoteRequestBuilder.php index 348d66a959f..e5c05dcbb46 100644 --- a/src/Generated/Domains/Item/Promote/PromoteRequestBuilder.php +++ b/src/Generated/Domains/Item/Promote/PromoteRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Promote a verified subdomain to the root domain. A verified domain has its isVerified property set to true. + * Promote a verified subdomain to the root domain. A verified domain has its isVerified property set to true. This API is supported in the following national cloud deployments. * @param PromoteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/domain-promote?view=graph-rest-1.0 Find more info here @@ -43,14 +43,14 @@ public function post(?PromoteRequestBuilderPostRequestConfiguration $requestConf '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [PromoteResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [PromotePostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Promote a verified subdomain to the root domain. A verified domain has its isVerified property set to true. + * Promote a verified subdomain to the root domain. A verified domain has its isVerified property set to true. This API is supported in the following national cloud deployments. * @param PromoteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Domains/Item/Promote/PromoteResponse.php b/src/Generated/Domains/Item/Promote/PromoteResponse.php deleted file mode 100644 index c38fc1e66ae..00000000000 --- a/src/Generated/Domains/Item/Promote/PromoteResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 PromoteResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): PromoteResponse { - return new PromoteResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return bool|null - */ - public function getValue(): ?bool { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_bool($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 { - $writer->writeBooleanValue('value', $this->getValue()); - $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 value property value. The value property - * @param bool|null $value Value to set for the value property. - */ - public function setValue(?bool $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Domains/Item/ServiceConfigurationRecords/ServiceConfigurationRecordsRequestBuilder.php b/src/Generated/Domains/Item/ServiceConfigurationRecords/ServiceConfigurationRecordsRequestBuilder.php index f8738bdce33..68cd497b327 100644 --- a/src/Generated/Domains/Item/ServiceConfigurationRecords/ServiceConfigurationRecordsRequestBuilder.php +++ b/src/Generated/Domains/Item/ServiceConfigurationRecords/ServiceConfigurationRecordsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieves a list of domainDnsRecord objects needed to enable services for the domain. Use the returned list to add records to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. + * Retrieves a list of domainDnsRecord objects needed to enable services for the domain. Use the returned list to add records to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. This API is supported in the following national cloud deployments. * @param ServiceConfigurationRecordsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/domain-list-serviceconfigurationrecords?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(DomainDnsRecord $body, ?ServiceConfigurationRecordsRequestB } /** - * Retrieves a list of domainDnsRecord objects needed to enable services for the domain. Use the returned list to add records to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. + * Retrieves a list of domainDnsRecord objects needed to enable services for the domain. Use the returned list to add records to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. This API is supported in the following national cloud deployments. * @param ServiceConfigurationRecordsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Domains/Item/ServiceConfigurationRecords/ServiceConfigurationRecordsRequestBuilderGetQueryParameters.php b/src/Generated/Domains/Item/ServiceConfigurationRecords/ServiceConfigurationRecordsRequestBuilderGetQueryParameters.php index e5748e98292..e513e74dd00 100644 --- a/src/Generated/Domains/Item/ServiceConfigurationRecords/ServiceConfigurationRecordsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Domains/Item/ServiceConfigurationRecords/ServiceConfigurationRecordsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieves a list of domainDnsRecord objects needed to enable services for the domain. Use the returned list to add records to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. + * Retrieves a list of domainDnsRecord objects needed to enable services for the domain. Use the returned list to add records to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. This API is supported in the following national cloud deployments. */ class ServiceConfigurationRecordsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Domains/Item/VerificationDnsRecords/VerificationDnsRecordsRequestBuilder.php b/src/Generated/Domains/Item/VerificationDnsRecords/VerificationDnsRecordsRequestBuilder.php index fa1d5e86304..81b1f235434 100644 --- a/src/Generated/Domains/Item/VerificationDnsRecords/VerificationDnsRecordsRequestBuilder.php +++ b/src/Generated/Domains/Item/VerificationDnsRecords/VerificationDnsRecordsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Azure AD tenant until ownership is verified. To verify the ownership of the domain, retrieve the domain verification records and add the details to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. + * Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Azure AD tenant until ownership is verified. To verify the ownership of the domain, retrieve the domain verification records and add the details to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. This API is supported in the following national cloud deployments. * @param VerificationDnsRecordsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/domain-list-verificationdnsrecords?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(DomainDnsRecord $body, ?VerificationDnsRecordsRequestBuilde } /** - * Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Azure AD tenant until ownership is verified. To verify the ownership of the domain, retrieve the domain verification records and add the details to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. + * Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Azure AD tenant until ownership is verified. To verify the ownership of the domain, retrieve the domain verification records and add the details to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. This API is supported in the following national cloud deployments. * @param VerificationDnsRecordsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Domains/Item/VerificationDnsRecords/VerificationDnsRecordsRequestBuilderGetQueryParameters.php b/src/Generated/Domains/Item/VerificationDnsRecords/VerificationDnsRecordsRequestBuilderGetQueryParameters.php index 0d8fc46db27..9a699d3bcb9 100644 --- a/src/Generated/Domains/Item/VerificationDnsRecords/VerificationDnsRecordsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Domains/Item/VerificationDnsRecords/VerificationDnsRecordsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Azure AD tenant until ownership is verified. To verify the ownership of the domain, retrieve the domain verification records and add the details to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. + * Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Azure AD tenant until ownership is verified. To verify the ownership of the domain, retrieve the domain verification records and add the details to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. This API is supported in the following national cloud deployments. */ class VerificationDnsRecordsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Domains/Item/Verify/VerifyRequestBuilder.php b/src/Generated/Domains/Item/Verify/VerifyRequestBuilder.php index 6fbcc1684bc..0eb98803fc6 100644 --- a/src/Generated/Domains/Item/Verify/VerifyRequestBuilder.php +++ b/src/Generated/Domains/Item/Verify/VerifyRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Validates the ownership of the domain. + * Validates the ownership of the domain. This API is supported in the following national cloud deployments. * @param VerifyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/domain-verify?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?VerifyRequestBuilderPostRequestConfiguration $requestConfi } /** - * Validates the ownership of the domain. + * Validates the ownership of the domain. This API is supported in the following national cloud deployments. * @param VerifyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/CreatedByUser/CreatedByUserRequestBuilder.php b/src/Generated/Drives/Item/CreatedByUser/CreatedByUserRequestBuilder.php index 2bf7bab7192..860d913fbbc 100644 --- a/src/Generated/Drives/Item/CreatedByUser/CreatedByUserRequestBuilder.php +++ b/src/Generated/Drives/Item/CreatedByUser/CreatedByUserRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\Drives\Item\CreatedByUser\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\Drives\Item\CreatedByUser\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new CreatedByUserRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..e07ff742e53 --- /dev/null +++ b/src/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/drives/{drive%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/Drives/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..f2fb9ad7bf5 --- /dev/null +++ b/src/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..bcc9c924556 --- /dev/null +++ b/src/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/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/Drives/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..a7c47df62ce --- /dev/null +++ b/src/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/drives/{drive%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..8046f5f8129 --- /dev/null +++ b/src/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/Drives/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..7a5090f8242 --- /dev/null +++ b/src/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Drives/Item/EscapedList/Columns/ColumnsRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Columns/ColumnsRequestBuilder.php index 7f6c736db0a..8f14f33cc4c 100644 --- a/src/Generated/Drives/Item/EscapedList/Columns/ColumnsRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Columns/ColumnsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [list][list]. + * Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [list][list]. This API is supported in the following [national cloud deployments. * @param ColumnsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/list-list-columns?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ColumnsRequestBuilderGetRequestConfiguration $requestConfig } /** - * Create a column for a [list][list] with a request that specifies a [columnDefinition][columnDefinition]. + * Create a column for a list][list] with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. * @param ColumnDefinition $body The request body * @param ColumnsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(ColumnDefinition $body, ?ColumnsRequestBuilderPostRequestCo } /** - * Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [list][list]. + * Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [list][list]. This API is supported in the following [national cloud deployments. * @param ColumnsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur } /** - * Create a column for a [list][list] with a request that specifies a [columnDefinition][columnDefinition]. + * Create a column for a list][list] with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. * @param ColumnDefinition $body The request body * @param ColumnsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/EscapedList/Columns/ColumnsRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/EscapedList/Columns/ColumnsRequestBuilderGetQueryParameters.php index dba0e5b859b..7316043a1a3 100644 --- a/src/Generated/Drives/Item/EscapedList/Columns/ColumnsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/EscapedList/Columns/ColumnsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [list][list]. + * Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [list][list]. This API is supported in the following [national cloud deployments. */ class ColumnsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/AddCopy/AddCopyRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/AddCopy/AddCopyRequestBuilder.php index 667e95112e8..93abe733e77 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/AddCopy/AddCopyRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/AddCopy/AddCopyRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Add a copy of a [content type][contentType] from a [site][site] to a [list][list]. + * Add a copy of a content type][contentType] from a [site][site] to a [list][list]. This API is supported in the following [national cloud deployments. * @param AddCopyPostRequestBody $body The request body * @param AddCopyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(AddCopyPostRequestBody $body, ?AddCopyRequestBuilderPostReq } /** - * Add a copy of a [content type][contentType] from a [site][site] to a [list][list]. + * Add a copy of a content type][contentType] from a [site][site] to a [list][list]. This API is supported in the following [national cloud deployments. * @param AddCopyPostRequestBody $body The request body * @param AddCopyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php index 3e477023492..5379ce6740a 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. + * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. This API is supported in the following national cloud deployments. * @param AddCopyFromContentTypeHubPostRequestBody $body The request body * @param AddCopyFromContentTypeHubRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(AddCopyFromContentTypeHubPostRequestBody $body, ?AddCopyFro } /** - * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. + * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. This API is supported in the following national cloud deployments. * @param AddCopyFromContentTypeHubPostRequestBody $body The request body * @param AddCopyFromContentTypeHubRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/ContentTypesRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/ContentTypesRequestBuilder.php index 577f559ac17..f1f33fc2890 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/ContentTypesRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/ContentTypesRequestBuilder.php @@ -77,7 +77,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the collection of [contentType][contentType] resources in a [list][]. + * Get the collection of contentType][contentType] resources in a [list][]. This API is supported in the following [national cloud deployments. * @param ContentTypesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/list-list-contenttypes?view=graph-rest-1.0 Find more info here @@ -115,7 +115,7 @@ public function post(ContentType $body, ?ContentTypesRequestBuilderPostRequestCo } /** - * Get the collection of [contentType][contentType] resources in a [list][]. + * Get the collection of contentType][contentType] resources in a [list][]. This API is supported in the following [national cloud deployments. * @param ContentTypesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/ContentTypesRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/ContentTypesRequestBuilderGetQueryParameters.php index 8ba22ba89ab..05479525534 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/ContentTypesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/ContentTypesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the collection of [contentType][contentType] resources in a [list][]. + * Get the collection of contentType][contentType] resources in a [list][]. This API is supported in the following [national cloud deployments. */ class ContentTypesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.php new file mode 100644 index 00000000000..fc7fc53bebc --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ContentType::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, ContentType::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/Drives/Item/EscapedList/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php index 20112f6383f..a6cde6677fc 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?GetCompatibleHubContentTypesRequestBuilderGetRequestConfigu '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetCompatibleHubContentTypesResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetCompatibleHubContentTypesGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.php deleted file mode 100644 index 820cc3fd05d..00000000000 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ContentType::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, ContentType::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/Drives/Item/EscapedList/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.php index 48ed4182453..33fef4975f6 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Associate a published [content type][contentType] present in a content type hub with a list of hub sites. + * Associate a published content type][contentType] present in a content type hub with a list of hub sites. This API is supported in the following [national cloud deployments. * @param AssociateWithHubSitesPostRequestBody $body The request body * @param AssociateWithHubSitesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(AssociateWithHubSitesPostRequestBody $body, ?AssociateWithH } /** - * Associate a published [content type][contentType] present in a content type hub with a list of hub sites. + * Associate a published content type][contentType] present in a content type hub with a list of hub sites. This API is supported in the following [national cloud deployments. * @param AssociateWithHubSitesPostRequestBody $body The request body * @param AssociateWithHubSitesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Columns/ColumnsRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Columns/ColumnsRequestBuilder.php index ecf45b6ba20..9977e7c60f9 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Columns/ColumnsRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Columns/ColumnsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + * Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [content type][contentType]. This API is supported in the following [national cloud deployments. * @param ColumnsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/contenttype-list-columns?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ColumnsRequestBuilderGetRequestConfiguration $requestConfig } /** - * Add a column to a [content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. + * Add a column to a content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. * @param ColumnDefinition $body The request body * @param ColumnsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(ColumnDefinition $body, ?ColumnsRequestBuilderPostRequestCo } /** - * Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + * Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [content type][contentType]. This API is supported in the following [national cloud deployments. * @param ColumnsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur } /** - * Add a column to a [content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. + * Add a column to a content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. * @param ColumnDefinition $body The request body * @param ColumnsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php index aae007249bf..fe611329884 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + * Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [content type][contentType]. This API is supported in the following [national cloud deployments. */ class ColumnsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php index fa46bb39771..ff992c7ad4e 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove a [column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. + * Remove a column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. This API is supported in the following [national cloud deployments. * @param ColumnDefinitionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/columndefinition-delete?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function delete(?ColumnDefinitionItemRequestBuilderDeleteRequestConfigura } /** - * Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + * Retrieve the metadata for a site][], a [list][], or a [contentType][] [column][columnDefinition]. This API is supported in the following [national cloud deployments. * @param ColumnDefinitionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/columndefinition-get?view=graph-rest-1.0 Find more info here @@ -78,7 +78,7 @@ public function get(?ColumnDefinitionItemRequestBuilderGetRequestConfiguration $ } /** - * Update a [site][], a [list][], or a [content type][contentType] [column][columnDefinition]. + * Update a site][], a [list][], or a [content type][contentType] [column][columnDefinition]. This API is supported in the following [national cloud deployments. * @param ColumnDefinition $body The request body * @param ColumnDefinitionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -98,7 +98,7 @@ public function patch(ColumnDefinition $body, ?ColumnDefinitionItemRequestBuilde } /** - * Remove a [column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. + * Remove a column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. This API is supported in the following [national cloud deployments. * @param ColumnDefinitionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -115,7 +115,7 @@ public function toDeleteRequestInformation(?ColumnDefinitionItemRequestBuilderDe } /** - * Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + * Retrieve the metadata for a site][], a [list][], or a [contentType][] [column][columnDefinition]. This API is supported in the following [national cloud deployments. * @param ColumnDefinitionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -136,7 +136,7 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe } /** - * Update a [site][], a [list][], or a [content type][contentType] [column][columnDefinition]. + * Update a site][], a [list][], or a [content type][contentType] [column][columnDefinition]. This API is supported in the following [national cloud deployments. * @param ColumnDefinition $body The request body * @param ColumnDefinitionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilderGetQueryParameters.php index 8eb7d0c8311..9162770e0b3 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + * Retrieve the metadata for a site][], a [list][], or a [contentType][] [column][columnDefinition]. This API is supported in the following [national cloud deployments. */ class ColumnDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.php index 78ca532c6bf..477ba4d915c 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. + * Copy a file to a default content location in a content type][contentType]. The file can then be added as a default file or template via a POST operation. This API is supported in the following [national cloud deployments. * @param CopyToDefaultContentLocationPostRequestBody $body The request body * @param CopyToDefaultContentLocationRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(CopyToDefaultContentLocationPostRequestBody $body, ?CopyToD } /** - * Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. + * Copy a file to a default content location in a content type][contentType]. The file can then be added as a default file or template via a POST operation. This API is supported in the following [national cloud deployments. * @param CopyToDefaultContentLocationPostRequestBody $body The request body * @param CopyToDefaultContentLocationRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/IsPublished/IsPublishedGetResponse.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/IsPublished/IsPublishedGetResponse.php new file mode 100644 index 00000000000..fbe83c81c95 --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/IsPublished/IsPublishedGetResponse.php @@ -0,0 +1,114 @@ +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 IsPublishedGetResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IsPublishedGetResponse { + return new IsPublishedGetResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return bool|null + */ + public function getValue(): ?bool { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_bool($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 { + $writer->writeBooleanValue('value', $this->getValue()); + $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 value property value. The value property + * @param bool|null $value Value to set for the value property. + */ + public function setValue(?bool $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.php index 5c4dbd8960d..49f78168d8d 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?IsPublishedRequestBuilderGetRequestConfiguration $requestCo '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [IsPublishedResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [IsPublishedGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/IsPublished/IsPublishedResponse.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/IsPublished/IsPublishedResponse.php deleted file mode 100644 index dc9abc97862..00000000000 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/IsPublished/IsPublishedResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 IsPublishedResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IsPublishedResponse { - return new IsPublishedResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return bool|null - */ - public function getValue(): ?bool { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_bool($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 { - $writer->writeBooleanValue('value', $this->getValue()); - $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 value property value. The value property - * @param bool|null $value Value to set for the value property. - */ - public function setValue(?bool $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Publish/PublishRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Publish/PublishRequestBuilder.php index 79470f1a86f..850ff01f93a 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Publish/PublishRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Publish/PublishRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Publishes a [contentType][] present in the content type hub site. + * Publishes a contentType][] present in the content type hub site. This API is supported in the following [national cloud deployments. * @param PublishRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/contenttype-publish?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?PublishRequestBuilderPostRequestConfiguration $requestConf } /** - * Publishes a [contentType][] present in the content type hub site. + * Publishes a contentType][] present in the content type hub site. This API is supported in the following [national cloud deployments. * @param PublishRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.php index 0a2c2511d34..9b92dc2ddd2 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Unpublish a [contentType][] from a content type hub site. + * Unpublish a contentType][] from a content type hub site. This API is supported in the following [national cloud deployments. * @param UnpublishRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/contenttype-unpublish?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?UnpublishRequestBuilderPostRequestConfiguration $requestCo } /** - * Unpublish a [contentType][] from a content type hub site. + * Unpublish a contentType][] from a content type hub site. This API is supported in the following [national cloud deployments. * @param UnpublishRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/EscapedList/CreatedByUser/CreatedByUserRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/CreatedByUser/CreatedByUserRequestBuilder.php index f330779fc29..7ed0be393c0 100644 --- a/src/Generated/Drives/Item/EscapedList/CreatedByUser/CreatedByUserRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/CreatedByUser/CreatedByUserRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\Drives\Item\EscapedList\CreatedByUser\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\Drives\Item\EscapedList\CreatedByUser\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new CreatedByUserRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Drives/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..731df67e6ec --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/drives/{drive%2Did}/list/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/Drives/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..47a2194b0ab --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Drives/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Drives/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..70fd149e742 --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/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/Drives/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..ce915279c6a --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/drives/{drive%2Did}/list/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Drives/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..dc9c96a193b --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/Drives/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/Drives/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..3da48c77caa --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.php index dc306564140..6dcdba4678e 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\Drives\Item\EscapedList\Items\Item\CreatedByUser\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\Drives\Item\EscapedList\Items\Item\CreatedByUser\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new CreatedByUserRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..a0d89342ad4 --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/drives/{drive%2Did}/list/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/Drives/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..5ed511e3bde --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Drives/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..1691ecd8a9a --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/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/Drives/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..724135b4f07 --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/drives/{drive%2Did}/list/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..730c69f5523 --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/Drives/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/Drives/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..5af38e10e73 --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.php index 6797eff4188..54d1de51017 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the versions of a document set item in a list. + * Get a list of the versions of a document set item in a list. This API is supported in the following national cloud deployments. * @param DocumentSetVersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/listitem-list-documentsetversions?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?DocumentSetVersionsRequestBuilderGetRequestConfiguration $r } /** - * Create a new version of a document set item in a list. + * Create a new version of a document set item in a list. This API is supported in the following national cloud deployments. * @param DocumentSetVersion $body The request body * @param DocumentSetVersionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(DocumentSetVersion $body, ?DocumentSetVersionsRequestBuilde } /** - * Get a list of the versions of a document set item in a list. + * Get a list of the versions of a document set item in a list. This API is supported in the following national cloud deployments. * @param DocumentSetVersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?DocumentSetVersionsRequestBuilderGetReq } /** - * Create a new version of a document set item in a list. + * Create a new version of a document set item in a list. This API is supported in the following national cloud deployments. * @param DocumentSetVersion $body The request body * @param DocumentSetVersionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilderGetQueryParameters.php index 5cccc0f4556..b741e91c4fb 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the versions of a document set item in a list. + * Get a list of the versions of a document set item in a list. This API is supported in the following national cloud deployments. */ class DocumentSetVersionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.php index 55fe930cd9f..af7f0d8dd58 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.php @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a version of a document set in a list. + * Delete a version of a document set in a list. This API is supported in the following national cloud deployments. * @param DocumentSetVersionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/documentsetversion-delete?view=graph-rest-1.0 Find more info here @@ -67,7 +67,7 @@ public function delete(?DocumentSetVersionItemRequestBuilderDeleteRequestConfigu } /** - * Read the properties and relationships of a documentSetVersion object. + * Read the properties and relationships of a documentSetVersion object. This API is supported in the following national cloud deployments. * @param DocumentSetVersionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/documentsetversion-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function patch(DocumentSetVersion $body, ?DocumentSetVersionItemRequestBu } /** - * Delete a version of a document set in a list. + * Delete a version of a document set in a list. This API is supported in the following national cloud deployments. * @param DocumentSetVersionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -122,7 +122,7 @@ public function toDeleteRequestInformation(?DocumentSetVersionItemRequestBuilder } /** - * Read the properties and relationships of a documentSetVersion object. + * Read the properties and relationships of a documentSetVersion object. This API is supported in the following national cloud deployments. * @param DocumentSetVersionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilderGetQueryParameters.php index ce057a82c12..d6a67a8c6bd 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a documentSetVersion object. + * Read the properties and relationships of a documentSetVersion object. This API is supported in the following national cloud deployments. */ class DocumentSetVersionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.php index 6ab2eef8a20..a66bf70b067 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a document set version. + * Restore a document set version. This API is supported in the following national cloud deployments. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/documentsetversion-restore?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * Restore a document set version. + * Restore a document set version. This API is supported in the following national cloud deployments. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/Fields/FieldsRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/Item/Fields/FieldsRequestBuilder.php index 91a64006de4..c7b585ba99e 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/Fields/FieldsRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/Fields/FieldsRequestBuilder.php @@ -68,7 +68,7 @@ public function get(?FieldsRequestBuilderGetRequestConfiguration $requestConfigu } /** - * Update the properties on a [listItem][]. + * Update the properties on a listItem][]. This API is supported in the following [national cloud deployments. * @param FieldValueSet $body The request body * @param FieldsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -126,7 +126,7 @@ public function toGetRequestInformation(?FieldsRequestBuilderGetRequestConfigura } /** - * Update the properties on a [listItem][]. + * Update the properties on a listItem][]. This API is supported in the following [national cloud deployments. * @param FieldValueSet $body The request body * @param FieldsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.php b/src/Generated/Drives/Item/EscapedList/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.php new file mode 100644 index 00000000000..dd2c1141dcf --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ItemActivityStat::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, ItemActivityStat::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/Drives/Item/EscapedList/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php index f58c9d42fbc..352f1021101 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?GetActivitiesByIntervalRequestBuilderGetRequestConfiguratio '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetActivitiesByIntervalResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetActivitiesByIntervalGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.php b/src/Generated/Drives/Item/EscapedList/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.php deleted file mode 100644 index 8e0596dc5bc..00000000000 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ItemActivityStat::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, ItemActivityStat::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/Drives/Item/EscapedList/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.php b/src/Generated/Drives/Item/EscapedList/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.php new file mode 100644 index 00000000000..6d00a5fb943 --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ItemActivityStat::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, ItemActivityStat::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/Drives/Item/EscapedList/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php index 526078ebb84..14c955554a1 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php @@ -49,7 +49,7 @@ public function get(?GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWith '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.php b/src/Generated/Drives/Item/EscapedList/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.php deleted file mode 100644 index d1d42da3c38..00000000000 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ItemActivityStat::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, ItemActivityStat::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/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php index 778f0fb8238..49c8bb9b390 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\Drives\Item\EscapedList\Items\Item\LastModifiedByUser\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\Drives\Item\EscapedList\Items\Item\LastModifiedByUser\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..f87045d0e34 --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/drives/{drive%2Did}/list/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..cc8382d9f60 --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..af628455dbe --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/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/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..e3aa75482ff --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/drives/{drive%2Did}/list/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d7186d7957e --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..b633e4e5194 --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/ListItemItemRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/Item/ListItemItemRequestBuilder.php index bee95b503ed..49b0416f3e5 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/ListItemItemRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/ListItemItemRequestBuilder.php @@ -97,7 +97,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Removes an item from a [list][]. + * Removes an item from a list][]. This API is supported in the following [national cloud deployments. * @param ListItemItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/listitem-delete?view=graph-rest-1.0 Find more info here @@ -116,7 +116,7 @@ public function delete(?ListItemItemRequestBuilderDeleteRequestConfiguration $re } /** - * Returns the metadata for an [item][] in a [list][]. + * Returns the metadata for an item][] in a [list][]. This API is supported in the following [national cloud deployments. * @param ListItemItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/listitem-get?view=graph-rest-1.0 Find more info here @@ -165,7 +165,7 @@ public function patch(ListItem $body, ?ListItemItemRequestBuilderPatchRequestCon } /** - * Removes an item from a [list][]. + * Removes an item from a list][]. This API is supported in the following [national cloud deployments. * @param ListItemItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -182,7 +182,7 @@ public function toDeleteRequestInformation(?ListItemItemRequestBuilderDeleteRequ } /** - * Returns the metadata for an [item][] in a [list][]. + * Returns the metadata for an item][] in a [list][]. This API is supported in the following [national cloud deployments. * @param ListItemItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/ListItemItemRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/EscapedList/Items/Item/ListItemItemRequestBuilderGetQueryParameters.php index 58ed27de6c2..8bd900ed163 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/ListItemItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/ListItemItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Returns the metadata for an [item][] in a [list][]. + * Returns the metadata for an item][] in a [list][]. This API is supported in the following [national cloud deployments. */ class ListItemItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.php index 3e110f80ea8..b991367f5cc 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.php @@ -66,7 +66,7 @@ public function delete(?ListItemVersionItemRequestBuilderDeleteRequestConfigurat } /** - * Retrieve the metadata for a specific version of a ListItem. + * Retrieve the metadata for a specific version of a ListItem. This API is supported in the following national cloud deployments. * @param ListItemVersionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/listitemversion-get?view=graph-rest-1.0 Find more info here @@ -121,7 +121,7 @@ public function toDeleteRequestInformation(?ListItemVersionItemRequestBuilderDel } /** - * Retrieve the metadata for a specific version of a ListItem. + * Retrieve the metadata for a specific version of a ListItem. This API is supported in the following national cloud deployments. * @param ListItemVersionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/Item/ListItemVersionItemRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/Item/ListItemVersionItemRequestBuilderGetQueryParameters.php index 2029481fbf6..02d1e708ba8 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/Item/ListItemVersionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/Item/ListItemVersionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the metadata for a specific version of a ListItem. + * Retrieve the metadata for a specific version of a ListItem. This API is supported in the following national cloud deployments. */ class ListItemVersionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.php index 63b421b8b42..3e6a1dd3360 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. + * Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. This API is supported in the following national cloud deployments. * @param RestoreVersionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/listitemversion-restore?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?RestoreVersionRequestBuilderPostRequestConfiguration $requ } /** - * Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. + * Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. This API is supported in the following national cloud deployments. * @param RestoreVersionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/VersionsRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/VersionsRequestBuilder.php index 50ce0427e5b..d38a070e73f 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/VersionsRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/VersionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. + * SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. This API is supported in the following national cloud deployments. * @param VersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/listitem-list-versions?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(ListItemVersion $body, ?VersionsRequestBuilderPostRequestCo } /** - * SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. + * SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. This API is supported in the following national cloud deployments. * @param VersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/VersionsRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/VersionsRequestBuilderGetQueryParameters.php index f7255647e55..4f21136bf73 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/VersionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/VersionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. + * SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. This API is supported in the following national cloud deployments. */ class VersionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/EscapedList/Items/ItemsRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/ItemsRequestBuilder.php index eb70fe75171..e4ae2f21f2c 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/ItemsRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/ItemsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the collection of [items][item] in a [list][]. + * Get the collection of items][item] in a [list][]. This API is supported in the following [national cloud deployments. * @param ItemsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/listitem-list?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ItemsRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Create a new [listItem][] in a [list][]. + * Create a new listItem][] in a [list][]. This API is supported in the following [national cloud deployments. * @param ListItem $body The request body * @param ItemsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(ListItem $body, ?ItemsRequestBuilderPostRequestConfiguratio } /** - * Get the collection of [items][item] in a [list][]. + * Get the collection of items][item] in a [list][]. This API is supported in the following [national cloud deployments. * @param ItemsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ItemsRequestBuilderGetRequestConfigurat } /** - * Create a new [listItem][] in a [list][]. + * Create a new listItem][] in a [list][]. This API is supported in the following [national cloud deployments. * @param ListItem $body The request body * @param ItemsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/EscapedList/Items/ItemsRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/EscapedList/Items/ItemsRequestBuilderGetQueryParameters.php index 258cf1a0cf9..01e02678335 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/ItemsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/EscapedList/Items/ItemsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the collection of [items][item] in a [list][]. + * Get the collection of items][item] in a [list][]. This API is supported in the following [national cloud deployments. */ class ItemsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/LastModifiedByUserRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/LastModifiedByUserRequestBuilder.php index f5b3da45227..62104139ae4 100644 --- a/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/LastModifiedByUserRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/LastModifiedByUserRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\Drives\Item\EscapedList\LastModifiedByUser\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\Drives\Item\EscapedList\LastModifiedByUser\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..695ef97b8b4 --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/drives/{drive%2Did}/list/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/Drives/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..fe4aef8ee10 --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..d6872b3eb8e --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/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/Drives/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..119d1e65911 --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/drives/{drive%2Did}/list/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..bf19bb3ee98 --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/Drives/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..c016c031f82 --- /dev/null +++ b/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Drives/Item/EscapedList/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.php index bbf2bf431f2..940012cc482 100644 --- a/src/Generated/Drives/Item/EscapedList/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Reauthorize a subscription when you receive a reauthorizationRequired challenge. + * Reauthorize a subscription when you receive a reauthorizationRequired challenge. This API is supported in the following national cloud deployments. * @param ReauthorizeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/subscription-reauthorize?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ReauthorizeRequestBuilderPostRequestConfiguration $request } /** - * Reauthorize a subscription when you receive a reauthorizationRequired challenge. + * Reauthorize a subscription when you receive a reauthorizationRequired challenge. This API is supported in the following national cloud deployments. * @param ReauthorizeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Following/FollowingRequestBuilder.php b/src/Generated/Drives/Item/Following/FollowingRequestBuilder.php index 3032f994d95..7c4e9cc8fca 100644 --- a/src/Generated/Drives/Item/Following/FollowingRequestBuilder.php +++ b/src/Generated/Drives/Item/Following/FollowingRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List the items that have been followed by the signed in user.This collection includes items that are in the user's drive as well as items they have access to from other drives. + * List the items that have been followed by the signed in user.This collection includes items that are in the user's drive as well as items they have access to from other drives. This API is supported in the following national cloud deployments. * @param FollowingRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/drive-list-following?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?FollowingRequestBuilderGetRequestConfiguration $requestConf } /** - * List the items that have been followed by the signed in user.This collection includes items that are in the user's drive as well as items they have access to from other drives. + * List the items that have been followed by the signed in user.This collection includes items that are in the user's drive as well as items they have access to from other drives. This API is supported in the following national cloud deployments. * @param FollowingRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Following/FollowingRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Following/FollowingRequestBuilderGetQueryParameters.php index a247543dbde..9d1f804d674 100644 --- a/src/Generated/Drives/Item/Following/FollowingRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Following/FollowingRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List the items that have been followed by the signed in user.This collection includes items that are in the user's drive as well as items they have access to from other drives. + * List the items that have been followed by the signed in user.This collection includes items that are in the user's drive as well as items they have access to from other drives. This API is supported in the following national cloud deployments. */ class FollowingRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Analytics/AllTime/AllTimeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Analytics/AllTime/AllTimeRequestBuilder.php index eb934b8e7da..b2f223dcb07 100644 --- a/src/Generated/Drives/Item/Items/Item/Analytics/AllTime/AllTimeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Analytics/AllTime/AllTimeRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the [getActivitiesByInterval][] API. + * Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the getActivitiesByInterval][] API. This API is supported in the following [national cloud deployments. * @param AllTimeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/itemanalytics-get?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function get(?AllTimeRequestBuilderGetRequestConfiguration $requestConfig } /** - * Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the [getActivitiesByInterval][] API. + * Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the getActivitiesByInterval][] API. This API is supported in the following [national cloud deployments. * @param AllTimeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Analytics/AllTime/AllTimeRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Analytics/AllTime/AllTimeRequestBuilderGetQueryParameters.php index 5e98c42cb5b..13b5796ef32 100644 --- a/src/Generated/Drives/Item/Items/Item/Analytics/AllTime/AllTimeRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Analytics/AllTime/AllTimeRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the [getActivitiesByInterval][] API. + * Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the getActivitiesByInterval][] API. This API is supported in the following [national cloud deployments. */ class AllTimeRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Checkin/CheckinRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Checkin/CheckinRequestBuilder.php index 8f7dc116085..d702ddfb1f2 100644 --- a/src/Generated/Drives/Item/Items/Item/Checkin/CheckinRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Checkin/CheckinRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Check in a checked out driveItem resource, which makes the version of the document available to others. + * Check in a checked out driveItem resource, which makes the version of the document available to others. This API is supported in the following national cloud deployments. * @param CheckinPostRequestBody $body The request body * @param CheckinRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(CheckinPostRequestBody $body, ?CheckinRequestBuilderPostReq } /** - * Check in a checked out driveItem resource, which makes the version of the document available to others. + * Check in a checked out driveItem resource, which makes the version of the document available to others. This API is supported in the following national cloud deployments. * @param CheckinPostRequestBody $body The request body * @param CheckinRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Checkout/CheckoutRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Checkout/CheckoutRequestBuilder.php index 2a90d7d2042..c419ba38769 100644 --- a/src/Generated/Drives/Item/Items/Item/Checkout/CheckoutRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Checkout/CheckoutRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Check out a driveItem resource to prevent others from editing the document, and prevent your changes from being visible until the documented is checked in. + * Check out a driveItem resource to prevent others from editing the document, and prevent your changes from being visible until the documented is checked in. This API is supported in the following national cloud deployments. * @param CheckoutRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/driveitem-checkout?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?CheckoutRequestBuilderPostRequestConfiguration $requestCon } /** - * Check out a driveItem resource to prevent others from editing the document, and prevent your changes from being visible until the documented is checked in. + * Check out a driveItem resource to prevent others from editing the document, and prevent your changes from being visible until the documented is checked in. This API is supported in the following national cloud deployments. * @param CheckoutRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Children/ChildrenRequestBuilder.php index f7315e56814..c8188edb0e5 100644 --- a/src/Generated/Drives/Item/Items/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Children/ChildrenRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return a collection of DriveItems in the children relationship of a DriveItem. DriveItems with a non-null folder or package facet can have one or more child DriveItems. + * Return a collection of DriveItems in the children relationship of a DriveItem. DriveItems with a non-null folder or package facet can have one or more child DriveItems. This API is supported in the following national cloud deployments. * @param ChildrenRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/driveitem-list-children?view=graph-rest-1.0 Find more info here @@ -92,7 +92,7 @@ public function post(DriveItem $body, ?ChildrenRequestBuilderPostRequestConfigur } /** - * Return a collection of DriveItems in the children relationship of a DriveItem. DriveItems with a non-null folder or package facet can have one or more child DriveItems. + * Return a collection of DriveItems in the children relationship of a DriveItem. DriveItems with a non-null folder or package facet can have one or more child DriveItems. This API is supported in the following national cloud deployments. * @param ChildrenRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Children/ChildrenRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Children/ChildrenRequestBuilderGetQueryParameters.php index f20adf594aa..a953f715865 100644 --- a/src/Generated/Drives/Item/Items/Item/Children/ChildrenRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Children/ChildrenRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Return a collection of DriveItems in the children relationship of a DriveItem. DriveItems with a non-null folder or package facet can have one or more child DriveItems. + * Return a collection of DriveItems in the children relationship of a DriveItem. DriveItems with a non-null folder or package facet can have one or more child DriveItems. This API is supported in the following national cloud deployments. */ class ChildrenRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Copy/CopyRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Copy/CopyRequestBuilder.php index 7c10d384018..fb77b652bd5 100644 --- a/src/Generated/Drives/Item/Items/Item/Copy/CopyRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Copy/CopyRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Asynchronously creates a copy of an [driveItem][item-resource] (including any children), under a new parent item or with a new name. + * Asynchronously creates a copy of an driveItem][item-resource] (including any children), under a new parent item or with a new name. This API is supported in the following [national cloud deployments. * @param CopyPostRequestBody $body The request body * @param CopyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyPostRequestBody $body, ?CopyRequestBuilderPostRequestCo } /** - * Asynchronously creates a copy of an [driveItem][item-resource] (including any children), under a new parent item or with a new name. + * Asynchronously creates a copy of an driveItem][item-resource] (including any children), under a new parent item or with a new name. This API is supported in the following [national cloud deployments. * @param CopyPostRequestBody $body The request body * @param CopyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.php index 00711a303e3..0ae39078db7 100644 --- a/src/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * You can use createLink action to share a DriveItem via a sharing link. The createLink action will create a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, the existing sharing link will be returned. DriveItem resources inherit sharing permissions from their ancestors. + * You can use createLink action to share a DriveItem via a sharing link. The createLink action will create a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, the existing sharing link will be returned. DriveItem resources inherit sharing permissions from their ancestors. This API is supported in the following national cloud deployments. * @param CreateLinkPostRequestBody $body The request body * @param CreateLinkRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CreateLinkPostRequestBody $body, ?CreateLinkRequestBuilderP } /** - * You can use createLink action to share a DriveItem via a sharing link. The createLink action will create a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, the existing sharing link will be returned. DriveItem resources inherit sharing permissions from their ancestors. + * You can use createLink action to share a DriveItem via a sharing link. The createLink action will create a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, the existing sharing link will be returned. DriveItem resources inherit sharing permissions from their ancestors. This API is supported in the following national cloud deployments. * @param CreateLinkPostRequestBody $body The request body * @param CreateLinkRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.php index b2ad904bede..71c873e06cb 100644 --- a/src/Generated/Drives/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\Drives\Item\Items\Item\CreatedByUser\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\Drives\Item\Items\Item\CreatedByUser\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new CreatedByUserRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..220dd3ba724 --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/drives/{drive%2Did}/items/{driveItem%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..ab94e7eed2c --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..018c58cab59 --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/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/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..21fc1e2f578 --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/drives/{drive%2Did}/items/{driveItem%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..465167cc32a --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..ce9bd33ad75 --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Drives/Item/Items/Item/Delta/DeltaGetResponse.php b/src/Generated/Drives/Item/Items/Item/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..80358921ab8 --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/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([DriveItem::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, DriveItem::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/Drives/Item/Items/Item/Delta/DeltaRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Delta/DeltaRequestBuilder.php index 264df1e9426..4bc6e342696 100644 --- a/src/Generated/Drives/Item/Items/Item/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Drives/Item/Items/Item/Delta/DeltaResponse.php b/src/Generated/Drives/Item/Items/Item/Delta/DeltaResponse.php deleted file mode 100644 index 63ee90fedb4..00000000000 --- a/src/Generated/Drives/Item/Items/Item/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DriveItem::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, DriveItem::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/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenGetResponse.php b/src/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenGetResponse.php new file mode 100644 index 00000000000..3db23715989 --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DriveItem::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, DriveItem::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/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenRequestBuilder.php index a1a4b97cac7..e5c3bca4cf4 100644 --- a/src/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenRequestBuilder.php @@ -45,7 +45,7 @@ public function get(?DeltaWithTokenRequestBuilderGetRequestConfiguration $reques '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaWithTokenResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaWithTokenGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenResponse.php b/src/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenResponse.php deleted file mode 100644 index d818e9a05b2..00000000000 --- a/src/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DriveItem::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, DriveItem::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/Drives/Item/Items/Item/DriveItemItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.php index 5d60d47ef23..6b36577e92c 100644 --- a/src/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.php @@ -251,7 +251,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a DriveItem by using its ID or path.Note that deleting items using this method will move the items to the recycle bin instead of permanently deleting the item. + * Delete a DriveItem by using its ID or path.Deleting items using this method moves the items to the recycle bin instead of permanently deleting the item. This API is supported in the following national cloud deployments. * @param DriveItemItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/driveitem-delete?view=graph-rest-1.0 Find more info here @@ -308,11 +308,11 @@ public function getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInter } /** - * Update the metadata for a driveItem by ID or path. You can also use update to move an item to another parent by updating the item's parentReference property. + * To move a DriveItem to a new parent item, your app requests to update the parentReference of the DriveItem to move. This is a special case of the Update method.Your app can combine moving an item to a new container and updating other properties of the item into a single request. Items cannot be moved between Drives using this request. This API is supported in the following national cloud deployments. * @param DriveItem $body The request body * @param DriveItemItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/driveitem-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/driveitem-move?view=graph-rest-1.0 Find more info here */ public function patch(DriveItem $body, ?DriveItemItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -337,7 +337,7 @@ public function searchWithQ(string $q): SearchWithQRequestBuilder { } /** - * Delete a DriveItem by using its ID or path.Note that deleting items using this method will move the items to the recycle bin instead of permanently deleting the item. + * Delete a DriveItem by using its ID or path.Deleting items using this method moves the items to the recycle bin instead of permanently deleting the item. This API is supported in the following national cloud deployments. * @param DriveItemItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -375,7 +375,7 @@ public function toGetRequestInformation(?DriveItemItemRequestBuilderGetRequestCo } /** - * Update the metadata for a driveItem by ID or path. You can also use update to move an item to another parent by updating the item's parentReference property. + * To move a DriveItem to a new parent item, your app requests to update the parentReference of the DriveItem to move. This is a special case of the Update method.Your app can combine moving an item to a new container and updating other properties of the item into a single request. Items cannot be moved between Drives using this request. This API is supported in the following national cloud deployments. * @param DriveItem $body The request body * @param DriveItemItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Follow/FollowRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Follow/FollowRequestBuilder.php index e3eb5667de7..e417454b076 100644 --- a/src/Generated/Drives/Item/Items/Item/Follow/FollowRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Follow/FollowRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Follow a driveItem. + * Follow a driveItem. This API is supported in the following national cloud deployments. * @param FollowRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/driveitem-follow?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?FollowRequestBuilderPostRequestConfiguration $requestConfi } /** - * Follow a driveItem. + * Follow a driveItem. This API is supported in the following national cloud deployments. * @param FollowRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.php b/src/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.php new file mode 100644 index 00000000000..bbe16f00aaf --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ItemActivityStat::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, ItemActivityStat::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/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php index ad60638e88f..6fcf772b375 100644 --- a/src/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?GetActivitiesByIntervalRequestBuilderGetRequestConfiguratio '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetActivitiesByIntervalResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetActivitiesByIntervalGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.php b/src/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.php deleted file mode 100644 index 150585cd56a..00000000000 --- a/src/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ItemActivityStat::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, ItemActivityStat::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/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.php b/src/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.php new file mode 100644 index 00000000000..fa07ad75812 --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ItemActivityStat::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, ItemActivityStat::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/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php index dc01abdac76..82ad7bca0f5 100644 --- a/src/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php @@ -49,7 +49,7 @@ public function get(?GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWith '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.php b/src/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.php deleted file mode 100644 index a1f45995bbb..00000000000 --- a/src/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ItemActivityStat::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, ItemActivityStat::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/Drives/Item/Items/Item/Invite/InvitePostResponse.php b/src/Generated/Drives/Item/Items/Item/Invite/InvitePostResponse.php new file mode 100644 index 00000000000..d4de4edefe8 --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/Invite/InvitePostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Permission::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, Permission::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/Drives/Item/Items/Item/Invite/InviteRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Invite/InviteRequestBuilder.php index 2972a68f338..fc540293d9f 100644 --- a/src/Generated/Drives/Item/Items/Item/Invite/InviteRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Invite/InviteRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Sends a sharing invitation for a driveItem.A sharing invitation provides permissions to the recipients and optionally sends them an email with a [sharing link][]. + * Sends a sharing invitation for a driveItem.A sharing invitation provides permissions to the recipients and optionally sends them an email with a sharing link][]. This API is supported in the following [national cloud deployments. * @param InvitePostRequestBody $body The request body * @param InviteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(InvitePostRequestBody $body, ?InviteRequestBuilderPostReque '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [InviteResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [InvitePostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Sends a sharing invitation for a driveItem.A sharing invitation provides permissions to the recipients and optionally sends them an email with a [sharing link][]. + * Sends a sharing invitation for a driveItem.A sharing invitation provides permissions to the recipients and optionally sends them an email with a sharing link][]. This API is supported in the following [national cloud deployments. * @param InvitePostRequestBody $body The request body * @param InviteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Invite/InviteResponse.php b/src/Generated/Drives/Item/Items/Item/Invite/InviteResponse.php deleted file mode 100644 index bbdf1a80635..00000000000 --- a/src/Generated/Drives/Item/Items/Item/Invite/InviteResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Permission::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, Permission::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/Drives/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php index 554a55200f4..d4a8383da73 100644 --- a/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\Drives\Item\Items\Item\LastModifiedByUser\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\Drives\Item\Items\Item\LastModifiedByUser\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..d76fc6ed6fb --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/drives/{drive%2Did}/items/{driveItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..854a31436f0 --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..be2a84bd66f --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/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/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..daac07991e3 --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/drives/{drive%2Did}/items/{driveItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..a45d8aa2c25 --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..29ee6623307 --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantPostResponse.php b/src/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantPostResponse.php new file mode 100644 index 00000000000..a374b9b7040 --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Permission::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, Permission::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/Drives/Item/Items/Item/Permissions/Item/Grant/GrantRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantRequestBuilder.php index 7a1fde2b785..4cf26e99e06 100644 --- a/src/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Grant users access to a link represented by a [permission][]. + * Grant users access to a link represented by a permission][]. This API is supported in the following [national cloud deployments. * @param GrantPostRequestBody $body The request body * @param GrantRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GrantPostRequestBody $body, ?GrantRequestBuilderPostRequest '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GrantResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GrantPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Grant users access to a link represented by a [permission][]. + * Grant users access to a link represented by a permission][]. This API is supported in the following [national cloud deployments. * @param GrantPostRequestBody $body The request body * @param GrantRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantResponse.php b/src/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantResponse.php deleted file mode 100644 index 84581cb2492..00000000000 --- a/src/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Permission::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, Permission::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/Drives/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.php index c6c0160eeb5..6ce3af26867 100644 --- a/src/Generated/Drives/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove access to a DriveItem. Only sharing permissions that are not inherited can be deleted.The inheritedFrom property must be null. + * Remove access to a DriveItem. Only sharing permissions that are not inherited can be deleted.The inheritedFrom property must be null. This API is supported in the following national cloud deployments. * @param PermissionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/permission-delete?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function delete(?PermissionItemRequestBuilderDeleteRequestConfiguration $ } /** - * Return the effective sharing permission for a particular permission resource. Effective permissions of an item can come from two sources: permissions set directly on the item itself or permissions that are inherited from the item's ancestors. Callers can differentiate if the permission is inherited or not by checking the inheritedFrom property.This property is an ItemReference resource referencing the ancestor that the permission is inherited from. + * Return the effective sharing permission for a particular permission resource. Effective permissions of an item can come from two sources: permissions set directly on the item itself or permissions that are inherited from the item's ancestors. Callers can differentiate if the permission is inherited or not by checking the inheritedFrom property.This property is an ItemReference resource referencing the ancestor that the permission is inherited from. This API is supported in the following national cloud deployments. * @param PermissionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/permission-get?view=graph-rest-1.0 Find more info here @@ -78,7 +78,7 @@ public function get(?PermissionItemRequestBuilderGetRequestConfiguration $reques } /** - * Update the properties of a sharing permission by patching the permission resource. Only the roles property can be modified this way. + * Update the properties of a sharing permission by patching the permission resource. Only the roles property can be modified this way. This API is supported in the following national cloud deployments. * @param Permission $body The request body * @param PermissionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -98,7 +98,7 @@ public function patch(Permission $body, ?PermissionItemRequestBuilderPatchReques } /** - * Remove access to a DriveItem. Only sharing permissions that are not inherited can be deleted.The inheritedFrom property must be null. + * Remove access to a DriveItem. Only sharing permissions that are not inherited can be deleted.The inheritedFrom property must be null. This API is supported in the following national cloud deployments. * @param PermissionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -115,7 +115,7 @@ public function toDeleteRequestInformation(?PermissionItemRequestBuilderDeleteRe } /** - * Return the effective sharing permission for a particular permission resource. Effective permissions of an item can come from two sources: permissions set directly on the item itself or permissions that are inherited from the item's ancestors. Callers can differentiate if the permission is inherited or not by checking the inheritedFrom property.This property is an ItemReference resource referencing the ancestor that the permission is inherited from. + * Return the effective sharing permission for a particular permission resource. Effective permissions of an item can come from two sources: permissions set directly on the item itself or permissions that are inherited from the item's ancestors. Callers can differentiate if the permission is inherited or not by checking the inheritedFrom property.This property is an ItemReference resource referencing the ancestor that the permission is inherited from. This API is supported in the following national cloud deployments. * @param PermissionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -136,7 +136,7 @@ public function toGetRequestInformation(?PermissionItemRequestBuilderGetRequestC } /** - * Update the properties of a sharing permission by patching the permission resource. Only the roles property can be modified this way. + * Update the properties of a sharing permission by patching the permission resource. Only the roles property can be modified this way. This API is supported in the following national cloud deployments. * @param Permission $body The request body * @param PermissionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilderGetQueryParameters.php index 65a001eea99..e62c5422690 100644 --- a/src/Generated/Drives/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Return the effective sharing permission for a particular permission resource. Effective permissions of an item can come from two sources: permissions set directly on the item itself or permissions that are inherited from the item's ancestors. Callers can differentiate if the permission is inherited or not by checking the inheritedFrom property.This property is an ItemReference resource referencing the ancestor that the permission is inherited from. + * Return the effective sharing permission for a particular permission resource. Effective permissions of an item can come from two sources: permissions set directly on the item itself or permissions that are inherited from the item's ancestors. Callers can differentiate if the permission is inherited or not by checking the inheritedFrom property.This property is an ItemReference resource referencing the ancestor that the permission is inherited from. This API is supported in the following national cloud deployments. */ class PermissionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Permissions/PermissionsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Permissions/PermissionsRequestBuilder.php index 778c1e810e0..938ec7471c7 100644 --- a/src/Generated/Drives/Item/Items/Item/Permissions/PermissionsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Permissions/PermissionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List the effective sharing permissions on a driveItem. + * List the effective sharing permissions on a driveItem. This API is supported in the following national cloud deployments. * @param PermissionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/driveitem-list-permissions?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(Permission $body, ?PermissionsRequestBuilderPostRequestConf } /** - * List the effective sharing permissions on a driveItem. + * List the effective sharing permissions on a driveItem. This API is supported in the following national cloud deployments. * @param PermissionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Permissions/PermissionsRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Permissions/PermissionsRequestBuilderGetQueryParameters.php index 99f73add677..996e2056946 100644 --- a/src/Generated/Drives/Item/Items/Item/Permissions/PermissionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Permissions/PermissionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List the effective sharing permissions on a driveItem. + * List the effective sharing permissions on a driveItem. This API is supported in the following national cloud deployments. */ class PermissionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Restore/RestoreRequestBuilder.php index 178b4795d0e..c75d637e813 100644 --- a/src/Generated/Drives/Item/Items/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Restore/RestoreRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a driveItem that has been deleted and is currently in the recycle bin. NOTE: This functionality is currently only available for OneDrive Personal. + * Restore a driveItem that has been deleted and is currently in the recycle bin. NOTE: This functionality is currently only available for OneDrive Personal. This API is supported in the following national cloud deployments. * @param RestorePostRequestBody $body The request body * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(RestorePostRequestBody $body, ?RestoreRequestBuilderPostReq } /** - * Restore a driveItem that has been deleted and is currently in the recycle bin. NOTE: This functionality is currently only available for OneDrive Personal. + * Restore a driveItem that has been deleted and is currently in the recycle bin. NOTE: This functionality is currently only available for OneDrive Personal. This API is supported in the following national cloud deployments. * @param RestorePostRequestBody $body The request body * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQGetResponse.php b/src/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQGetResponse.php new file mode 100644 index 00000000000..a356511fa94 --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DriveItem::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, DriveItem::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/Drives/Item/Items/Item/SearchWithQ/SearchWithQRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQRequestBuilder.php index 9d0ceae9581..af69be6790c 100644 --- a/src/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQRequestBuilder.php @@ -45,7 +45,7 @@ public function get(?SearchWithQRequestBuilderGetRequestConfiguration $requestCo '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [SearchWithQResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [SearchWithQGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQResponse.php b/src/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQResponse.php deleted file mode 100644 index 08808b68254..00000000000 --- a/src/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DriveItem::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, DriveItem::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/Drives/Item/Items/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.php index 80ae399f16e..dfbe9d60f8b 100644 --- a/src/Generated/Drives/Item/Items/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Reauthorize a subscription when you receive a reauthorizationRequired challenge. + * Reauthorize a subscription when you receive a reauthorizationRequired challenge. This API is supported in the following national cloud deployments. * @param ReauthorizeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/subscription-reauthorize?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ReauthorizeRequestBuilderPostRequestConfiguration $request } /** - * Reauthorize a subscription when you receive a reauthorizationRequired challenge. + * Reauthorize a subscription when you receive a reauthorizationRequired challenge. This API is supported in the following national cloud deployments. * @param ReauthorizeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Thumbnails/ThumbnailsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Thumbnails/ThumbnailsRequestBuilder.php index 16f1889453a..da7491fcfa2 100644 --- a/src/Generated/Drives/Item/Items/Item/Thumbnails/ThumbnailsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Thumbnails/ThumbnailsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a collection of ThumbnailSet resources for a DriveItem resource. A DriveItem can be represented by zero or more ThumbnailSet resources.Each thumbnailSet can have one or more thumbnail objects, which are images that represent the item.For example, a thumbnailSet may include thumbnail objects, such as common ones including small, medium, or large. There are many ways to work with thumbnails on OneDrive.Here are the most common ones: + * Retrieve a collection of ThumbnailSet resources for a DriveItem resource. A DriveItem can be represented by zero or more ThumbnailSet resources.Each thumbnailSet can have one or more thumbnail objects, which are images that represent the item.For example, a thumbnailSet may include thumbnail objects, such as common ones including small, medium, or large. There are many ways to work with thumbnails on OneDrive.Here are the most common ones: This API is supported in the following national cloud deployments. * @param ThumbnailsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/driveitem-list-thumbnails?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(ThumbnailSet $body, ?ThumbnailsRequestBuilderPostRequestCon } /** - * Retrieve a collection of ThumbnailSet resources for a DriveItem resource. A DriveItem can be represented by zero or more ThumbnailSet resources.Each thumbnailSet can have one or more thumbnail objects, which are images that represent the item.For example, a thumbnailSet may include thumbnail objects, such as common ones including small, medium, or large. There are many ways to work with thumbnails on OneDrive.Here are the most common ones: + * Retrieve a collection of ThumbnailSet resources for a DriveItem resource. A DriveItem can be represented by zero or more ThumbnailSet resources.Each thumbnailSet can have one or more thumbnail objects, which are images that represent the item.For example, a thumbnailSet may include thumbnail objects, such as common ones including small, medium, or large. There are many ways to work with thumbnails on OneDrive.Here are the most common ones: This API is supported in the following national cloud deployments. * @param ThumbnailsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Thumbnails/ThumbnailsRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Thumbnails/ThumbnailsRequestBuilderGetQueryParameters.php index 98c54f3642c..b88ae2ef18e 100644 --- a/src/Generated/Drives/Item/Items/Item/Thumbnails/ThumbnailsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Thumbnails/ThumbnailsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a collection of ThumbnailSet resources for a DriveItem resource. A DriveItem can be represented by zero or more ThumbnailSet resources.Each thumbnailSet can have one or more thumbnail objects, which are images that represent the item.For example, a thumbnailSet may include thumbnail objects, such as common ones including small, medium, or large. There are many ways to work with thumbnails on OneDrive.Here are the most common ones: + * Retrieve a collection of ThumbnailSet resources for a DriveItem resource. A DriveItem can be represented by zero or more ThumbnailSet resources.Each thumbnailSet can have one or more thumbnail objects, which are images that represent the item.For example, a thumbnailSet may include thumbnail objects, such as common ones including small, medium, or large. There are many ways to work with thumbnails on OneDrive.Here are the most common ones: This API is supported in the following national cloud deployments. */ class ThumbnailsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Unfollow/UnfollowRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Unfollow/UnfollowRequestBuilder.php index bea87db0a7b..c10eb8def5f 100644 --- a/src/Generated/Drives/Item/Items/Item/Unfollow/UnfollowRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Unfollow/UnfollowRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Unfollow a driveItem. + * Unfollow a driveItem. This API is supported in the following national cloud deployments. * @param UnfollowRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/driveitem-unfollow?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?UnfollowRequestBuilderPostRequestConfiguration $requestCon } /** - * Unfollow a driveItem. + * Unfollow a driveItem. This API is supported in the following national cloud deployments. * @param UnfollowRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Versions/Item/DriveItemVersionItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Versions/Item/DriveItemVersionItemRequestBuilder.php index ad4f4a36882..30cd9d5863b 100644 --- a/src/Generated/Drives/Item/Items/Item/Versions/Item/DriveItemVersionItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Versions/Item/DriveItemVersionItemRequestBuilder.php @@ -66,7 +66,7 @@ public function delete(?DriveItemVersionItemRequestBuilderDeleteRequestConfigura } /** - * Retrieve the metadata for a specific version of a DriveItem. + * Retrieve the metadata for a specific version of a DriveItem. This API is supported in the following national cloud deployments. * @param DriveItemVersionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/driveitemversion-get?view=graph-rest-1.0 Find more info here @@ -121,7 +121,7 @@ public function toDeleteRequestInformation(?DriveItemVersionItemRequestBuilderDe } /** - * Retrieve the metadata for a specific version of a DriveItem. + * Retrieve the metadata for a specific version of a DriveItem. This API is supported in the following national cloud deployments. * @param DriveItemVersionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Versions/Item/DriveItemVersionItemRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Versions/Item/DriveItemVersionItemRequestBuilderGetQueryParameters.php index c559d5f5b02..7082d71abb7 100644 --- a/src/Generated/Drives/Item/Items/Item/Versions/Item/DriveItemVersionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Versions/Item/DriveItemVersionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the metadata for a specific version of a DriveItem. + * Retrieve the metadata for a specific version of a DriveItem. This API is supported in the following national cloud deployments. */ class DriveItemVersionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.php index f4b5fe0f2ff..af1988ca66b 100644 --- a/src/Generated/Drives/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a previous version of a DriveItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the file. + * Restore a previous version of a DriveItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the file. This API is supported in the following national cloud deployments. * @param RestoreVersionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/driveitemversion-restore?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?RestoreVersionRequestBuilderPostRequestConfiguration $requ } /** - * Restore a previous version of a DriveItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the file. + * Restore a previous version of a DriveItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the file. This API is supported in the following national cloud deployments. * @param RestoreVersionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Versions/VersionsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Versions/VersionsRequestBuilder.php index e88875ea402..5aad239226b 100644 --- a/src/Generated/Drives/Item/Items/Item/Versions/VersionsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Versions/VersionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * OneDrive and SharePoint can be configured to retain the history for files.Depending on the service and configuration, a new version can be created for each edit, each time the file is saved, manually, or never. Previous versions of a document may be retained for a finite period of time depending on admin settings which may be unique per user or location. + * OneDrive and SharePoint can be configured to retain the history for files.Depending on the service and configuration, a new version can be created for each edit, each time the file is saved, manually, or never. Previous versions of a document may be retained for a finite period of time depending on admin settings that may be unique per user or location. This API is supported in the following national cloud deployments. * @param VersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/driveitem-list-versions?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(DriveItemVersion $body, ?VersionsRequestBuilderPostRequestC } /** - * OneDrive and SharePoint can be configured to retain the history for files.Depending on the service and configuration, a new version can be created for each edit, each time the file is saved, manually, or never. Previous versions of a document may be retained for a finite period of time depending on admin settings which may be unique per user or location. + * OneDrive and SharePoint can be configured to retain the history for files.Depending on the service and configuration, a new version can be created for each edit, each time the file is saved, manually, or never. Previous versions of a document may be retained for a finite period of time depending on admin settings that may be unique per user or location. This API is supported in the following national cloud deployments. * @param VersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Versions/VersionsRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Versions/VersionsRequestBuilderGetQueryParameters.php index 5562f3b0f41..86a3af70594 100644 --- a/src/Generated/Drives/Item/Items/Item/Versions/VersionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Versions/VersionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * OneDrive and SharePoint can be configured to retain the history for files.Depending on the service and configuration, a new version can be created for each edit, each time the file is saved, manually, or never. Previous versions of a document may be retained for a finite period of time depending on admin settings which may be unique per user or location. + * OneDrive and SharePoint can be configured to retain the history for files.Depending on the service and configuration, a new version can be created for each edit, each time the file is saved, manually, or never. Previous versions of a document may be retained for a finite period of time depending on admin settings that may be unique per user or location. This API is supported in the following national cloud deployments. */ class VersionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Application/ApplicationRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Application/ApplicationRequestBuilder.php index f0f66747753..3970b60bf3a 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Application/ApplicationRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Application/ApplicationRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?ApplicationRequestBuilderDeleteRequestConfiguration $req } /** - * Retrieve the properties and relationships of a workbookApplication object. + * Retrieve the properties and relationships of a workbookApplication object. This API is supported in the following national cloud deployments. * @param ApplicationRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/workbookapplication-get?view=graph-rest-1.0 Find more info here @@ -113,7 +113,7 @@ public function toDeleteRequestInformation(?ApplicationRequestBuilderDeleteReque } /** - * Retrieve the properties and relationships of a workbookApplication object. + * Retrieve the properties and relationships of a workbookApplication object. This API is supported in the following national cloud deployments. * @param ApplicationRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Application/ApplicationRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Application/ApplicationRequestBuilderGetQueryParameters.php index 744ac1747be..00752c87a1a 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Application/ApplicationRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Application/ApplicationRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a workbookApplication object. + * Retrieve the properties and relationships of a workbookApplication object. This API is supported in the following national cloud deployments. */ class ApplicationRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Application/Calculate/CalculateRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Application/Calculate/CalculateRequestBuilder.php index 3da83054f5e..a2d26b61b4c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Application/Calculate/CalculateRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Application/Calculate/CalculateRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Recalculate all currently opened workbooks in Excel. + * Recalculate all currently opened workbooks in Excel. This API is supported in the following national cloud deployments. * @param CalculatePostRequestBody $body The request body * @param CalculateRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(CalculatePostRequestBody $body, ?CalculateRequestBuilderPos } /** - * Recalculate all currently opened workbooks in Excel. + * Recalculate all currently opened workbooks in Excel. This API is supported in the following national cloud deployments. * @param CalculatePostRequestBody $body The request body * @param CalculateRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/CloseSession/CloseSessionRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/CloseSession/CloseSessionRequestBuilder.php index 1e5eab0218f..45f14eaad41 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/CloseSession/CloseSessionRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/CloseSession/CloseSessionRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Use this API to close an existing workbook session. + * Use this API to close an existing workbook session. This API is supported in the following national cloud deployments. * @param CloseSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/workbook-closesession?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?CloseSessionRequestBuilderPostRequestConfiguration $reques } /** - * Use this API to close an existing workbook session. + * Use this API to close an existing workbook session. This API is supported in the following national cloud deployments. * @param CloseSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Item/WorkbookCommentReplyItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Item/WorkbookCommentReplyItemRequestBuilder.php index 9acaa2aa746..255363a5f31 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Item/WorkbookCommentReplyItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Item/WorkbookCommentReplyItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?WorkbookCommentReplyItemRequestBuilderDeleteRequestConfi } /** - * Retrieve the properties and relationships of workbookCommentReply object. + * Retrieve the properties and relationships of workbookCommentReply object. This API is supported in the following national cloud deployments. * @param WorkbookCommentReplyItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/workbookcommentreply-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?WorkbookCommentReplyItemRequestBuild } /** - * Retrieve the properties and relationships of workbookCommentReply object. + * Retrieve the properties and relationships of workbookCommentReply object. This API is supported in the following national cloud deployments. * @param WorkbookCommentReplyItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Item/WorkbookCommentReplyItemRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Item/WorkbookCommentReplyItemRequestBuilderGetQueryParameters.php index 948b1d4f0ea..79d847db991 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Item/WorkbookCommentReplyItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Item/WorkbookCommentReplyItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of workbookCommentReply object. + * Retrieve the properties and relationships of workbookCommentReply object. This API is supported in the following national cloud deployments. */ class WorkbookCommentReplyItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/RepliesRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/RepliesRequestBuilder.php index b4bf31c0897..fca2420d477 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/RepliesRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/RepliesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the properties and relationships of workbookCommentReply object. + * Retrieve the properties and relationships of workbookCommentReply object. This API is supported in the following national cloud deployments. * @param RepliesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(WorkbookCommentReply $body, ?RepliesRequestBuilderPostReque } /** - * Retrieve the properties and relationships of workbookCommentReply object. + * Retrieve the properties and relationships of workbookCommentReply object. This API is supported in the following national cloud deployments. * @param RepliesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/RepliesRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/RepliesRequestBuilderGetQueryParameters.php index 146a435a4f0..d933b629716 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/RepliesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/RepliesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of workbookCommentReply object. + * Retrieve the properties and relationships of workbookCommentReply object. This API is supported in the following national cloud deployments. */ class RepliesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/CreateSession/CreateSessionRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/CreateSession/CreateSessionRequestBuilder.php index 58325ae391f..630cdd19669 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/CreateSession/CreateSessionRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/CreateSession/CreateSessionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create a new workbook session. Excel APIs can be called in one of two modes: To represent the session in the API, use the workbook-session-id: {session-id} header. In some cases, creating a new session requires an indeterminate time to complete. Microsoft Graph also provides a long running operations pattern. This pattern provides a way to poll for creation status updates, without waiting for the creation to complete. The following are the steps: + * Create a new workbook session. Excel APIs can be called in one of two modes: To represent the session in the API, use the workbook-session-id: {session-id} header. In some cases, creating a new session requires an indeterminate time to complete. Microsoft Graph also provides a long running operations pattern. This pattern provides a way to poll for creation status updates, without waiting for the creation to complete. The following are the steps: This API is supported in the following national cloud deployments. * @param CreateSessionPostRequestBody $body The request body * @param CreateSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CreateSessionPostRequestBody $body, ?CreateSessionRequestBu } /** - * Create a new workbook session. Excel APIs can be called in one of two modes: To represent the session in the API, use the workbook-session-id: {session-id} header. In some cases, creating a new session requires an indeterminate time to complete. Microsoft Graph also provides a long running operations pattern. This pattern provides a way to poll for creation status updates, without waiting for the creation to complete. The following are the steps: + * Create a new workbook session. Excel APIs can be called in one of two modes: To represent the session in the API, use the workbook-session-id: {session-id} header. In some cases, creating a new session requires an indeterminate time to complete. Microsoft Graph also provides a long running operations pattern. This pattern provides a way to poll for creation status updates, without waiting for the creation to complete. The following are the steps: This API is supported in the following national cloud deployments. * @param CreateSessionPostRequestBody $body The request body * @param CreateSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Names/Add/AddRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Names/Add/AddRequestBuilder.php index 8f339a85089..d7396b27a04 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Names/Add/AddRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Names/Add/AddRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. + * Adds a new name to the collection of the given scope using the user's locale for the formula. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConf } /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. + * Adds a new name to the collection of the given scope using the user's locale for the formula. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.php index 79c7b94f6aa..7b6e8d363a7 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. + * Adds a new name to the collection of the given scope using the user's locale for the formula. This API is supported in the following national cloud deployments. * @param AddFormulaLocalPostRequestBody $body The request body * @param AddFormulaLocalRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(AddFormulaLocalPostRequestBody $body, ?AddFormulaLocalReque } /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. + * Adds a new name to the collection of the given scope using the user's locale for the formula. This API is supported in the following national cloud deployments. * @param AddFormulaLocalPostRequestBody $body The request body * @param AddFormulaLocalRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Names/Item/Range/RangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Names/Item/Range/RangeRequestBuilder.php index b3465f4908a..af0356b7be1 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Names/Item/Range/RangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Names/Item/Range/RangeRequestBuilder.php @@ -32,10 +32,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. + * Retrieve the properties and relationships of range object. This API is supported in the following national cloud deployments. * @param RangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/nameditem-range?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/range-get?view=graph-rest-1.0 Find more info here */ public function get(?RangeRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -51,7 +51,7 @@ public function get(?RangeRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. + * Retrieve the properties and relationships of range object. This API is supported in the following national cloud deployments. * @param RangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Names/Item/WorkbookNamedItemItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Names/Item/WorkbookNamedItemItemRequestBuilder.php index 7784a9c5019..366eedb200c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Names/Item/WorkbookNamedItemItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Names/Item/WorkbookNamedItemItemRequestBuilder.php @@ -66,7 +66,7 @@ public function delete(?WorkbookNamedItemItemRequestBuilderDeleteRequestConfigur } /** - * Retrieve the properties and relationships of nameditem object. + * Retrieve the properties and relationships of nameditem object. This API is supported in the following national cloud deployments. * @param WorkbookNamedItemItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/nameditem-get?view=graph-rest-1.0 Find more info here @@ -85,7 +85,7 @@ public function get(?WorkbookNamedItemItemRequestBuilderGetRequestConfiguration } /** - * Update the properties of nameditem object. + * Update the properties of nameditem object. This API is supported in the following national cloud deployments. * @param WorkbookNamedItem $body The request body * @param WorkbookNamedItemItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -122,7 +122,7 @@ public function toDeleteRequestInformation(?WorkbookNamedItemItemRequestBuilderD } /** - * Retrieve the properties and relationships of nameditem object. + * Retrieve the properties and relationships of nameditem object. This API is supported in the following national cloud deployments. * @param WorkbookNamedItemItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -143,7 +143,7 @@ public function toGetRequestInformation(?WorkbookNamedItemItemRequestBuilderGetR } /** - * Update the properties of nameditem object. + * Update the properties of nameditem object. This API is supported in the following national cloud deployments. * @param WorkbookNamedItem $body The request body * @param WorkbookNamedItemItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Names/Item/WorkbookNamedItemItemRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Names/Item/WorkbookNamedItemItemRequestBuilderGetQueryParameters.php index 61fbb974dff..46f7d7102c9 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Names/Item/WorkbookNamedItemItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Names/Item/WorkbookNamedItemItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of nameditem object. + * Retrieve the properties and relationships of nameditem object. This API is supported in the following national cloud deployments. */ class WorkbookNamedItemItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.php index 7dd11ab02ed..2d8a408ab9f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.php @@ -69,10 +69,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of nameditem objects. + * Retrieve a list of nameditem objects. This API is supported in the following national cloud deployments. * @param NamesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/nameditem-list?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/workbook-list-names?view=graph-rest-1.0 Find more info here */ public function get(?NamesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -107,7 +107,7 @@ public function post(WorkbookNamedItem $body, ?NamesRequestBuilderPostRequestCon } /** - * Retrieve a list of nameditem objects. + * Retrieve a list of nameditem objects. This API is supported in the following national cloud deployments. * @param NamesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilderGetQueryParameters.php index 3b417531c71..9ec78c724bc 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of nameditem objects. + * Retrieve a list of nameditem objects. This API is supported in the following national cloud deployments. */ class NamesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Operations/Item/WorkbookOperationItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Operations/Item/WorkbookOperationItemRequestBuilder.php index 35d798a1dbe..f9a28b15e07 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Operations/Item/WorkbookOperationItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Operations/Item/WorkbookOperationItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?WorkbookOperationItemRequestBuilderDeleteRequestConfigur } /** - * Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. + * Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. This API is supported in the following national cloud deployments. * @param WorkbookOperationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/workbookoperation-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?WorkbookOperationItemRequestBuilderD } /** - * Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. + * Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. This API is supported in the following national cloud deployments. * @param WorkbookOperationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Operations/Item/WorkbookOperationItemRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Operations/Item/WorkbookOperationItemRequestBuilderGetQueryParameters.php index 1331ccb092a..3cc7c02c7ec 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Operations/Item/WorkbookOperationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Operations/Item/WorkbookOperationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. + * Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. This API is supported in the following national cloud deployments. */ class WorkbookOperationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Operations/OperationsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Operations/OperationsRequestBuilder.php index aabe6029d94..64f1f4cfa77 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Operations/OperationsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Operations/OperationsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. + * Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. This API is supported in the following national cloud deployments. * @param OperationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(WorkbookOperation $body, ?OperationsRequestBuilderPostReque } /** - * Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. + * Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. This API is supported in the following national cloud deployments. * @param OperationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Operations/OperationsRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Operations/OperationsRequestBuilderGetQueryParameters.php index 71fcff1fd6d..4b04b6862f0 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Operations/OperationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Operations/OperationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. + * Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. This API is supported in the following national cloud deployments. */ class OperationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/RefreshSession/RefreshSessionRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/RefreshSession/RefreshSessionRequestBuilder.php index 4a284bd2351..07f910e39cb 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/RefreshSession/RefreshSessionRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/RefreshSession/RefreshSessionRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Use this API to refresh an existing workbook session. + * Use this API to refresh an existing workbook session. This API is supported in the following national cloud deployments. * @param RefreshSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/workbook-refreshsession?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?RefreshSessionRequestBuilderPostRequestConfiguration $requ } /** - * Use this API to refresh an existing workbook session. + * Use this API to refresh an existing workbook session. This API is supported in the following national cloud deployments. * @param RefreshSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.php index 743db0949c1..25cfcfe7220 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.php @@ -32,10 +32,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Invoke action add + * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise + * @link https://learn.microsoft.com/graph/api/tablecollection-add?view=graph-rest-1.0 Find more info here */ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -51,7 +52,7 @@ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConf } /** - * Invoke action add + * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountGetResponse.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountGetResponse.php new file mode 100644 index 00000000000..d6ec65553b4 --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountGetResponse.php @@ -0,0 +1,114 @@ +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 CountGetResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CountGetResponse { + return new CountGetResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getIntegerValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return int|null + */ + public function getValue(): ?int { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_int($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 { + $writer->writeIntegerValue('value', $this->getValue()); + $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 value property value. The value property + * @param int|null $value Value to set for the value property. + */ + public function setValue(?int $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountRequestBuilder.php index f32c9040d73..529db886669 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?CountRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CountResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CountGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountResponse.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountResponse.php deleted file mode 100644 index f8034e14186..00000000000 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 CountResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): CountResponse { - return new CountResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getIntegerValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return int|null - */ - public function getValue(): ?int { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_int($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 { - $writer->writeIntegerValue('value', $this->getValue()); - $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 value property value. The value property - * @param int|null $value Value to set for the value property. - */ - public function setValue(?int $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ClearFilters/ClearFiltersRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ClearFilters/ClearFiltersRequestBuilder.php index 08527ac045d..de936834aee 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ClearFilters/ClearFiltersRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ClearFilters/ClearFiltersRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Clears all the filters currently applied on the table. + * Clears all the filters currently applied on the table. This API is supported in the following national cloud deployments. * @param ClearFiltersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/table-clearfilters?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ClearFiltersRequestBuilderPostRequestConfiguration $reques } /** - * Clears all the filters currently applied on the table. + * Clears all the filters currently applied on the table. This API is supported in the following national cloud deployments. * @param ClearFiltersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Add/AddRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Add/AddRequestBuilder.php index 1fee48675b2..e34f92bf8a8 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Add/AddRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Add/AddRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Adds a new column to the table. + * Adds a new column to the table. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConf } /** - * Adds a new column to the table. + * Adds a new column to the table. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.php index d2de960ed49..991f6203d67 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.php @@ -62,10 +62,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of tablecolumn objects. + * Retrieve a list of tablecolumn objects. This API is supported in the following national cloud deployments. * @param ColumnsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/table-list-columns?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/tablecolumn-list?view=graph-rest-1.0 Find more info here */ public function get(?ColumnsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -90,7 +90,7 @@ public function itemAtWithIndex(int $index): ItemAtWithIndexRequestBuilder { } /** - * Use this API to create a new TableColumn. + * Use this API to create a new TableColumn. This API is supported in the following national cloud deployments. * @param WorkbookTableColumn $body The request body * @param ColumnsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -110,7 +110,7 @@ public function post(WorkbookTableColumn $body, ?ColumnsRequestBuilderPostReques } /** - * Retrieve a list of tablecolumn objects. + * Retrieve a list of tablecolumn objects. This API is supported in the following national cloud deployments. * @param ColumnsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -131,7 +131,7 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur } /** - * Use this API to create a new TableColumn. + * Use this API to create a new TableColumn. This API is supported in the following national cloud deployments. * @param WorkbookTableColumn $body The request body * @param ColumnsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php index 969dfd765b5..67c36571e1c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of tablecolumn objects. + * Retrieve a list of tablecolumn objects. This API is supported in the following national cloud deployments. */ class ColumnsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountGetResponse.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountGetResponse.php new file mode 100644 index 00000000000..71dcd882b35 --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountGetResponse.php @@ -0,0 +1,114 @@ +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 CountGetResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CountGetResponse { + return new CountGetResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getIntegerValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return int|null + */ + public function getValue(): ?int { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_int($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 { + $writer->writeIntegerValue('value', $this->getValue()); + $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 value property value. The value property + * @param int|null $value Value to set for the value property. + */ + public function setValue(?int $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountRequestBuilder.php index 7b2f0d7f6f7..48cfea76e02 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?CountRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CountResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CountGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountResponse.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountResponse.php deleted file mode 100644 index 767e490dc71..00000000000 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 CountResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): CountResponse { - return new CountResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getIntegerValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return int|null - */ - public function getValue(): ?int { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_int($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 { - $writer->writeIntegerValue('value', $this->getValue()); - $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 value property value. The value property - * @param int|null $value Value to set for the value property. - */ - public function setValue(?int $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.php index 29d67621572..02844f61413 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Gets the range object associated with the data body of the column. + * Gets the range object associated with the data body of the column. This API is supported in the following national cloud deployments. * @param DataBodyRangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/tablecolumn-databodyrange?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function get(?DataBodyRangeRequestBuilderGetRequestConfiguration $request } /** - * Gets the range object associated with the data body of the column. + * Gets the range object associated with the data body of the column. This API is supported in the following national cloud deployments. * @param DataBodyRangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.php index b48770cd42e..bf4957fd322 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Apply the given filter criteria on the given column. + * Apply the given filter criteria on the given column. This API is supported in the following national cloud deployments. * @param ApplyPostRequestBody $body The request body * @param ApplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ApplyPostRequestBody $body, ?ApplyRequestBuilderPostRequest } /** - * Apply the given filter criteria on the given column. + * Apply the given filter criteria on the given column. This API is supported in the following national cloud deployments. * @param ApplyPostRequestBody $body The request body * @param ApplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.php index 592c2153783..0bdb28f0e5f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Clear the filter on the given column. + * Clear the filter on the given column. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/filter-clear?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ClearRequestBuilderPostRequestConfiguration $requestConfig } /** - * Clear the filter on the given column. + * Clear the filter on the given column. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.php index 23593b532ec..ae42bf0e2fd 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Gets the range object associated with the header row of the column. + * Gets the range object associated with the header row of the column. This API is supported in the following national cloud deployments. * @param HeaderRowRangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/tablecolumn-headerrowrange?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function get(?HeaderRowRangeRequestBuilderGetRequestConfiguration $reques } /** - * Gets the range object associated with the header row of the column. + * Gets the range object associated with the header row of the column. This API is supported in the following national cloud deployments. * @param HeaderRowRangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Range/RangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Range/RangeRequestBuilder.php index 78c55259642..9f272701956 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Range/RangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Range/RangeRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Gets the range object associated with the entire column. + * Gets the range object associated with the entire column. This API is supported in the following national cloud deployments. * @param RangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/tablecolumn-range?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function get(?RangeRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Gets the range object associated with the entire column. + * Gets the range object associated with the entire column. This API is supported in the following national cloud deployments. * @param RangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.php index b398b03e7f1..80a85bbd396 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Gets the range object associated with the totals row of the column. + * Gets the range object associated with the totals row of the column. This API is supported in the following national cloud deployments. * @param TotalRowRangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/tablecolumn-totalrowrange?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function get(?TotalRowRangeRequestBuilderGetRequestConfiguration $request } /** - * Gets the range object associated with the totals row of the column. + * Gets the range object associated with the totals row of the column. This API is supported in the following national cloud deployments. * @param TotalRowRangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.php index 150e25dfb2b..5ea73425b08 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.php @@ -72,7 +72,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Deletes the column from the table. + * Deletes the column from the table. This API is supported in the following national cloud deployments. * @param WorkbookTableColumnItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/tablecolumn-delete?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function delete(?WorkbookTableColumnItemRequestBuilderDeleteRequestConfig } /** - * Retrieve the properties and relationships of tablecolumn object. + * Retrieve the properties and relationships of tablecolumn object. This API is supported in the following national cloud deployments. * @param WorkbookTableColumnItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/tablecolumn-get?view=graph-rest-1.0 Find more info here @@ -110,7 +110,7 @@ public function get(?WorkbookTableColumnItemRequestBuilderGetRequestConfiguratio } /** - * Update the properties of tablecolumn object. + * Update the properties of tablecolumn object. This API is supported in the following national cloud deployments. * @param WorkbookTableColumn $body The request body * @param WorkbookTableColumnItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -130,7 +130,7 @@ public function patch(WorkbookTableColumn $body, ?WorkbookTableColumnItemRequest } /** - * Deletes the column from the table. + * Deletes the column from the table. This API is supported in the following national cloud deployments. * @param WorkbookTableColumnItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -147,7 +147,7 @@ public function toDeleteRequestInformation(?WorkbookTableColumnItemRequestBuilde } /** - * Retrieve the properties and relationships of tablecolumn object. + * Retrieve the properties and relationships of tablecolumn object. This API is supported in the following national cloud deployments. * @param WorkbookTableColumnItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -168,7 +168,7 @@ public function toGetRequestInformation(?WorkbookTableColumnItemRequestBuilderGe } /** - * Update the properties of tablecolumn object. + * Update the properties of tablecolumn object. This API is supported in the following national cloud deployments. * @param WorkbookTableColumn $body The request body * @param WorkbookTableColumnItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilderGetQueryParameters.php index bb0d465153c..8d3287e02b1 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of tablecolumn object. + * Retrieve the properties and relationships of tablecolumn object. This API is supported in the following national cloud deployments. */ class WorkbookTableColumnItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php index 4b628d10d07..3ce9434abcb 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php @@ -38,7 +38,6 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * Invoke function itemAt * @param ItemAtWithIndexRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/tablecolumncollection-itemat?view=graph-rest-1.0 Find more info here */ public function get(?ItemAtWithIndexRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ConvertToRange/ConvertToRangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ConvertToRange/ConvertToRangeRequestBuilder.php index 464f0916f6e..e97f0d4cc2a 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ConvertToRange/ConvertToRangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ConvertToRange/ConvertToRangeRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Converts the table into a normal range of cells. All data is preserved. + * Converts the table into a normal range of cells. All data is preserved. This API is supported in the following national cloud deployments. * @param ConvertToRangeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/table-converttorange?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?ConvertToRangeRequestBuilderPostRequestConfiguration $requ } /** - * Converts the table into a normal range of cells. All data is preserved. + * Converts the table into a normal range of cells. All data is preserved. This API is supported in the following national cloud deployments. * @param ConvertToRangeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.php index 83e6defe628..f55830fb0c9 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Gets the range object associated with the data body of the table. + * Gets the range object associated with the data body of the table. This API is supported in the following national cloud deployments. * @param DataBodyRangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/table-databodyrange?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function get(?DataBodyRangeRequestBuilderGetRequestConfiguration $request } /** - * Gets the range object associated with the data body of the table. + * Gets the range object associated with the data body of the table. This API is supported in the following national cloud deployments. * @param DataBodyRangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.php index 5ab4c54c978..7bc5850f12a 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Gets the range object associated with header row of the table. + * Gets the range object associated with header row of the table. This API is supported in the following national cloud deployments. * @param HeaderRowRangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/table-headerrowrange?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function get(?HeaderRowRangeRequestBuilderGetRequestConfiguration $reques } /** - * Gets the range object associated with header row of the table. + * Gets the range object associated with header row of the table. This API is supported in the following national cloud deployments. * @param HeaderRowRangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Range/RangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Range/RangeRequestBuilder.php index ede66d3dc30..cd16e6accb3 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Range/RangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Range/RangeRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the range object associated with the entire table. + * Get the range object associated with the entire table. This API is supported in the following national cloud deployments. * @param RangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/table-range?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function get(?RangeRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Get the range object associated with the entire table. + * Get the range object associated with the entire table. This API is supported in the following national cloud deployments. * @param RangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.php index e68c4a4d93d..94cb1011e8c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Reapplies all the filters currently on the table. + * Reapplies all the filters currently on the table. This API is supported in the following national cloud deployments. * @param ReapplyFiltersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/table-reapplyfilters?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ReapplyFiltersRequestBuilderPostRequestConfiguration $requ } /** - * Reapplies all the filters currently on the table. + * Reapplies all the filters currently on the table. This API is supported in the following national cloud deployments. * @param ReapplyFiltersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Add/AddRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Add/AddRequestBuilder.php index a362a8e9dd5..da32b43330e 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Add/AddRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Add/AddRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. + * Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConf } /** - * Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. + * Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountGetResponse.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountGetResponse.php new file mode 100644 index 00000000000..71a54ab1cfc --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountGetResponse.php @@ -0,0 +1,114 @@ +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 CountGetResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CountGetResponse { + return new CountGetResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getIntegerValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return int|null + */ + public function getValue(): ?int { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_int($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 { + $writer->writeIntegerValue('value', $this->getValue()); + $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 value property value. The value property + * @param int|null $value Value to set for the value property. + */ + public function setValue(?int $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountRequestBuilder.php index 7be3423742d..e7fe479c611 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?CountRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CountResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CountGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountResponse.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountResponse.php deleted file mode 100644 index b41ba7fc455..00000000000 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 CountResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): CountResponse { - return new CountResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getIntegerValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return int|null - */ - public function getValue(): ?int { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_int($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 { - $writer->writeIntegerValue('value', $this->getValue()); - $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 value property value. The value property - * @param int|null $value Value to set for the value property. - */ - public function setValue(?int $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.php index 5cfb17f2fe5..0cc5711842b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Deletes the row from the table. + * Deletes the row from the table. This API is supported in the following national cloud deployments. * @param WorkbookTableRowItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/tablerow-delete?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function delete(?WorkbookTableRowItemRequestBuilderDeleteRequestConfigura } /** - * Retrieve the properties and relationships of tablerow object. + * Retrieve the properties and relationships of tablerow object. This API is supported in the following national cloud deployments. * @param WorkbookTableRowItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/tablerow-get?view=graph-rest-1.0 Find more info here @@ -78,7 +78,7 @@ public function get(?WorkbookTableRowItemRequestBuilderGetRequestConfiguration $ } /** - * Update the properties of tablerow object. + * Update the properties of tablerow object. This API is supported in the following national cloud deployments. * @param WorkbookTableRow $body The request body * @param WorkbookTableRowItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -98,7 +98,7 @@ public function patch(WorkbookTableRow $body, ?WorkbookTableRowItemRequestBuilde } /** - * Deletes the row from the table. + * Deletes the row from the table. This API is supported in the following national cloud deployments. * @param WorkbookTableRowItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -115,7 +115,7 @@ public function toDeleteRequestInformation(?WorkbookTableRowItemRequestBuilderDe } /** - * Retrieve the properties and relationships of tablerow object. + * Retrieve the properties and relationships of tablerow object. This API is supported in the following national cloud deployments. * @param WorkbookTableRowItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -136,7 +136,7 @@ public function toGetRequestInformation(?WorkbookTableRowItemRequestBuilderGetRe } /** - * Update the properties of tablerow object. + * Update the properties of tablerow object. This API is supported in the following national cloud deployments. * @param WorkbookTableRow $body The request body * @param WorkbookTableRowItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilderGetQueryParameters.php index e04f96bad2f..6225d4f4fa3 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of tablerow object. + * Retrieve the properties and relationships of tablerow object. This API is supported in the following national cloud deployments. */ class WorkbookTableRowItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php index 50a85799754..4bdc03ffe60 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php @@ -38,7 +38,6 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * Invoke function itemAt * @param ItemAtWithIndexRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/tablerowcollection-itemat?view=graph-rest-1.0 Find more info here */ public function get(?ItemAtWithIndexRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.php index e3c547bf227..096fc2fb775 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.php @@ -62,10 +62,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of tablerow objects. + * Retrieve a list of tablerow objects. This API is supported in the following national cloud deployments. * @param RowsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/table-list-rows?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/tablerow-list?view=graph-rest-1.0 Find more info here */ public function get(?RowsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -90,7 +90,7 @@ public function itemAtWithIndex(int $index): ItemAtWithIndexRequestBuilder { } /** - * Adds rows to the end of a table. Note that this API can accept multiple rows of data. Adding one row at a time can affect performance. The recommended approach is to batch the rows together in a single call rather than inserting single rows. For best results, collect the rows to be inserted on the application side and perform a single row add operation. Experiment with the number of rows to determine the ideal number of rows to use in a single API call. This request might occasionally result in a 504 HTTP error. The appropriate response to this error is to repeat the request. + * Adds rows to the end of a table. Note that this API can accept multiple rows of data. Adding one row at a time can affect performance. The recommended approach is to batch the rows together in a single call rather than inserting single rows. For best results, collect the rows to be inserted on the application side and perform a single row add operation. Experiment with the number of rows to determine the ideal number of rows to use in a single API call. This request might occasionally result in a 504 HTTP error. The appropriate response to this error is to repeat the request. This API is supported in the following national cloud deployments. * @param WorkbookTableRow $body The request body * @param RowsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -110,7 +110,7 @@ public function post(WorkbookTableRow $body, ?RowsRequestBuilderPostRequestConfi } /** - * Retrieve a list of tablerow objects. + * Retrieve a list of tablerow objects. This API is supported in the following national cloud deployments. * @param RowsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -131,7 +131,7 @@ public function toGetRequestInformation(?RowsRequestBuilderGetRequestConfigurati } /** - * Adds rows to the end of a table. Note that this API can accept multiple rows of data. Adding one row at a time can affect performance. The recommended approach is to batch the rows together in a single call rather than inserting single rows. For best results, collect the rows to be inserted on the application side and perform a single row add operation. Experiment with the number of rows to determine the ideal number of rows to use in a single API call. This request might occasionally result in a 504 HTTP error. The appropriate response to this error is to repeat the request. + * Adds rows to the end of a table. Note that this API can accept multiple rows of data. Adding one row at a time can affect performance. The recommended approach is to batch the rows together in a single call rather than inserting single rows. For best results, collect the rows to be inserted on the application side and perform a single row add operation. Experiment with the number of rows to determine the ideal number of rows to use in a single API call. This request might occasionally result in a 504 HTTP error. The appropriate response to this error is to repeat the request. This API is supported in the following national cloud deployments. * @param WorkbookTableRow $body The request body * @param RowsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilderGetQueryParameters.php index e081433bba9..7f989d5e8b3 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of tablerow objects. + * Retrieve a list of tablerow objects. This API is supported in the following national cloud deployments. */ class RowsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Apply/ApplyRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Apply/ApplyRequestBuilder.php index f9b7f44a1cb..7991641dc38 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Apply/ApplyRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Apply/ApplyRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Perform a sort operation. + * Perform a sort operation. This API is supported in the following national cloud deployments. * @param ApplyPostRequestBody $body The request body * @param ApplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ApplyPostRequestBody $body, ?ApplyRequestBuilderPostRequest } /** - * Perform a sort operation. + * Perform a sort operation. This API is supported in the following national cloud deployments. * @param ApplyPostRequestBody $body The request body * @param ApplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Clear/ClearRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Clear/ClearRequestBuilder.php index a31013ef630..4b1d6f6e53a 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Clear/ClearRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Clear/ClearRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. + * Clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/tablesort-clear?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ClearRequestBuilderPostRequestConfiguration $requestConfig } /** - * Clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. + * Clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Reapply/ReapplyRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Reapply/ReapplyRequestBuilder.php index b83bf34ebee..cd3742d9023 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Reapply/ReapplyRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Reapply/ReapplyRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Reapplies the current sorting parameters to the table. + * Reapplies the current sorting parameters to the table. This API is supported in the following national cloud deployments. * @param ReapplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/tablesort-reapply?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ReapplyRequestBuilderPostRequestConfiguration $requestConf } /** - * Reapplies the current sorting parameters to the table. + * Reapplies the current sorting parameters to the table. This API is supported in the following national cloud deployments. * @param ReapplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/SortRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/SortRequestBuilder.php index 803ee4b0255..d990b557375 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/SortRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/SortRequestBuilder.php @@ -74,7 +74,7 @@ public function delete(?SortRequestBuilderDeleteRequestConfiguration $requestCon } /** - * Retrieve the properties and relationships of tablesort object. + * Retrieve the properties and relationships of tablesort object. This API is supported in the following national cloud deployments. * @param SortRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/tablesort-get?view=graph-rest-1.0 Find more info here @@ -129,7 +129,7 @@ public function toDeleteRequestInformation(?SortRequestBuilderDeleteRequestConfi } /** - * Retrieve the properties and relationships of tablesort object. + * Retrieve the properties and relationships of tablesort object. This API is supported in the following national cloud deployments. * @param SortRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/SortRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/SortRequestBuilderGetQueryParameters.php index 67c977a7d9a..9bc7de5191f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/SortRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/SortRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of tablesort object. + * Retrieve the properties and relationships of tablesort object. This API is supported in the following national cloud deployments. */ class SortRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.php index c3f34bff7ce..54bdb20472a 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Gets the range object associated with totals row of the table. + * Gets the range object associated with totals row of the table. This API is supported in the following national cloud deployments. * @param TotalRowRangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/table-totalrowrange?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function get(?TotalRowRangeRequestBuilderGetRequestConfiguration $request } /** - * Gets the range object associated with totals row of the table. + * Gets the range object associated with totals row of the table. This API is supported in the following national cloud deployments. * @param TotalRowRangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/WorkbookTableItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/WorkbookTableItemRequestBuilder.php index 44b8e1bd535..6cb4783a4b9 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/WorkbookTableItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/WorkbookTableItemRequestBuilder.php @@ -120,7 +120,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Deletes the table. + * Deletes the table. This API is supported in the following national cloud deployments. * @param WorkbookTableItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/table-delete?view=graph-rest-1.0 Find more info here @@ -139,7 +139,7 @@ public function delete(?WorkbookTableItemRequestBuilderDeleteRequestConfiguratio } /** - * Retrieve the properties and relationships of table object. + * Retrieve the properties and relationships of table object. This API is supported in the following national cloud deployments. * @param WorkbookTableItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/table-get?view=graph-rest-1.0 Find more info here @@ -158,7 +158,7 @@ public function get(?WorkbookTableItemRequestBuilderGetRequestConfiguration $req } /** - * Update the properties of table object. + * Update the properties of table object. This API is supported in the following national cloud deployments. * @param WorkbookTable $body The request body * @param WorkbookTableItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -178,7 +178,7 @@ public function patch(WorkbookTable $body, ?WorkbookTableItemRequestBuilderPatch } /** - * Deletes the table. + * Deletes the table. This API is supported in the following national cloud deployments. * @param WorkbookTableItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -195,7 +195,7 @@ public function toDeleteRequestInformation(?WorkbookTableItemRequestBuilderDelet } /** - * Retrieve the properties and relationships of table object. + * Retrieve the properties and relationships of table object. This API is supported in the following national cloud deployments. * @param WorkbookTableItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -216,7 +216,7 @@ public function toGetRequestInformation(?WorkbookTableItemRequestBuilderGetReque } /** - * Update the properties of table object. + * Update the properties of table object. This API is supported in the following national cloud deployments. * @param WorkbookTable $body The request body * @param WorkbookTableItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/WorkbookTableItemRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/WorkbookTableItemRequestBuilderGetQueryParameters.php index 2d9bd2961cf..599b6add733 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/WorkbookTableItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/WorkbookTableItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of table object. + * Retrieve the properties and relationships of table object. This API is supported in the following national cloud deployments. */ class WorkbookTableItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.php index 195ff7328ff..7bb121561b8 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.php @@ -62,7 +62,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of table objects. + * Retrieve a list of table objects. This API is supported in the following national cloud deployments. * @param TablesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/workbook-list-tables?view=graph-rest-1.0 Find more info here @@ -109,7 +109,7 @@ public function post(WorkbookTable $body, ?TablesRequestBuilderPostRequestConfig } /** - * Retrieve a list of table objects. + * Retrieve a list of table objects. This API is supported in the following national cloud deployments. * @param TablesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilderGetQueryParameters.php index 1f7134f7213..4271d584068 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of table objects. + * Retrieve a list of table objects. This API is supported in the following national cloud deployments. */ class TablesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Add/AddRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Add/AddRequestBuilder.php index 775400e4def..72cbfe51027 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Add/AddRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Add/AddRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Adds a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you wish to activate the newly added worksheet, call.activate() on it. + * Adds a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you wish to activate the newly added worksheet, call .activate() on it. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConf } /** - * Adds a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you wish to activate the newly added worksheet, call.activate() on it. + * Adds a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you wish to activate the newly added worksheet, call .activate() on it. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Add/AddRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Add/AddRequestBuilder.php index 0171531ac0d..99e1ece3414 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Add/AddRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Add/AddRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Creates a new chart. + * Creates a new chart. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConf } /** - * Creates a new chart. + * Creates a new chart. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.php index 6fb5f6bd862..2f1599d57a3 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.php @@ -63,10 +63,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of chart objects. + * Retrieve a list of chart objects. This API is supported in the following national cloud deployments. * @param ChartsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/worksheet-list-charts?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/chart-list?view=graph-rest-1.0 Find more info here */ public function get(?ChartsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -100,7 +100,7 @@ public function itemWithName(string $name): ItemWithNameRequestBuilder { } /** - * Use this API to create a new Chart. + * Use this API to create a new Chart. This API is supported in the following national cloud deployments. * @param WorkbookChart $body The request body * @param ChartsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -120,7 +120,7 @@ public function post(WorkbookChart $body, ?ChartsRequestBuilderPostRequestConfig } /** - * Retrieve a list of chart objects. + * Retrieve a list of chart objects. This API is supported in the following national cloud deployments. * @param ChartsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -141,7 +141,7 @@ public function toGetRequestInformation(?ChartsRequestBuilderGetRequestConfigura } /** - * Use this API to create a new Chart. + * Use this API to create a new Chart. This API is supported in the following national cloud deployments. * @param WorkbookChart $body The request body * @param ChartsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilderGetQueryParameters.php index 5ac7bf23e21..32b41a82171 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of chart objects. + * Retrieve a list of chart objects. This API is supported in the following national cloud deployments. */ class ChartsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountGetResponse.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountGetResponse.php new file mode 100644 index 00000000000..3855f345b8e --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountGetResponse.php @@ -0,0 +1,114 @@ +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 CountGetResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CountGetResponse { + return new CountGetResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getIntegerValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return int|null + */ + public function getValue(): ?int { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_int($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 { + $writer->writeIntegerValue('value', $this->getValue()); + $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 value property value. The value property + * @param int|null $value Value to set for the value property. + */ + public function setValue(?int $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountRequestBuilder.php index b82387bada8..51640f882dc 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?CountRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CountResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CountGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountResponse.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountResponse.php deleted file mode 100644 index 2705acd5b79..00000000000 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 CountResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): CountResponse { - return new CountResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getIntegerValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return int|null - */ - public function getValue(): ?int { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_int($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 { - $writer->writeIntegerValue('value', $this->getValue()); - $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 value property value. The value property - * @param int|null $value Value to set for the value property. - */ - public function setValue(?int $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Font/FontRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Font/FontRequestBuilder.php index 8874b5eeb9e..634dfaeb49e 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Font/FontRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Font/FontRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?FontRequestBuilderDeleteRequestConfiguration $requestCon } /** - * Retrieve the properties and relationships of chartfont object. + * Retrieve the properties and relationships of chartfont object. This API is supported in the following national cloud deployments. * @param FontRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartfont-get?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?FontRequestBuilderGetRequestConfiguration $requestConfigura } /** - * Update the properties of chartfont object. + * Update the properties of chartfont object. This API is supported in the following national cloud deployments. * @param WorkbookChartFont $body The request body * @param FontRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?FontRequestBuilderDeleteRequestConfi } /** - * Retrieve the properties and relationships of chartfont object. + * Retrieve the properties and relationships of chartfont object. This API is supported in the following national cloud deployments. * @param FontRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -127,7 +127,7 @@ public function toGetRequestInformation(?FontRequestBuilderGetRequestConfigurati } /** - * Update the properties of chartfont object. + * Update the properties of chartfont object. This API is supported in the following national cloud deployments. * @param WorkbookChartFont $body The request body * @param FontRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Font/FontRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Font/FontRequestBuilderGetQueryParameters.php index 2529940a9ec..ff6ac763abb 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Font/FontRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Font/FontRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of chartfont object. + * Retrieve the properties and relationships of chartfont object. This API is supported in the following national cloud deployments. */ class FontRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/Clear/ClearRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/Clear/ClearRequestBuilder.php index 99b108eb5c0..cf895c06daa 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/Clear/ClearRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/Clear/ClearRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Clear the line format of a chart element. + * Clear the line format of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartlineformat-clear?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ClearRequestBuilderPostRequestConfiguration $requestConfig } /** - * Clear the line format of a chart element. + * Clear the line format of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/LineRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/LineRequestBuilder.php index 269a68a490e..cd60af2ddde 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/LineRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/LineRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?LineRequestBuilderDeleteRequestConfiguration $requestCon } /** - * Retrieve the properties and relationships of chartlineformat object. + * Retrieve the properties and relationships of chartlineformat object. This API is supported in the following national cloud deployments. * @param LineRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartlineformat-get?view=graph-rest-1.0 Find more info here @@ -77,7 +77,7 @@ public function get(?LineRequestBuilderGetRequestConfiguration $requestConfigura } /** - * Update the properties of chartlineformat object. + * Update the properties of chartlineformat object. This API is supported in the following national cloud deployments. * @param WorkbookChartLineFormat $body The request body * @param LineRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -114,7 +114,7 @@ public function toDeleteRequestInformation(?LineRequestBuilderDeleteRequestConfi } /** - * Retrieve the properties and relationships of chartlineformat object. + * Retrieve the properties and relationships of chartlineformat object. This API is supported in the following national cloud deployments. * @param LineRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -135,7 +135,7 @@ public function toGetRequestInformation(?LineRequestBuilderGetRequestConfigurati } /** - * Update the properties of chartlineformat object. + * Update the properties of chartlineformat object. This API is supported in the following national cloud deployments. * @param WorkbookChartLineFormat $body The request body * @param LineRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/LineRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/LineRequestBuilderGetQueryParameters.php index b99de622873..1705fe5d8dc 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/LineRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/LineRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of chartlineformat object. + * Retrieve the properties and relationships of chartlineformat object. This API is supported in the following national cloud deployments. */ class LineRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.php index 6e581974459..cebb6f40a51 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Clear the line format of a chart element. + * Clear the line format of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartlineformat-clear?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ClearRequestBuilderPostRequestConfiguration $requestConfig } /** - * Clear the line format of a chart element. + * Clear the line format of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.php index dd4b8af88b3..a1fb3b38969 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Clear the line format of a chart element. + * Clear the line format of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartlineformat-clear?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ClearRequestBuilderPostRequestConfiguration $requestConfig } /** - * Clear the line format of a chart element. + * Clear the line format of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/MinorGridlinesRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/MinorGridlinesRequestBuilder.php index 3c130736581..03bf37263cc 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/MinorGridlinesRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/MinorGridlinesRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?MinorGridlinesRequestBuilderDeleteRequestConfiguration $ } /** - * Retrieve the properties and relationships of chartgridlines object. + * Retrieve the properties and relationships of chartgridlines object. This API is supported in the following national cloud deployments. * @param MinorGridlinesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartgridlines-get?view=graph-rest-1.0 Find more info here @@ -77,7 +77,7 @@ public function get(?MinorGridlinesRequestBuilderGetRequestConfiguration $reques } /** - * Update the properties of chartgridlines object. + * Update the properties of chartgridlines object. This API is supported in the following national cloud deployments. * @param WorkbookChartGridlines $body The request body * @param MinorGridlinesRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -114,7 +114,7 @@ public function toDeleteRequestInformation(?MinorGridlinesRequestBuilderDeleteRe } /** - * Retrieve the properties and relationships of chartgridlines object. + * Retrieve the properties and relationships of chartgridlines object. This API is supported in the following national cloud deployments. * @param MinorGridlinesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -135,7 +135,7 @@ public function toGetRequestInformation(?MinorGridlinesRequestBuilderGetRequestC } /** - * Update the properties of chartgridlines object. + * Update the properties of chartgridlines object. This API is supported in the following national cloud deployments. * @param WorkbookChartGridlines $body The request body * @param MinorGridlinesRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/MinorGridlinesRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/MinorGridlinesRequestBuilderGetQueryParameters.php index f73de473035..16df8926ee4 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/MinorGridlinesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/MinorGridlinesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of chartgridlines object. + * Retrieve the properties and relationships of chartgridlines object. This API is supported in the following national cloud deployments. */ class MinorGridlinesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/TitleRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/TitleRequestBuilder.php index 55b5b1d2149..eaf5050ba61 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/TitleRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/TitleRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?TitleRequestBuilderDeleteRequestConfiguration $requestCo } /** - * Retrieve the properties and relationships of chartaxistitle object. + * Retrieve the properties and relationships of chartaxistitle object. This API is supported in the following national cloud deployments. * @param TitleRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartaxistitle-get?view=graph-rest-1.0 Find more info here @@ -77,7 +77,7 @@ public function get(?TitleRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Update the properties of chartaxistitle object. + * Update the properties of chartaxistitle object. This API is supported in the following national cloud deployments. * @param WorkbookChartAxisTitle $body The request body * @param TitleRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -114,7 +114,7 @@ public function toDeleteRequestInformation(?TitleRequestBuilderDeleteRequestConf } /** - * Retrieve the properties and relationships of chartaxistitle object. + * Retrieve the properties and relationships of chartaxistitle object. This API is supported in the following national cloud deployments. * @param TitleRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -135,7 +135,7 @@ public function toGetRequestInformation(?TitleRequestBuilderGetRequestConfigurat } /** - * Update the properties of chartaxistitle object. + * Update the properties of chartaxistitle object. This API is supported in the following national cloud deployments. * @param WorkbookChartAxisTitle $body The request body * @param TitleRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/TitleRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/TitleRequestBuilderGetQueryParameters.php index aa139436842..93dde603944 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/TitleRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/TitleRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of chartaxistitle object. + * Retrieve the properties and relationships of chartaxistitle object. This API is supported in the following national cloud deployments. */ class TitleRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Font/FontRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Font/FontRequestBuilder.php index 5feb1a1a365..3227002e28e 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Font/FontRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Font/FontRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?FontRequestBuilderDeleteRequestConfiguration $requestCon } /** - * Retrieve the properties and relationships of chartfont object. + * Retrieve the properties and relationships of chartfont object. This API is supported in the following national cloud deployments. * @param FontRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartfont-get?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?FontRequestBuilderGetRequestConfiguration $requestConfigura } /** - * Update the properties of chartfont object. + * Update the properties of chartfont object. This API is supported in the following national cloud deployments. * @param WorkbookChartFont $body The request body * @param FontRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?FontRequestBuilderDeleteRequestConfi } /** - * Retrieve the properties and relationships of chartfont object. + * Retrieve the properties and relationships of chartfont object. This API is supported in the following national cloud deployments. * @param FontRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -127,7 +127,7 @@ public function toGetRequestInformation(?FontRequestBuilderGetRequestConfigurati } /** - * Update the properties of chartfont object. + * Update the properties of chartfont object. This API is supported in the following national cloud deployments. * @param WorkbookChartFont $body The request body * @param FontRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Font/FontRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Font/FontRequestBuilderGetQueryParameters.php index 7a0350b7636..3d85015b48b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Font/FontRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Font/FontRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of chartfont object. + * Retrieve the properties and relationships of chartfont object. This API is supported in the following national cloud deployments. */ class FontRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/Clear/ClearRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/Clear/ClearRequestBuilder.php index 72602c71f39..6eaaad09a0e 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/Clear/ClearRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/Clear/ClearRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Clear the line format of a chart element. + * Clear the line format of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartlineformat-clear?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ClearRequestBuilderPostRequestConfiguration $requestConfig } /** - * Clear the line format of a chart element. + * Clear the line format of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/LineRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/LineRequestBuilder.php index 3b323d1f1f8..76258f0747f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/LineRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/LineRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?LineRequestBuilderDeleteRequestConfiguration $requestCon } /** - * Retrieve the properties and relationships of chartlineformat object. + * Retrieve the properties and relationships of chartlineformat object. This API is supported in the following national cloud deployments. * @param LineRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartlineformat-get?view=graph-rest-1.0 Find more info here @@ -77,7 +77,7 @@ public function get(?LineRequestBuilderGetRequestConfiguration $requestConfigura } /** - * Update the properties of chartlineformat object. + * Update the properties of chartlineformat object. This API is supported in the following national cloud deployments. * @param WorkbookChartLineFormat $body The request body * @param LineRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -114,7 +114,7 @@ public function toDeleteRequestInformation(?LineRequestBuilderDeleteRequestConfi } /** - * Retrieve the properties and relationships of chartlineformat object. + * Retrieve the properties and relationships of chartlineformat object. This API is supported in the following national cloud deployments. * @param LineRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -135,7 +135,7 @@ public function toGetRequestInformation(?LineRequestBuilderGetRequestConfigurati } /** - * Update the properties of chartlineformat object. + * Update the properties of chartlineformat object. This API is supported in the following national cloud deployments. * @param WorkbookChartLineFormat $body The request body * @param LineRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/LineRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/LineRequestBuilderGetQueryParameters.php index a4f1ab66ce3..58297d605e8 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/LineRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/LineRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of chartlineformat object. + * Retrieve the properties and relationships of chartlineformat object. This API is supported in the following national cloud deployments. */ class LineRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.php index cff7502932f..e575158ba19 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Clear the line format of a chart element. + * Clear the line format of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartlineformat-clear?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ClearRequestBuilderPostRequestConfiguration $requestConfig } /** - * Clear the line format of a chart element. + * Clear the line format of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.php index a96cf403fd1..f8dd3b4eda7 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Clear the line format of a chart element. + * Clear the line format of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartlineformat-clear?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ClearRequestBuilderPostRequestConfiguration $requestConfig } /** - * Clear the line format of a chart element. + * Clear the line format of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/MinorGridlinesRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/MinorGridlinesRequestBuilder.php index 7ce54c16ce6..6412257ed69 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/MinorGridlinesRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/MinorGridlinesRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?MinorGridlinesRequestBuilderDeleteRequestConfiguration $ } /** - * Retrieve the properties and relationships of chartgridlines object. + * Retrieve the properties and relationships of chartgridlines object. This API is supported in the following national cloud deployments. * @param MinorGridlinesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartgridlines-get?view=graph-rest-1.0 Find more info here @@ -77,7 +77,7 @@ public function get(?MinorGridlinesRequestBuilderGetRequestConfiguration $reques } /** - * Update the properties of chartgridlines object. + * Update the properties of chartgridlines object. This API is supported in the following national cloud deployments. * @param WorkbookChartGridlines $body The request body * @param MinorGridlinesRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -114,7 +114,7 @@ public function toDeleteRequestInformation(?MinorGridlinesRequestBuilderDeleteRe } /** - * Retrieve the properties and relationships of chartgridlines object. + * Retrieve the properties and relationships of chartgridlines object. This API is supported in the following national cloud deployments. * @param MinorGridlinesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -135,7 +135,7 @@ public function toGetRequestInformation(?MinorGridlinesRequestBuilderGetRequestC } /** - * Update the properties of chartgridlines object. + * Update the properties of chartgridlines object. This API is supported in the following national cloud deployments. * @param WorkbookChartGridlines $body The request body * @param MinorGridlinesRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/MinorGridlinesRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/MinorGridlinesRequestBuilderGetQueryParameters.php index 276e90a9f68..7f6e251bf4a 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/MinorGridlinesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/MinorGridlinesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of chartgridlines object. + * Retrieve the properties and relationships of chartgridlines object. This API is supported in the following national cloud deployments. */ class MinorGridlinesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/TitleRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/TitleRequestBuilder.php index 16211aaf814..9cfd0dc2932 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/TitleRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/TitleRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?TitleRequestBuilderDeleteRequestConfiguration $requestCo } /** - * Retrieve the properties and relationships of chartaxistitle object. + * Retrieve the properties and relationships of chartaxistitle object. This API is supported in the following national cloud deployments. * @param TitleRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartaxistitle-get?view=graph-rest-1.0 Find more info here @@ -77,7 +77,7 @@ public function get(?TitleRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Update the properties of chartaxistitle object. + * Update the properties of chartaxistitle object. This API is supported in the following national cloud deployments. * @param WorkbookChartAxisTitle $body The request body * @param TitleRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -114,7 +114,7 @@ public function toDeleteRequestInformation(?TitleRequestBuilderDeleteRequestConf } /** - * Retrieve the properties and relationships of chartaxistitle object. + * Retrieve the properties and relationships of chartaxistitle object. This API is supported in the following national cloud deployments. * @param TitleRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -135,7 +135,7 @@ public function toGetRequestInformation(?TitleRequestBuilderGetRequestConfigurat } /** - * Update the properties of chartaxistitle object. + * Update the properties of chartaxistitle object. This API is supported in the following national cloud deployments. * @param WorkbookChartAxisTitle $body The request body * @param TitleRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/TitleRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/TitleRequestBuilderGetQueryParameters.php index fe7849584a6..3dabe6e0e8f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/TitleRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/TitleRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of chartaxistitle object. + * Retrieve the properties and relationships of chartaxistitle object. This API is supported in the following national cloud deployments. */ class TitleRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Font/FontRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Font/FontRequestBuilder.php index 5f979e23ae7..74873094c82 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Font/FontRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Font/FontRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?FontRequestBuilderDeleteRequestConfiguration $requestCon } /** - * Retrieve the properties and relationships of chartfont object. + * Retrieve the properties and relationships of chartfont object. This API is supported in the following national cloud deployments. * @param FontRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartfont-get?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?FontRequestBuilderGetRequestConfiguration $requestConfigura } /** - * Update the properties of chartfont object. + * Update the properties of chartfont object. This API is supported in the following national cloud deployments. * @param WorkbookChartFont $body The request body * @param FontRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?FontRequestBuilderDeleteRequestConfi } /** - * Retrieve the properties and relationships of chartfont object. + * Retrieve the properties and relationships of chartfont object. This API is supported in the following national cloud deployments. * @param FontRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -127,7 +127,7 @@ public function toGetRequestInformation(?FontRequestBuilderGetRequestConfigurati } /** - * Update the properties of chartfont object. + * Update the properties of chartfont object. This API is supported in the following national cloud deployments. * @param WorkbookChartFont $body The request body * @param FontRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Font/FontRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Font/FontRequestBuilderGetQueryParameters.php index 1f6fc48d52e..3b30d36cb3a 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Font/FontRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Font/FontRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of chartfont object. + * Retrieve the properties and relationships of chartfont object. This API is supported in the following national cloud deployments. */ class FontRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/Clear/ClearRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/Clear/ClearRequestBuilder.php index 8c6a692cff0..b9537299da1 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/Clear/ClearRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/Clear/ClearRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Clear the line format of a chart element. + * Clear the line format of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartlineformat-clear?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ClearRequestBuilderPostRequestConfiguration $requestConfig } /** - * Clear the line format of a chart element. + * Clear the line format of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/LineRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/LineRequestBuilder.php index 78ffce40d7f..3e10a350a99 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/LineRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/LineRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?LineRequestBuilderDeleteRequestConfiguration $requestCon } /** - * Retrieve the properties and relationships of chartlineformat object. + * Retrieve the properties and relationships of chartlineformat object. This API is supported in the following national cloud deployments. * @param LineRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartlineformat-get?view=graph-rest-1.0 Find more info here @@ -77,7 +77,7 @@ public function get(?LineRequestBuilderGetRequestConfiguration $requestConfigura } /** - * Update the properties of chartlineformat object. + * Update the properties of chartlineformat object. This API is supported in the following national cloud deployments. * @param WorkbookChartLineFormat $body The request body * @param LineRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -114,7 +114,7 @@ public function toDeleteRequestInformation(?LineRequestBuilderDeleteRequestConfi } /** - * Retrieve the properties and relationships of chartlineformat object. + * Retrieve the properties and relationships of chartlineformat object. This API is supported in the following national cloud deployments. * @param LineRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -135,7 +135,7 @@ public function toGetRequestInformation(?LineRequestBuilderGetRequestConfigurati } /** - * Update the properties of chartlineformat object. + * Update the properties of chartlineformat object. This API is supported in the following national cloud deployments. * @param WorkbookChartLineFormat $body The request body * @param LineRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/LineRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/LineRequestBuilderGetQueryParameters.php index da40abf8e10..a0f47100e22 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/LineRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/LineRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of chartlineformat object. + * Retrieve the properties and relationships of chartlineformat object. This API is supported in the following national cloud deployments. */ class LineRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.php index 6dcdc708f6c..4c0b8e22245 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Clear the line format of a chart element. + * Clear the line format of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartlineformat-clear?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ClearRequestBuilderPostRequestConfiguration $requestConfig } /** - * Clear the line format of a chart element. + * Clear the line format of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.php index 0b2c0d860d9..268e3d0aa32 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Clear the line format of a chart element. + * Clear the line format of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartlineformat-clear?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ClearRequestBuilderPostRequestConfiguration $requestConfig } /** - * Clear the line format of a chart element. + * Clear the line format of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/MinorGridlinesRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/MinorGridlinesRequestBuilder.php index 4cd1525092a..8de8f9b70f1 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/MinorGridlinesRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/MinorGridlinesRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?MinorGridlinesRequestBuilderDeleteRequestConfiguration $ } /** - * Retrieve the properties and relationships of chartgridlines object. + * Retrieve the properties and relationships of chartgridlines object. This API is supported in the following national cloud deployments. * @param MinorGridlinesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartgridlines-get?view=graph-rest-1.0 Find more info here @@ -77,7 +77,7 @@ public function get(?MinorGridlinesRequestBuilderGetRequestConfiguration $reques } /** - * Update the properties of chartgridlines object. + * Update the properties of chartgridlines object. This API is supported in the following national cloud deployments. * @param WorkbookChartGridlines $body The request body * @param MinorGridlinesRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -114,7 +114,7 @@ public function toDeleteRequestInformation(?MinorGridlinesRequestBuilderDeleteRe } /** - * Retrieve the properties and relationships of chartgridlines object. + * Retrieve the properties and relationships of chartgridlines object. This API is supported in the following national cloud deployments. * @param MinorGridlinesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -135,7 +135,7 @@ public function toGetRequestInformation(?MinorGridlinesRequestBuilderGetRequestC } /** - * Update the properties of chartgridlines object. + * Update the properties of chartgridlines object. This API is supported in the following national cloud deployments. * @param WorkbookChartGridlines $body The request body * @param MinorGridlinesRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/MinorGridlinesRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/MinorGridlinesRequestBuilderGetQueryParameters.php index 360b20ac7c1..42cfd6f3c47 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/MinorGridlinesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/MinorGridlinesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of chartgridlines object. + * Retrieve the properties and relationships of chartgridlines object. This API is supported in the following national cloud deployments. */ class MinorGridlinesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/TitleRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/TitleRequestBuilder.php index c48c7c8c316..59cd811a100 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/TitleRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/TitleRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?TitleRequestBuilderDeleteRequestConfiguration $requestCo } /** - * Retrieve the properties and relationships of chartaxistitle object. + * Retrieve the properties and relationships of chartaxistitle object. This API is supported in the following national cloud deployments. * @param TitleRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartaxistitle-get?view=graph-rest-1.0 Find more info here @@ -77,7 +77,7 @@ public function get(?TitleRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Update the properties of chartaxistitle object. + * Update the properties of chartaxistitle object. This API is supported in the following national cloud deployments. * @param WorkbookChartAxisTitle $body The request body * @param TitleRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -114,7 +114,7 @@ public function toDeleteRequestInformation(?TitleRequestBuilderDeleteRequestConf } /** - * Retrieve the properties and relationships of chartaxistitle object. + * Retrieve the properties and relationships of chartaxistitle object. This API is supported in the following national cloud deployments. * @param TitleRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -135,7 +135,7 @@ public function toGetRequestInformation(?TitleRequestBuilderGetRequestConfigurat } /** - * Update the properties of chartaxistitle object. + * Update the properties of chartaxistitle object. This API is supported in the following national cloud deployments. * @param WorkbookChartAxisTitle $body The request body * @param TitleRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/TitleRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/TitleRequestBuilderGetQueryParameters.php index 497dfe100ec..daba5d91f0d 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/TitleRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/TitleRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of chartaxistitle object. + * Retrieve the properties and relationships of chartaxistitle object. This API is supported in the following national cloud deployments. */ class TitleRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/ValueAxisRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/ValueAxisRequestBuilder.php index ffada1be3e1..da07f638943 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/ValueAxisRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/ValueAxisRequestBuilder.php @@ -82,7 +82,7 @@ public function delete(?ValueAxisRequestBuilderDeleteRequestConfiguration $reque } /** - * Retrieve the properties and relationships of chartaxis object. + * Retrieve the properties and relationships of chartaxis object. This API is supported in the following national cloud deployments. * @param ValueAxisRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartaxis-get?view=graph-rest-1.0 Find more info here @@ -101,7 +101,7 @@ public function get(?ValueAxisRequestBuilderGetRequestConfiguration $requestConf } /** - * Update the properties of chartaxis object. + * Update the properties of chartaxis object. This API is supported in the following national cloud deployments. * @param WorkbookChartAxis $body The request body * @param ValueAxisRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -138,7 +138,7 @@ public function toDeleteRequestInformation(?ValueAxisRequestBuilderDeleteRequest } /** - * Retrieve the properties and relationships of chartaxis object. + * Retrieve the properties and relationships of chartaxis object. This API is supported in the following national cloud deployments. * @param ValueAxisRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -159,7 +159,7 @@ public function toGetRequestInformation(?ValueAxisRequestBuilderGetRequestConfig } /** - * Update the properties of chartaxis object. + * Update the properties of chartaxis object. This API is supported in the following national cloud deployments. * @param WorkbookChartAxis $body The request body * @param ValueAxisRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/ValueAxisRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/ValueAxisRequestBuilderGetQueryParameters.php index 85407a4bd3c..e557e169dc2 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/ValueAxisRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/ValueAxisRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of chartaxis object. + * Retrieve the properties and relationships of chartaxis object. This API is supported in the following national cloud deployments. */ class ValueAxisRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/DataLabelsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/DataLabelsRequestBuilder.php index 9607983566a..df883a86160 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/DataLabelsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/DataLabelsRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?DataLabelsRequestBuilderDeleteRequestConfiguration $requ } /** - * Retrieve the properties and relationships of chartdatalabels object. + * Retrieve the properties and relationships of chartdatalabels object. This API is supported in the following national cloud deployments. * @param DataLabelsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartdatalabels-get?view=graph-rest-1.0 Find more info here @@ -77,7 +77,7 @@ public function get(?DataLabelsRequestBuilderGetRequestConfiguration $requestCon } /** - * Update the properties of chartdatalabels object. + * Update the properties of chartdatalabels object. This API is supported in the following national cloud deployments. * @param WorkbookChartDataLabels $body The request body * @param DataLabelsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -114,7 +114,7 @@ public function toDeleteRequestInformation(?DataLabelsRequestBuilderDeleteReques } /** - * Retrieve the properties and relationships of chartdatalabels object. + * Retrieve the properties and relationships of chartdatalabels object. This API is supported in the following national cloud deployments. * @param DataLabelsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -135,7 +135,7 @@ public function toGetRequestInformation(?DataLabelsRequestBuilderGetRequestConfi } /** - * Update the properties of chartdatalabels object. + * Update the properties of chartdatalabels object. This API is supported in the following national cloud deployments. * @param WorkbookChartDataLabels $body The request body * @param DataLabelsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/DataLabelsRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/DataLabelsRequestBuilderGetQueryParameters.php index d0031f54be6..34c9edd50e4 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/DataLabelsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/DataLabelsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of chartdatalabels object. + * Retrieve the properties and relationships of chartdatalabels object. This API is supported in the following national cloud deployments. */ class DataLabelsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/Clear/ClearRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/Clear/ClearRequestBuilder.php index e89f0cd693f..310bd81e901 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/Clear/ClearRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/Clear/ClearRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Clear the fill color of a chart element. + * Clear the fill color of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartfill-clear?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ClearRequestBuilderPostRequestConfiguration $requestConfig } /** - * Clear the fill color of a chart element. + * Clear the fill color of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.php index ebf8a9b6caa..708082e6fa4 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Sets the fill formatting of a chart element to a uniform color. + * Sets the fill formatting of a chart element to a uniform color. This API is supported in the following national cloud deployments. * @param SetSolidColorPostRequestBody $body The request body * @param SetSolidColorRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(SetSolidColorPostRequestBody $body, ?SetSolidColorRequestBu } /** - * Sets the fill formatting of a chart element to a uniform color. + * Sets the fill formatting of a chart element to a uniform color. This API is supported in the following national cloud deployments. * @param SetSolidColorPostRequestBody $body The request body * @param SetSolidColorRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/Clear/ClearRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/Clear/ClearRequestBuilder.php index d6908ee6cc9..d5a51c3c580 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/Clear/ClearRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/Clear/ClearRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Clear the fill color of a chart element. + * Clear the fill color of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartfill-clear?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ClearRequestBuilderPostRequestConfiguration $requestConfig } /** - * Clear the fill color of a chart element. + * Clear the fill color of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.php index 4f44e8efaa5..67a3d7ab4cf 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Sets the fill formatting of a chart element to a uniform color. + * Sets the fill formatting of a chart element to a uniform color. This API is supported in the following national cloud deployments. * @param SetSolidColorPostRequestBody $body The request body * @param SetSolidColorRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(SetSolidColorPostRequestBody $body, ?SetSolidColorRequestBu } /** - * Sets the fill formatting of a chart element to a uniform color. + * Sets the fill formatting of a chart element to a uniform color. This API is supported in the following national cloud deployments. * @param SetSolidColorPostRequestBody $body The request body * @param SetSolidColorRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageGetResponse.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageGetResponse.php new file mode 100644 index 00000000000..3c6fccfe611 --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageGetResponse.php @@ -0,0 +1,114 @@ +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 ImageGetResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ImageGetResponse { + return new ImageGetResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getStringValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return string|null + */ + public function getValue(): ?string { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_string($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 { + $writer->writeStringValue('value', $this->getValue()); + $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 value property value. The value property + * @param string|null $value Value to set for the value property. + */ + public function setValue(?string $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageRequestBuilder.php index 9e7bf699c44..d4fa585b6bb 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?ImageRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [ImageResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [ImageGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageResponse.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageResponse.php deleted file mode 100644 index 9314b533492..00000000000 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 ImageResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): ImageResponse { - return new ImageResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getStringValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return string|null - */ - public function getValue(): ?string { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_string($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 { - $writer->writeStringValue('value', $this->getValue()); - $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 value property value. The value property - * @param string|null $value Value to set for the value property. - */ - public function setValue(?string $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthGetResponse.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthGetResponse.php new file mode 100644 index 00000000000..696eabeaf6c --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthGetResponse.php @@ -0,0 +1,114 @@ +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 ImageWithWidthGetResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ImageWithWidthGetResponse { + return new ImageWithWidthGetResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getStringValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return string|null + */ + public function getValue(): ?string { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_string($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 { + $writer->writeStringValue('value', $this->getValue()); + $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 value property value. The value property + * @param string|null $value Value to set for the value property. + */ + public function setValue(?string $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthRequestBuilder.php index 2cf7913a941..c878442b438 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthRequestBuilder.php @@ -45,7 +45,7 @@ public function get(?ImageWithWidthRequestBuilderGetRequestConfiguration $reques '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [ImageWithWidthResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [ImageWithWidthGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthResponse.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthResponse.php deleted file mode 100644 index 8469a9dbe13..00000000000 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 ImageWithWidthResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): ImageWithWidthResponse { - return new ImageWithWidthResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getStringValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return string|null - */ - public function getValue(): ?string { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_string($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 { - $writer->writeStringValue('value', $this->getValue()); - $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 value property value. The value property - * @param string|null $value Value to set for the value property. - */ - public function setValue(?string $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightGetResponse.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightGetResponse.php new file mode 100644 index 00000000000..994c4d993bb --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightGetResponse.php @@ -0,0 +1,114 @@ +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 ImageWithWidthWithHeightGetResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ImageWithWidthWithHeightGetResponse { + return new ImageWithWidthWithHeightGetResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getStringValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return string|null + */ + public function getValue(): ?string { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_string($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 { + $writer->writeStringValue('value', $this->getValue()); + $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 value property value. The value property + * @param string|null $value Value to set for the value property. + */ + public function setValue(?string $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightRequestBuilder.php index 3ed202b03ca..2fa71e2c655 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightRequestBuilder.php @@ -47,7 +47,7 @@ public function get(?ImageWithWidthWithHeightRequestBuilderGetRequestConfigurati '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [ImageWithWidthWithHeightResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [ImageWithWidthWithHeightGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightResponse.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightResponse.php deleted file mode 100644 index cbeb022a155..00000000000 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 ImageWithWidthWithHeightResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): ImageWithWidthWithHeightResponse { - return new ImageWithWidthWithHeightResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getStringValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return string|null - */ - public function getValue(): ?string { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_string($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 { - $writer->writeStringValue('value', $this->getValue()); - $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 value property value. The value property - * @param string|null $value Value to set for the value property. - */ - public function setValue(?string $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeGetResponse.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeGetResponse.php new file mode 100644 index 00000000000..6aeff0cf649 --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeGetResponse.php @@ -0,0 +1,114 @@ +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 ImageWithWidthWithHeightWithFittingModeGetResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ImageWithWidthWithHeightWithFittingModeGetResponse { + return new ImageWithWidthWithHeightWithFittingModeGetResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getStringValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return string|null + */ + public function getValue(): ?string { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_string($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 { + $writer->writeStringValue('value', $this->getValue()); + $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 value property value. The value property + * @param string|null $value Value to set for the value property. + */ + public function setValue(?string $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.php index 744c720501b..a2cfd5be058 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.php @@ -49,7 +49,7 @@ public function get(?ImageWithWidthWithHeightWithFittingModeRequestBuilderGetReq '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [ImageWithWidthWithHeightWithFittingModeResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [ImageWithWidthWithHeightWithFittingModeGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeResponse.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeResponse.php deleted file mode 100644 index e031a5d2bc5..00000000000 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 ImageWithWidthWithHeightWithFittingModeResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): ImageWithWidthWithHeightWithFittingModeResponse { - return new ImageWithWidthWithHeightWithFittingModeResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getStringValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return string|null - */ - public function getValue(): ?string { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_string($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 { - $writer->writeStringValue('value', $this->getValue()); - $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 value property value. The value property - * @param string|null $value Value to set for the value property. - */ - public function setValue(?string $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/Clear/ClearRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/Clear/ClearRequestBuilder.php index c600aaa52a2..72c6bbf4e5d 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/Clear/ClearRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/Clear/ClearRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Clear the fill color of a chart element. + * Clear the fill color of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartfill-clear?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ClearRequestBuilderPostRequestConfiguration $requestConfig } /** - * Clear the fill color of a chart element. + * Clear the fill color of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.php index 591f720cdc1..e2de6d08288 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Sets the fill formatting of a chart element to a uniform color. + * Sets the fill formatting of a chart element to a uniform color. This API is supported in the following national cloud deployments. * @param SetSolidColorPostRequestBody $body The request body * @param SetSolidColorRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(SetSolidColorPostRequestBody $body, ?SetSolidColorRequestBu } /** - * Sets the fill formatting of a chart element to a uniform color. + * Sets the fill formatting of a chart element to a uniform color. This API is supported in the following national cloud deployments. * @param SetSolidColorPostRequestBody $body The request body * @param SetSolidColorRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/LegendRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/LegendRequestBuilder.php index da46e52310c..57310675ad1 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/LegendRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/LegendRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?LegendRequestBuilderDeleteRequestConfiguration $requestC } /** - * Retrieve the properties and relationships of chartlegend object. + * Retrieve the properties and relationships of chartlegend object. This API is supported in the following national cloud deployments. * @param LegendRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartlegend-get?view=graph-rest-1.0 Find more info here @@ -77,7 +77,7 @@ public function get(?LegendRequestBuilderGetRequestConfiguration $requestConfigu } /** - * Update the properties of chartlegend object. + * Update the properties of chartlegend object. This API is supported in the following national cloud deployments. * @param WorkbookChartLegend $body The request body * @param LegendRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -114,7 +114,7 @@ public function toDeleteRequestInformation(?LegendRequestBuilderDeleteRequestCon } /** - * Retrieve the properties and relationships of chartlegend object. + * Retrieve the properties and relationships of chartlegend object. This API is supported in the following national cloud deployments. * @param LegendRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -135,7 +135,7 @@ public function toGetRequestInformation(?LegendRequestBuilderGetRequestConfigura } /** - * Update the properties of chartlegend object. + * Update the properties of chartlegend object. This API is supported in the following national cloud deployments. * @param WorkbookChartLegend $body The request body * @param LegendRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/LegendRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/LegendRequestBuilderGetQueryParameters.php index 62fa19efec6..e939d1370fb 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/LegendRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/LegendRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of chartlegend object. + * Retrieve the properties and relationships of chartlegend object. This API is supported in the following national cloud deployments. */ class LegendRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountGetResponse.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountGetResponse.php new file mode 100644 index 00000000000..c0d485e1d88 --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountGetResponse.php @@ -0,0 +1,114 @@ +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 CountGetResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CountGetResponse { + return new CountGetResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getIntegerValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return int|null + */ + public function getValue(): ?int { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_int($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 { + $writer->writeIntegerValue('value', $this->getValue()); + $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 value property value. The value property + * @param int|null $value Value to set for the value property. + */ + public function setValue(?int $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountRequestBuilder.php index 628df0576bf..13eb7aca0b8 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?CountRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CountResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CountGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountResponse.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountResponse.php deleted file mode 100644 index 1b147f5e029..00000000000 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 CountResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): CountResponse { - return new CountResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getIntegerValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return int|null - */ - public function getValue(): ?int { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_int($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 { - $writer->writeIntegerValue('value', $this->getValue()); - $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 value property value. The value property - * @param int|null $value Value to set for the value property. - */ - public function setValue(?int $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/Clear/ClearRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/Clear/ClearRequestBuilder.php index fab60e9a3c8..adc359cbb71 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/Clear/ClearRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/Clear/ClearRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Clear the fill color of a chart element. + * Clear the fill color of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartfill-clear?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ClearRequestBuilderPostRequestConfiguration $requestConfig } /** - * Clear the fill color of a chart element. + * Clear the fill color of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/FillRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/FillRequestBuilder.php index e77db270915..366c43db2cc 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/FillRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/FillRequestBuilder.php @@ -66,7 +66,7 @@ public function delete(?FillRequestBuilderDeleteRequestConfiguration $requestCon } /** - * Represents the fill format of a chart series, which includes background formating information. Read-only. + * Represents the fill format of a chart series, which includes background formatting information. Read-only. * @param FillRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -120,7 +120,7 @@ public function toDeleteRequestInformation(?FillRequestBuilderDeleteRequestConfi } /** - * Represents the fill format of a chart series, which includes background formating information. Read-only. + * Represents the fill format of a chart series, which includes background formatting information. Read-only. * @param FillRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/FillRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/FillRequestBuilderGetQueryParameters.php index 5ddeae6bd6e..c49e1395430 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/FillRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/FillRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Represents the fill format of a chart series, which includes background formating information. Read-only. + * Represents the fill format of a chart series, which includes background formatting information. Read-only. */ class FillRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.php index aad67f0b89e..6785b094d56 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Sets the fill formatting of a chart element to a uniform color. + * Sets the fill formatting of a chart element to a uniform color. This API is supported in the following national cloud deployments. * @param SetSolidColorPostRequestBody $body The request body * @param SetSolidColorRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(SetSolidColorPostRequestBody $body, ?SetSolidColorRequestBu } /** - * Sets the fill formatting of a chart element to a uniform color. + * Sets the fill formatting of a chart element to a uniform color. This API is supported in the following national cloud deployments. * @param SetSolidColorPostRequestBody $body The request body * @param SetSolidColorRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Line/Clear/ClearRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Line/Clear/ClearRequestBuilder.php index 13d80f52ec6..1e831c3da37 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Line/Clear/ClearRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Line/Clear/ClearRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Clear the line format of a chart element. + * Clear the line format of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartlineformat-clear?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ClearRequestBuilderPostRequestConfiguration $requestConfig } /** - * Clear the line format of a chart element. + * Clear the line format of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountGetResponse.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountGetResponse.php new file mode 100644 index 00000000000..9561e9979c3 --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountGetResponse.php @@ -0,0 +1,114 @@ +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 CountGetResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CountGetResponse { + return new CountGetResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getIntegerValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return int|null + */ + public function getValue(): ?int { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_int($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 { + $writer->writeIntegerValue('value', $this->getValue()); + $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 value property value. The value property + * @param int|null $value Value to set for the value property. + */ + public function setValue(?int $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountRequestBuilder.php index 25d521624f5..0b741441767 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?CountRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CountResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CountGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountResponse.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountResponse.php deleted file mode 100644 index 76b1f3afcd6..00000000000 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 CountResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): CountResponse { - return new CountResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getIntegerValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return int|null - */ - public function getValue(): ?int { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_int($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 { - $writer->writeIntegerValue('value', $this->getValue()); - $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 value property value. The value property - * @param int|null $value Value to set for the value property. - */ - public function setValue(?int $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/Clear/ClearRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/Clear/ClearRequestBuilder.php index af68b8a9cc9..1202e1a0b78 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/Clear/ClearRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/Clear/ClearRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Clear the fill color of a chart element. + * Clear the fill color of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartfill-clear?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ClearRequestBuilderPostRequestConfiguration $requestConfig } /** - * Clear the fill color of a chart element. + * Clear the fill color of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/FillRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/FillRequestBuilder.php index a642286a451..40dd7088690 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/FillRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/FillRequestBuilder.php @@ -66,7 +66,7 @@ public function delete(?FillRequestBuilderDeleteRequestConfiguration $requestCon } /** - * Represents the fill format of a chart, which includes background formating information. Read-only. + * Represents the fill format of a chart, which includes background formatting information. Read-only. * @param FillRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -120,7 +120,7 @@ public function toDeleteRequestInformation(?FillRequestBuilderDeleteRequestConfi } /** - * Represents the fill format of a chart, which includes background formating information. Read-only. + * Represents the fill format of a chart, which includes background formatting information. Read-only. * @param FillRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/FillRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/FillRequestBuilderGetQueryParameters.php index c30faf11a56..4763dbc4bac 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/FillRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/FillRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Represents the fill format of a chart, which includes background formating information. Read-only. + * Represents the fill format of a chart, which includes background formatting information. Read-only. */ class FillRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.php index d8a6395c631..e41a338e3ad 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Sets the fill formatting of a chart element to a uniform color. + * Sets the fill formatting of a chart element to a uniform color. This API is supported in the following national cloud deployments. * @param SetSolidColorPostRequestBody $body The request body * @param SetSolidColorRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(SetSolidColorPostRequestBody $body, ?SetSolidColorRequestBu } /** - * Sets the fill formatting of a chart element to a uniform color. + * Sets the fill formatting of a chart element to a uniform color. This API is supported in the following national cloud deployments. * @param SetSolidColorPostRequestBody $body The request body * @param SetSolidColorRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/WorkbookChartPointItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/WorkbookChartPointItemRequestBuilder.php index 3174cd428a2..d3e54b3393b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/WorkbookChartPointItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/WorkbookChartPointItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?WorkbookChartPointItemRequestBuilderDeleteRequestConfigu } /** - * Retrieve the properties and relationships of chartpoint object. + * Retrieve the properties and relationships of chartpoint object. This API is supported in the following national cloud deployments. * @param WorkbookChartPointItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartpoint-get?view=graph-rest-1.0 Find more info here @@ -113,7 +113,7 @@ public function toDeleteRequestInformation(?WorkbookChartPointItemRequestBuilder } /** - * Retrieve the properties and relationships of chartpoint object. + * Retrieve the properties and relationships of chartpoint object. This API is supported in the following national cloud deployments. * @param WorkbookChartPointItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/WorkbookChartPointItemRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/WorkbookChartPointItemRequestBuilderGetQueryParameters.php index 4d33570e59e..6ca39f84ecc 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/WorkbookChartPointItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/WorkbookChartPointItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of chartpoint object. + * Retrieve the properties and relationships of chartpoint object. This API is supported in the following national cloud deployments. */ class WorkbookChartPointItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php index 30d52017bcb..feb84b695bc 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php @@ -38,7 +38,6 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * Invoke function itemAt * @param ItemAtWithIndexRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/chartpointscollection-itemat?view=graph-rest-1.0 Find more info here */ public function get(?ItemAtWithIndexRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.php index 68ae67e1483..77f6bb9b42d 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.php @@ -54,10 +54,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of chartpoint objects. + * Retrieve a list of chartpoints objects. This API is supported in the following national cloud deployments. * @param PointsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/chartpoint-list?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/chartseries-list-points?view=graph-rest-1.0 Find more info here */ public function get(?PointsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -82,7 +82,7 @@ public function itemAtWithIndex(int $index): ItemAtWithIndexRequestBuilder { } /** - * Use this API to create a new ChartPoints. + * Use this API to create a new ChartPoints. This API is supported in the following national cloud deployments. * @param WorkbookChartPoint $body The request body * @param PointsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -102,7 +102,7 @@ public function post(WorkbookChartPoint $body, ?PointsRequestBuilderPostRequestC } /** - * Retrieve a list of chartpoint objects. + * Retrieve a list of chartpoints objects. This API is supported in the following national cloud deployments. * @param PointsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -123,7 +123,7 @@ public function toGetRequestInformation(?PointsRequestBuilderGetRequestConfigura } /** - * Use this API to create a new ChartPoints. + * Use this API to create a new ChartPoints. This API is supported in the following national cloud deployments. * @param WorkbookChartPoint $body The request body * @param PointsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilderGetQueryParameters.php index 5241a3d84b0..566a94cf526 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of chartpoint objects. + * Retrieve a list of chartpoints objects. This API is supported in the following national cloud deployments. */ class PointsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/WorkbookChartSeriesItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/WorkbookChartSeriesItemRequestBuilder.php index be0c5bc8325..9028321c0c8 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/WorkbookChartSeriesItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/WorkbookChartSeriesItemRequestBuilder.php @@ -66,7 +66,7 @@ public function delete(?WorkbookChartSeriesItemRequestBuilderDeleteRequestConfig } /** - * Retrieve the properties and relationships of chartseries object. + * Retrieve the properties and relationships of chartseries object. This API is supported in the following national cloud deployments. * @param WorkbookChartSeriesItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartseries-get?view=graph-rest-1.0 Find more info here @@ -85,7 +85,7 @@ public function get(?WorkbookChartSeriesItemRequestBuilderGetRequestConfiguratio } /** - * Update the properties of chartseries object. + * Update the properties of chartseries object. This API is supported in the following national cloud deployments. * @param WorkbookChartSeries $body The request body * @param WorkbookChartSeriesItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -122,7 +122,7 @@ public function toDeleteRequestInformation(?WorkbookChartSeriesItemRequestBuilde } /** - * Retrieve the properties and relationships of chartseries object. + * Retrieve the properties and relationships of chartseries object. This API is supported in the following national cloud deployments. * @param WorkbookChartSeriesItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -143,7 +143,7 @@ public function toGetRequestInformation(?WorkbookChartSeriesItemRequestBuilderGe } /** - * Update the properties of chartseries object. + * Update the properties of chartseries object. This API is supported in the following national cloud deployments. * @param WorkbookChartSeries $body The request body * @param WorkbookChartSeriesItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/WorkbookChartSeriesItemRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/WorkbookChartSeriesItemRequestBuilderGetQueryParameters.php index a2f35408b2f..eb896997a04 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/WorkbookChartSeriesItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/WorkbookChartSeriesItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of chartseries object. + * Retrieve the properties and relationships of chartseries object. This API is supported in the following national cloud deployments. */ class WorkbookChartSeriesItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php index f33f4ba9501..770210ef079 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php @@ -38,7 +38,6 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * Invoke function itemAt * @param ItemAtWithIndexRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/chartseriescollection-itemat?view=graph-rest-1.0 Find more info here */ public function get(?ItemAtWithIndexRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.php index fcf1252ee70..911e72ca821 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.php @@ -54,10 +54,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of chartseries objects. + * Retrieve a list of chartseries objects. This API is supported in the following national cloud deployments. * @param SeriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/chart-list-series?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/chartseries-list?view=graph-rest-1.0 Find more info here */ public function get(?SeriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -82,7 +82,7 @@ public function itemAtWithIndex(int $index): ItemAtWithIndexRequestBuilder { } /** - * Use this API to create a new ChartSeries. + * Use this API to create a new ChartSeries. This API is supported in the following national cloud deployments. * @param WorkbookChartSeries $body The request body * @param SeriesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -102,7 +102,7 @@ public function post(WorkbookChartSeries $body, ?SeriesRequestBuilderPostRequest } /** - * Retrieve a list of chartseries objects. + * Retrieve a list of chartseries objects. This API is supported in the following national cloud deployments. * @param SeriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -123,7 +123,7 @@ public function toGetRequestInformation(?SeriesRequestBuilderGetRequestConfigura } /** - * Use this API to create a new ChartSeries. + * Use this API to create a new ChartSeries. This API is supported in the following national cloud deployments. * @param WorkbookChartSeries $body The request body * @param SeriesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilderGetQueryParameters.php index 6b278a48f40..aaf1d526517 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of chartseries objects. + * Retrieve a list of chartseries objects. This API is supported in the following national cloud deployments. */ class SeriesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetData/SetDataRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetData/SetDataRequestBuilder.php index f76f85c268d..ddfabfd9e8a 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetData/SetDataRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetData/SetDataRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Resets the source data for the chart. + * Resets the source data for the chart. This API is supported in the following national cloud deployments. * @param SetDataPostRequestBody $body The request body * @param SetDataRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(SetDataPostRequestBody $body, ?SetDataRequestBuilderPostReq } /** - * Resets the source data for the chart. + * Resets the source data for the chart. This API is supported in the following national cloud deployments. * @param SetDataPostRequestBody $body The request body * @param SetDataRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetPosition/SetPositionRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetPosition/SetPositionRequestBuilder.php index b4c67aa1267..42a273a93c9 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetPosition/SetPositionRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetPosition/SetPositionRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Positions the chart relative to cells on the worksheet. + * Positions the chart relative to cells on the worksheet. This API is supported in the following national cloud deployments. * @param SetPositionPostRequestBody $body The request body * @param SetPositionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(SetPositionPostRequestBody $body, ?SetPositionRequestBuilde } /** - * Positions the chart relative to cells on the worksheet. + * Positions the chart relative to cells on the worksheet. This API is supported in the following national cloud deployments. * @param SetPositionPostRequestBody $body The request body * @param SetPositionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/Clear/ClearRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/Clear/ClearRequestBuilder.php index b460d416c32..cd53c4227b2 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/Clear/ClearRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/Clear/ClearRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Clear the fill color of a chart element. + * Clear the fill color of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chartfill-clear?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ClearRequestBuilderPostRequestConfiguration $requestConfig } /** - * Clear the fill color of a chart element. + * Clear the fill color of a chart element. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.php index d80625ec5a1..6d7b873185c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Sets the fill formatting of a chart element to a uniform color. + * Sets the fill formatting of a chart element to a uniform color. This API is supported in the following national cloud deployments. * @param SetSolidColorPostRequestBody $body The request body * @param SetSolidColorRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(SetSolidColorPostRequestBody $body, ?SetSolidColorRequestBu } /** - * Sets the fill formatting of a chart element to a uniform color. + * Sets the fill formatting of a chart element to a uniform color. This API is supported in the following national cloud deployments. * @param SetSolidColorPostRequestBody $body The request body * @param SetSolidColorRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/TitleRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/TitleRequestBuilder.php index d0b210f5b77..30f384294cc 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/TitleRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/TitleRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?TitleRequestBuilderDeleteRequestConfiguration $requestCo } /** - * Retrieve the properties and relationships of charttitle object. + * Retrieve the properties and relationships of charttitle object. This API is supported in the following national cloud deployments. * @param TitleRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/charttitle-get?view=graph-rest-1.0 Find more info here @@ -77,7 +77,7 @@ public function get(?TitleRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Update the properties of charttitle object. + * Update the properties of charttitle object. This API is supported in the following national cloud deployments. * @param WorkbookChartTitle $body The request body * @param TitleRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -114,7 +114,7 @@ public function toDeleteRequestInformation(?TitleRequestBuilderDeleteRequestConf } /** - * Retrieve the properties and relationships of charttitle object. + * Retrieve the properties and relationships of charttitle object. This API is supported in the following national cloud deployments. * @param TitleRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -135,7 +135,7 @@ public function toGetRequestInformation(?TitleRequestBuilderGetRequestConfigurat } /** - * Update the properties of charttitle object. + * Update the properties of charttitle object. This API is supported in the following national cloud deployments. * @param WorkbookChartTitle $body The request body * @param TitleRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/TitleRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/TitleRequestBuilderGetQueryParameters.php index 1fd4bd2b4ac..eadffd8d91b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/TitleRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/TitleRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of charttitle object. + * Retrieve the properties and relationships of charttitle object. This API is supported in the following national cloud deployments. */ class TitleRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/WorkbookChartItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/WorkbookChartItemRequestBuilder.php index 4354cf466c5..f19f937d2ef 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/WorkbookChartItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/WorkbookChartItemRequestBuilder.php @@ -115,7 +115,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Deletes the chart object. + * Deletes the chart object. This API is supported in the following national cloud deployments. * @param WorkbookChartItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chart-delete?view=graph-rest-1.0 Find more info here @@ -134,7 +134,7 @@ public function delete(?WorkbookChartItemRequestBuilderDeleteRequestConfiguratio } /** - * Retrieve the properties and relationships of chart object. + * Retrieve the properties and relationships of chart object. This API is supported in the following national cloud deployments. * @param WorkbookChartItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chart-get?view=graph-rest-1.0 Find more info here @@ -183,7 +183,7 @@ public function imageWithWidthWithHeightWithFittingMode(string $fittingMode, int } /** - * Update the properties of chart object. + * Update the properties of chart object. This API is supported in the following national cloud deployments. * @param WorkbookChart $body The request body * @param WorkbookChartItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -203,7 +203,7 @@ public function patch(WorkbookChart $body, ?WorkbookChartItemRequestBuilderPatch } /** - * Deletes the chart object. + * Deletes the chart object. This API is supported in the following national cloud deployments. * @param WorkbookChartItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -220,7 +220,7 @@ public function toDeleteRequestInformation(?WorkbookChartItemRequestBuilderDelet } /** - * Retrieve the properties and relationships of chart object. + * Retrieve the properties and relationships of chart object. This API is supported in the following national cloud deployments. * @param WorkbookChartItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -241,7 +241,7 @@ public function toGetRequestInformation(?WorkbookChartItemRequestBuilderGetReque } /** - * Update the properties of chart object. + * Update the properties of chart object. This API is supported in the following national cloud deployments. * @param WorkbookChart $body The request body * @param WorkbookChartItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/WorkbookChartItemRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/WorkbookChartItemRequestBuilderGetQueryParameters.php index 6073853cde2..c6ee1522356 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/WorkbookChartItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/WorkbookChartItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of chart object. + * Retrieve the properties and relationships of chart object. This API is supported in the following national cloud deployments. */ class WorkbookChartItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php index 26b2364447f..180002f066e 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php @@ -38,7 +38,6 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * Invoke function itemAt * @param ItemAtWithIndexRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/chartcollection-itemat?view=graph-rest-1.0 Find more info here */ public function get(?ItemAtWithIndexRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Add/AddRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Add/AddRequestBuilder.php index 66703772e8c..a932f9f922e 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Add/AddRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Add/AddRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. + * Adds a new name to the collection of the given scope using the user's locale for the formula. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConf } /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. + * Adds a new name to the collection of the given scope using the user's locale for the formula. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.php index a108fffee36..630ee69905c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. + * Adds a new name to the collection of the given scope using the user's locale for the formula. This API is supported in the following national cloud deployments. * @param AddFormulaLocalPostRequestBody $body The request body * @param AddFormulaLocalRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(AddFormulaLocalPostRequestBody $body, ?AddFormulaLocalReque } /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. + * Adds a new name to the collection of the given scope using the user's locale for the formula. This API is supported in the following national cloud deployments. * @param AddFormulaLocalPostRequestBody $body The request body * @param AddFormulaLocalRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/Range/RangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/Range/RangeRequestBuilder.php index ffe15c016ed..bda5c8b58a0 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/Range/RangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/Range/RangeRequestBuilder.php @@ -32,10 +32,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. + * Retrieve the properties and relationships of range object. This API is supported in the following national cloud deployments. * @param RangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/nameditem-range?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/range-get?view=graph-rest-1.0 Find more info here */ public function get(?RangeRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -51,7 +51,7 @@ public function get(?RangeRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. + * Retrieve the properties and relationships of range object. This API is supported in the following national cloud deployments. * @param RangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/NamesRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/NamesRequestBuilder.php index 3b502684466..1b9c1b02e62 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/NamesRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/NamesRequestBuilder.php @@ -69,7 +69,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of named item associated with the worksheet. + * Retrieve a list of named item associated with the worksheet. This API is supported in the following national cloud deployments. * @param NamesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/worksheet-list-names?view=graph-rest-1.0 Find more info here @@ -107,7 +107,7 @@ public function post(WorkbookNamedItem $body, ?NamesRequestBuilderPostRequestCon } /** - * Retrieve a list of named item associated with the worksheet. + * Retrieve a list of named item associated with the worksheet. This API is supported in the following national cloud deployments. * @param NamesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/NamesRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/NamesRequestBuilderGetQueryParameters.php index fd0a3b21daf..247465410ff 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/NamesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/NamesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of named item associated with the worksheet. + * Retrieve a list of named item associated with the worksheet. This API is supported in the following national cloud deployments. */ class NamesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Refresh/RefreshRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Refresh/RefreshRequestBuilder.php index 8c023b0544f..99923576891 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Refresh/RefreshRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Refresh/RefreshRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Refreshes the PivotTable. + * Refreshes the PivotTable. This API is supported in the following national cloud deployments. * @param RefreshRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/workbookpivottable-refresh?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?RefreshRequestBuilderPostRequestConfiguration $requestConf } /** - * Refreshes the PivotTable. + * Refreshes the PivotTable. This API is supported in the following national cloud deployments. * @param RefreshRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/WorkbookPivotTableItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/WorkbookPivotTableItemRequestBuilder.php index 2e9dac9fe29..65834bfb405 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/WorkbookPivotTableItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/WorkbookPivotTableItemRequestBuilder.php @@ -66,7 +66,7 @@ public function delete(?WorkbookPivotTableItemRequestBuilderDeleteRequestConfigu } /** - * Retrieve the properties and relationships of workbookPivotTable object. + * Retrieve the properties and relationships of workbookPivotTable object. This API is supported in the following national cloud deployments. * @param WorkbookPivotTableItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/workbookpivottable-get?view=graph-rest-1.0 Find more info here @@ -121,7 +121,7 @@ public function toDeleteRequestInformation(?WorkbookPivotTableItemRequestBuilder } /** - * Retrieve the properties and relationships of workbookPivotTable object. + * Retrieve the properties and relationships of workbookPivotTable object. This API is supported in the following national cloud deployments. * @param WorkbookPivotTableItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/WorkbookPivotTableItemRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/WorkbookPivotTableItemRequestBuilderGetQueryParameters.php index dd70d732a0f..7f7a4a3c30d 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/WorkbookPivotTableItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/WorkbookPivotTableItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of workbookPivotTable object. + * Retrieve the properties and relationships of workbookPivotTable object. This API is supported in the following national cloud deployments. */ class WorkbookPivotTableItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/PivotTablesRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/PivotTablesRequestBuilder.php index f89660f28c4..667d273340f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/PivotTablesRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/PivotTablesRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of workbookpivottable objects. + * Retrieve a list of workbookpivottable objects. This API is supported in the following national cloud deployments. * @param PivotTablesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/workbookworksheet-list-pivottables?view=graph-rest-1.0 Find more info here @@ -99,7 +99,7 @@ public function post(WorkbookPivotTable $body, ?PivotTablesRequestBuilderPostReq } /** - * Retrieve a list of workbookpivottable objects. + * Retrieve a list of workbookpivottable objects. This API is supported in the following national cloud deployments. * @param PivotTablesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/PivotTablesRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/PivotTablesRequestBuilderGetQueryParameters.php index cf1c6813a3e..9168de3eb30 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/PivotTablesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/PivotTablesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of workbookpivottable objects. + * Retrieve a list of workbookpivottable objects. This API is supported in the following national cloud deployments. */ class PivotTablesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/RefreshAll/RefreshAllRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/RefreshAll/RefreshAllRequestBuilder.php index bba7cd5a8d1..b2f3923536b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/RefreshAll/RefreshAllRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/RefreshAll/RefreshAllRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Refreshes the PivotTable within a given worksheet. + * Refreshes the PivotTable within a given worksheet. This API is supported in the following national cloud deployments. * @param RefreshAllRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/workbookpivottable-refreshall?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?RefreshAllRequestBuilderPostRequestConfiguration $requestC } /** - * Refreshes the PivotTable within a given worksheet. + * Refreshes the PivotTable within a given worksheet. This API is supported in the following national cloud deployments. * @param RefreshAllRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Protect/ProtectRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Protect/ProtectRequestBuilder.php index abe38c58691..41e09336212 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Protect/ProtectRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Protect/ProtectRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Protect a worksheet. It throws if the worksheet has been protected. + * Protect a worksheet. It throws if the worksheet has been protected. This API is supported in the following national cloud deployments. * @param ProtectPostRequestBody $body The request body * @param ProtectRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ProtectPostRequestBody $body, ?ProtectRequestBuilderPostReq } /** - * Protect a worksheet. It throws if the worksheet has been protected. + * Protect a worksheet. It throws if the worksheet has been protected. This API is supported in the following national cloud deployments. * @param ProtectPostRequestBody $body The request body * @param ProtectRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/ProtectionRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/ProtectionRequestBuilder.php index 971311a2c57..13de64baf5a 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/ProtectionRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/ProtectionRequestBuilder.php @@ -66,7 +66,7 @@ public function delete(?ProtectionRequestBuilderDeleteRequestConfiguration $requ } /** - * Retrieve the properties and relationships of worksheetprotection object. + * Retrieve the properties and relationships of worksheetprotection object. This API is supported in the following national cloud deployments. * @param ProtectionRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/worksheetprotection-get?view=graph-rest-1.0 Find more info here @@ -121,7 +121,7 @@ public function toDeleteRequestInformation(?ProtectionRequestBuilderDeleteReques } /** - * Retrieve the properties and relationships of worksheetprotection object. + * Retrieve the properties and relationships of worksheetprotection object. This API is supported in the following national cloud deployments. * @param ProtectionRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/ProtectionRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/ProtectionRequestBuilderGetQueryParameters.php index 1365947fe43..ed4e733e3d4 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/ProtectionRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/ProtectionRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of worksheetprotection object. + * Retrieve the properties and relationships of worksheetprotection object. This API is supported in the following national cloud deployments. */ class ProtectionRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Unprotect/UnprotectRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Unprotect/UnprotectRequestBuilder.php index be26dd495e8..d319a0a0057 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Unprotect/UnprotectRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Unprotect/UnprotectRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Unprotect a worksheet + * Unprotect a worksheet This API is supported in the following national cloud deployments. * @param UnprotectRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/worksheetprotection-unprotect?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?UnprotectRequestBuilderPostRequestConfiguration $requestCo } /** - * Unprotect a worksheet + * Unprotect a worksheet This API is supported in the following national cloud deployments. * @param UnprotectRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.php index c22829d50be..bab698d7ea9 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.php @@ -32,10 +32,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Invoke action add + * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise + * @link https://learn.microsoft.com/graph/api/tablecollection-add?view=graph-rest-1.0 Find more info here */ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -51,7 +52,7 @@ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConf } /** - * Invoke action add + * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountGetResponse.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountGetResponse.php new file mode 100644 index 00000000000..6f6ea726e6c --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountGetResponse.php @@ -0,0 +1,114 @@ +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 CountGetResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CountGetResponse { + return new CountGetResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getIntegerValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return int|null + */ + public function getValue(): ?int { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_int($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 { + $writer->writeIntegerValue('value', $this->getValue()); + $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 value property value. The value property + * @param int|null $value Value to set for the value property. + */ + public function setValue(?int $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountRequestBuilder.php index 5d00da8b8c7..822b2fdd9f3 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?CountRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CountResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CountGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountResponse.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountResponse.php deleted file mode 100644 index 47eca6d87a9..00000000000 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 CountResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): CountResponse { - return new CountResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getIntegerValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return int|null - */ - public function getValue(): ?int { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_int($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 { - $writer->writeIntegerValue('value', $this->getValue()); - $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 value property value. The value property - * @param int|null $value Value to set for the value property. - */ - public function setValue(?int $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ClearFilters/ClearFiltersRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ClearFilters/ClearFiltersRequestBuilder.php index 251ff0dbea0..6ebe274b872 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ClearFilters/ClearFiltersRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ClearFilters/ClearFiltersRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Clears all the filters currently applied on the table. + * Clears all the filters currently applied on the table. This API is supported in the following national cloud deployments. * @param ClearFiltersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/table-clearfilters?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ClearFiltersRequestBuilderPostRequestConfiguration $reques } /** - * Clears all the filters currently applied on the table. + * Clears all the filters currently applied on the table. This API is supported in the following national cloud deployments. * @param ClearFiltersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Add/AddRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Add/AddRequestBuilder.php index 26544bc796e..ef79fc04a60 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Add/AddRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Add/AddRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Adds a new column to the table. + * Adds a new column to the table. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConf } /** - * Adds a new column to the table. + * Adds a new column to the table. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.php index 6f543cc8dc3..c7bb1b930b5 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.php @@ -62,10 +62,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of tablecolumn objects. + * Retrieve a list of tablecolumn objects. This API is supported in the following national cloud deployments. * @param ColumnsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/table-list-columns?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/tablecolumn-list?view=graph-rest-1.0 Find more info here */ public function get(?ColumnsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -90,7 +90,7 @@ public function itemAtWithIndex(int $index): ItemAtWithIndexRequestBuilder { } /** - * Use this API to create a new TableColumn. + * Use this API to create a new TableColumn. This API is supported in the following national cloud deployments. * @param WorkbookTableColumn $body The request body * @param ColumnsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -110,7 +110,7 @@ public function post(WorkbookTableColumn $body, ?ColumnsRequestBuilderPostReques } /** - * Retrieve a list of tablecolumn objects. + * Retrieve a list of tablecolumn objects. This API is supported in the following national cloud deployments. * @param ColumnsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -131,7 +131,7 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur } /** - * Use this API to create a new TableColumn. + * Use this API to create a new TableColumn. This API is supported in the following national cloud deployments. * @param WorkbookTableColumn $body The request body * @param ColumnsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php index 5f4a3382cdd..d5a7af7b0a5 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of tablecolumn objects. + * Retrieve a list of tablecolumn objects. This API is supported in the following national cloud deployments. */ class ColumnsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountGetResponse.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountGetResponse.php new file mode 100644 index 00000000000..bc445794ea8 --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountGetResponse.php @@ -0,0 +1,114 @@ +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 CountGetResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CountGetResponse { + return new CountGetResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getIntegerValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return int|null + */ + public function getValue(): ?int { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_int($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 { + $writer->writeIntegerValue('value', $this->getValue()); + $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 value property value. The value property + * @param int|null $value Value to set for the value property. + */ + public function setValue(?int $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountRequestBuilder.php index 95c0394357e..5f57ba7247b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?CountRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CountResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CountGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountResponse.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountResponse.php deleted file mode 100644 index 7adcf6e3e23..00000000000 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 CountResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): CountResponse { - return new CountResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getIntegerValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return int|null - */ - public function getValue(): ?int { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_int($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 { - $writer->writeIntegerValue('value', $this->getValue()); - $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 value property value. The value property - * @param int|null $value Value to set for the value property. - */ - public function setValue(?int $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.php index f012ca5143a..eae17447026 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Gets the range object associated with the data body of the column. + * Gets the range object associated with the data body of the column. This API is supported in the following national cloud deployments. * @param DataBodyRangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/tablecolumn-databodyrange?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function get(?DataBodyRangeRequestBuilderGetRequestConfiguration $request } /** - * Gets the range object associated with the data body of the column. + * Gets the range object associated with the data body of the column. This API is supported in the following national cloud deployments. * @param DataBodyRangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.php index 3d7edb97584..36fd11d9995 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Apply the given filter criteria on the given column. + * Apply the given filter criteria on the given column. This API is supported in the following national cloud deployments. * @param ApplyPostRequestBody $body The request body * @param ApplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ApplyPostRequestBody $body, ?ApplyRequestBuilderPostRequest } /** - * Apply the given filter criteria on the given column. + * Apply the given filter criteria on the given column. This API is supported in the following national cloud deployments. * @param ApplyPostRequestBody $body The request body * @param ApplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.php index 4dac036ed7b..24afba65e36 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Clear the filter on the given column. + * Clear the filter on the given column. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/filter-clear?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ClearRequestBuilderPostRequestConfiguration $requestConfig } /** - * Clear the filter on the given column. + * Clear the filter on the given column. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.php index dbef0647caf..6ee76bba5e7 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Gets the range object associated with the header row of the column. + * Gets the range object associated with the header row of the column. This API is supported in the following national cloud deployments. * @param HeaderRowRangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/tablecolumn-headerrowrange?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function get(?HeaderRowRangeRequestBuilderGetRequestConfiguration $reques } /** - * Gets the range object associated with the header row of the column. + * Gets the range object associated with the header row of the column. This API is supported in the following national cloud deployments. * @param HeaderRowRangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Range/RangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Range/RangeRequestBuilder.php index cd8a9c98dd2..36b5f407826 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Range/RangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Range/RangeRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Gets the range object associated with the entire column. + * Gets the range object associated with the entire column. This API is supported in the following national cloud deployments. * @param RangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/tablecolumn-range?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function get(?RangeRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Gets the range object associated with the entire column. + * Gets the range object associated with the entire column. This API is supported in the following national cloud deployments. * @param RangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.php index f1c0f6ffb33..1a4b2953f49 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Gets the range object associated with the totals row of the column. + * Gets the range object associated with the totals row of the column. This API is supported in the following national cloud deployments. * @param TotalRowRangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/tablecolumn-totalrowrange?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function get(?TotalRowRangeRequestBuilderGetRequestConfiguration $request } /** - * Gets the range object associated with the totals row of the column. + * Gets the range object associated with the totals row of the column. This API is supported in the following national cloud deployments. * @param TotalRowRangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.php index 099d41c6679..89a590c645c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.php @@ -72,7 +72,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Deletes the column from the table. + * Deletes the column from the table. This API is supported in the following national cloud deployments. * @param WorkbookTableColumnItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/tablecolumn-delete?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function delete(?WorkbookTableColumnItemRequestBuilderDeleteRequestConfig } /** - * Retrieve the properties and relationships of tablecolumn object. + * Retrieve the properties and relationships of tablecolumn object. This API is supported in the following national cloud deployments. * @param WorkbookTableColumnItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/tablecolumn-get?view=graph-rest-1.0 Find more info here @@ -110,7 +110,7 @@ public function get(?WorkbookTableColumnItemRequestBuilderGetRequestConfiguratio } /** - * Update the properties of tablecolumn object. + * Update the properties of tablecolumn object. This API is supported in the following national cloud deployments. * @param WorkbookTableColumn $body The request body * @param WorkbookTableColumnItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -130,7 +130,7 @@ public function patch(WorkbookTableColumn $body, ?WorkbookTableColumnItemRequest } /** - * Deletes the column from the table. + * Deletes the column from the table. This API is supported in the following national cloud deployments. * @param WorkbookTableColumnItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -147,7 +147,7 @@ public function toDeleteRequestInformation(?WorkbookTableColumnItemRequestBuilde } /** - * Retrieve the properties and relationships of tablecolumn object. + * Retrieve the properties and relationships of tablecolumn object. This API is supported in the following national cloud deployments. * @param WorkbookTableColumnItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -168,7 +168,7 @@ public function toGetRequestInformation(?WorkbookTableColumnItemRequestBuilderGe } /** - * Update the properties of tablecolumn object. + * Update the properties of tablecolumn object. This API is supported in the following national cloud deployments. * @param WorkbookTableColumn $body The request body * @param WorkbookTableColumnItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilderGetQueryParameters.php index 797bbd02ac9..3094797a055 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of tablecolumn object. + * Retrieve the properties and relationships of tablecolumn object. This API is supported in the following national cloud deployments. */ class WorkbookTableColumnItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php index 7892147bc7a..a759fa01c8d 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php @@ -38,7 +38,6 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * Invoke function itemAt * @param ItemAtWithIndexRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/tablecolumncollection-itemat?view=graph-rest-1.0 Find more info here */ public function get(?ItemAtWithIndexRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ConvertToRange/ConvertToRangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ConvertToRange/ConvertToRangeRequestBuilder.php index 483f5ca0c61..7ae70c0958b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ConvertToRange/ConvertToRangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ConvertToRange/ConvertToRangeRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Converts the table into a normal range of cells. All data is preserved. + * Converts the table into a normal range of cells. All data is preserved. This API is supported in the following national cloud deployments. * @param ConvertToRangeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/table-converttorange?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?ConvertToRangeRequestBuilderPostRequestConfiguration $requ } /** - * Converts the table into a normal range of cells. All data is preserved. + * Converts the table into a normal range of cells. All data is preserved. This API is supported in the following national cloud deployments. * @param ConvertToRangeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.php index e38df8d02f7..3a5eef1b592 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Gets the range object associated with the data body of the table. + * Gets the range object associated with the data body of the table. This API is supported in the following national cloud deployments. * @param DataBodyRangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/table-databodyrange?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function get(?DataBodyRangeRequestBuilderGetRequestConfiguration $request } /** - * Gets the range object associated with the data body of the table. + * Gets the range object associated with the data body of the table. This API is supported in the following national cloud deployments. * @param DataBodyRangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.php index 7c43b948c58..23419e4c8ec 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Gets the range object associated with header row of the table. + * Gets the range object associated with header row of the table. This API is supported in the following national cloud deployments. * @param HeaderRowRangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/table-headerrowrange?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function get(?HeaderRowRangeRequestBuilderGetRequestConfiguration $reques } /** - * Gets the range object associated with header row of the table. + * Gets the range object associated with header row of the table. This API is supported in the following national cloud deployments. * @param HeaderRowRangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Range/RangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Range/RangeRequestBuilder.php index 277b6be55c2..f66e3abecda 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Range/RangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Range/RangeRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the range object associated with the entire table. + * Get the range object associated with the entire table. This API is supported in the following national cloud deployments. * @param RangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/table-range?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function get(?RangeRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Get the range object associated with the entire table. + * Get the range object associated with the entire table. This API is supported in the following national cloud deployments. * @param RangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.php index 5d3b98d00de..9478de051a8 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Reapplies all the filters currently on the table. + * Reapplies all the filters currently on the table. This API is supported in the following national cloud deployments. * @param ReapplyFiltersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/table-reapplyfilters?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ReapplyFiltersRequestBuilderPostRequestConfiguration $requ } /** - * Reapplies all the filters currently on the table. + * Reapplies all the filters currently on the table. This API is supported in the following national cloud deployments. * @param ReapplyFiltersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Add/AddRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Add/AddRequestBuilder.php index 1182be660cc..c411cd03259 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Add/AddRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Add/AddRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. + * Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConf } /** - * Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. + * Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountGetResponse.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountGetResponse.php new file mode 100644 index 00000000000..c2274e2fd9d --- /dev/null +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountGetResponse.php @@ -0,0 +1,114 @@ +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 CountGetResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CountGetResponse { + return new CountGetResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getIntegerValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return int|null + */ + public function getValue(): ?int { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_int($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 { + $writer->writeIntegerValue('value', $this->getValue()); + $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 value property value. The value property + * @param int|null $value Value to set for the value property. + */ + public function setValue(?int $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountRequestBuilder.php index 30ea1d446af..3096fa56437 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?CountRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CountResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CountGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountResponse.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountResponse.php deleted file mode 100644 index b2c3e4622da..00000000000 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 CountResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): CountResponse { - return new CountResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getIntegerValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return int|null - */ - public function getValue(): ?int { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_int($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 { - $writer->writeIntegerValue('value', $this->getValue()); - $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 value property value. The value property - * @param int|null $value Value to set for the value property. - */ - public function setValue(?int $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.php index ec90e674a65..ad51c07729e 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Deletes the row from the table. + * Deletes the row from the table. This API is supported in the following national cloud deployments. * @param WorkbookTableRowItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/tablerow-delete?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function delete(?WorkbookTableRowItemRequestBuilderDeleteRequestConfigura } /** - * Retrieve the properties and relationships of tablerow object. + * Retrieve the properties and relationships of tablerow object. This API is supported in the following national cloud deployments. * @param WorkbookTableRowItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/tablerow-get?view=graph-rest-1.0 Find more info here @@ -78,7 +78,7 @@ public function get(?WorkbookTableRowItemRequestBuilderGetRequestConfiguration $ } /** - * Update the properties of tablerow object. + * Update the properties of tablerow object. This API is supported in the following national cloud deployments. * @param WorkbookTableRow $body The request body * @param WorkbookTableRowItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -98,7 +98,7 @@ public function patch(WorkbookTableRow $body, ?WorkbookTableRowItemRequestBuilde } /** - * Deletes the row from the table. + * Deletes the row from the table. This API is supported in the following national cloud deployments. * @param WorkbookTableRowItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -115,7 +115,7 @@ public function toDeleteRequestInformation(?WorkbookTableRowItemRequestBuilderDe } /** - * Retrieve the properties and relationships of tablerow object. + * Retrieve the properties and relationships of tablerow object. This API is supported in the following national cloud deployments. * @param WorkbookTableRowItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -136,7 +136,7 @@ public function toGetRequestInformation(?WorkbookTableRowItemRequestBuilderGetRe } /** - * Update the properties of tablerow object. + * Update the properties of tablerow object. This API is supported in the following national cloud deployments. * @param WorkbookTableRow $body The request body * @param WorkbookTableRowItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilderGetQueryParameters.php index 9d2a2c7558a..6ec5a8c5731 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of tablerow object. + * Retrieve the properties and relationships of tablerow object. This API is supported in the following national cloud deployments. */ class WorkbookTableRowItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php index 8c74c7440c4..beb4a607b8e 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php @@ -38,7 +38,6 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * Invoke function itemAt * @param ItemAtWithIndexRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/tablerowcollection-itemat?view=graph-rest-1.0 Find more info here */ public function get(?ItemAtWithIndexRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.php index 975dbff923b..f5155f323c8 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.php @@ -62,10 +62,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of tablerow objects. + * Retrieve a list of tablerow objects. This API is supported in the following national cloud deployments. * @param RowsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/table-list-rows?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/tablerow-list?view=graph-rest-1.0 Find more info here */ public function get(?RowsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -90,7 +90,7 @@ public function itemAtWithIndex(int $index): ItemAtWithIndexRequestBuilder { } /** - * Adds rows to the end of a table. Note that this API can accept multiple rows of data. Adding one row at a time can affect performance. The recommended approach is to batch the rows together in a single call rather than inserting single rows. For best results, collect the rows to be inserted on the application side and perform a single row add operation. Experiment with the number of rows to determine the ideal number of rows to use in a single API call. This request might occasionally result in a 504 HTTP error. The appropriate response to this error is to repeat the request. + * Adds rows to the end of a table. Note that this API can accept multiple rows of data. Adding one row at a time can affect performance. The recommended approach is to batch the rows together in a single call rather than inserting single rows. For best results, collect the rows to be inserted on the application side and perform a single row add operation. Experiment with the number of rows to determine the ideal number of rows to use in a single API call. This request might occasionally result in a 504 HTTP error. The appropriate response to this error is to repeat the request. This API is supported in the following national cloud deployments. * @param WorkbookTableRow $body The request body * @param RowsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -110,7 +110,7 @@ public function post(WorkbookTableRow $body, ?RowsRequestBuilderPostRequestConfi } /** - * Retrieve a list of tablerow objects. + * Retrieve a list of tablerow objects. This API is supported in the following national cloud deployments. * @param RowsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -131,7 +131,7 @@ public function toGetRequestInformation(?RowsRequestBuilderGetRequestConfigurati } /** - * Adds rows to the end of a table. Note that this API can accept multiple rows of data. Adding one row at a time can affect performance. The recommended approach is to batch the rows together in a single call rather than inserting single rows. For best results, collect the rows to be inserted on the application side and perform a single row add operation. Experiment with the number of rows to determine the ideal number of rows to use in a single API call. This request might occasionally result in a 504 HTTP error. The appropriate response to this error is to repeat the request. + * Adds rows to the end of a table. Note that this API can accept multiple rows of data. Adding one row at a time can affect performance. The recommended approach is to batch the rows together in a single call rather than inserting single rows. For best results, collect the rows to be inserted on the application side and perform a single row add operation. Experiment with the number of rows to determine the ideal number of rows to use in a single API call. This request might occasionally result in a 504 HTTP error. The appropriate response to this error is to repeat the request. This API is supported in the following national cloud deployments. * @param WorkbookTableRow $body The request body * @param RowsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilderGetQueryParameters.php index 2f136cbcbf1..8fe5bce3c9d 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of tablerow objects. + * Retrieve a list of tablerow objects. This API is supported in the following national cloud deployments. */ class RowsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Apply/ApplyRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Apply/ApplyRequestBuilder.php index 0952df1d320..90e22e52ccc 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Apply/ApplyRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Apply/ApplyRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Perform a sort operation. + * Perform a sort operation. This API is supported in the following national cloud deployments. * @param ApplyPostRequestBody $body The request body * @param ApplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ApplyPostRequestBody $body, ?ApplyRequestBuilderPostRequest } /** - * Perform a sort operation. + * Perform a sort operation. This API is supported in the following national cloud deployments. * @param ApplyPostRequestBody $body The request body * @param ApplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Clear/ClearRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Clear/ClearRequestBuilder.php index 0542ebfdb41..ecf863f9b6d 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Clear/ClearRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Clear/ClearRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. + * Clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/tablesort-clear?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ClearRequestBuilderPostRequestConfiguration $requestConfig } /** - * Clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. + * Clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. This API is supported in the following national cloud deployments. * @param ClearRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Reapply/ReapplyRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Reapply/ReapplyRequestBuilder.php index 26c713e3834..09b36795b01 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Reapply/ReapplyRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Reapply/ReapplyRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Reapplies the current sorting parameters to the table. + * Reapplies the current sorting parameters to the table. This API is supported in the following national cloud deployments. * @param ReapplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/tablesort-reapply?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ReapplyRequestBuilderPostRequestConfiguration $requestConf } /** - * Reapplies the current sorting parameters to the table. + * Reapplies the current sorting parameters to the table. This API is supported in the following national cloud deployments. * @param ReapplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/SortRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/SortRequestBuilder.php index 67194da07eb..5301c660059 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/SortRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/SortRequestBuilder.php @@ -74,7 +74,7 @@ public function delete(?SortRequestBuilderDeleteRequestConfiguration $requestCon } /** - * Retrieve the properties and relationships of tablesort object. + * Retrieve the properties and relationships of tablesort object. This API is supported in the following national cloud deployments. * @param SortRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/tablesort-get?view=graph-rest-1.0 Find more info here @@ -129,7 +129,7 @@ public function toDeleteRequestInformation(?SortRequestBuilderDeleteRequestConfi } /** - * Retrieve the properties and relationships of tablesort object. + * Retrieve the properties and relationships of tablesort object. This API is supported in the following national cloud deployments. * @param SortRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/SortRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/SortRequestBuilderGetQueryParameters.php index c38d4dc5686..199a9e7c16b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/SortRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/SortRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of tablesort object. + * Retrieve the properties and relationships of tablesort object. This API is supported in the following national cloud deployments. */ class SortRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.php index 3bf97cfde36..0b9807e967b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Gets the range object associated with totals row of the table. + * Gets the range object associated with totals row of the table. This API is supported in the following national cloud deployments. * @param TotalRowRangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/table-totalrowrange?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function get(?TotalRowRangeRequestBuilderGetRequestConfiguration $request } /** - * Gets the range object associated with totals row of the table. + * Gets the range object associated with totals row of the table. This API is supported in the following national cloud deployments. * @param TotalRowRangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/TablesRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/TablesRequestBuilder.php index 8f1c65b7f64..26d7c0bf427 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/TablesRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/TablesRequestBuilder.php @@ -62,7 +62,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of table objects. + * Retrieve a list of table objects. This API is supported in the following national cloud deployments. * @param TablesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/worksheet-list-tables?view=graph-rest-1.0 Find more info here @@ -109,7 +109,7 @@ public function post(WorkbookTable $body, ?TablesRequestBuilderPostRequestConfig } /** - * Retrieve a list of table objects. + * Retrieve a list of table objects. This API is supported in the following national cloud deployments. * @param TablesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/TablesRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/TablesRequestBuilderGetQueryParameters.php index fcdd70f6871..f84c3521475 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/TablesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/TablesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of table objects. + * Retrieve a list of table objects. This API is supported in the following national cloud deployments. */ class TablesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/WorkbookWorksheetItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/WorkbookWorksheetItemRequestBuilder.php index 40aea01861c..c5a188fe5e9 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/WorkbookWorksheetItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/WorkbookWorksheetItemRequestBuilder.php @@ -101,7 +101,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Deletes the worksheet from the workbook. + * Deletes the worksheet from the workbook. This API is supported in the following national cloud deployments. * @param WorkbookWorksheetItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/worksheet-delete?view=graph-rest-1.0 Find more info here @@ -120,7 +120,7 @@ public function delete(?WorkbookWorksheetItemRequestBuilderDeleteRequestConfigur } /** - * Retrieve the properties and relationships of worksheet object. + * Retrieve the properties and relationships of worksheet object. This API is supported in the following national cloud deployments. * @param WorkbookWorksheetItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/worksheet-get?view=graph-rest-1.0 Find more info here @@ -139,7 +139,7 @@ public function get(?WorkbookWorksheetItemRequestBuilderGetRequestConfiguration } /** - * Update the properties of worksheet object. + * Update the properties of worksheet object. This API is supported in the following national cloud deployments. * @param WorkbookWorksheet $body The request body * @param WorkbookWorksheetItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -168,7 +168,7 @@ public function rangeWithAddress(string $address): RangeWithAddressRequestBuilde } /** - * Deletes the worksheet from the workbook. + * Deletes the worksheet from the workbook. This API is supported in the following national cloud deployments. * @param WorkbookWorksheetItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -185,7 +185,7 @@ public function toDeleteRequestInformation(?WorkbookWorksheetItemRequestBuilderD } /** - * Retrieve the properties and relationships of worksheet object. + * Retrieve the properties and relationships of worksheet object. This API is supported in the following national cloud deployments. * @param WorkbookWorksheetItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -206,7 +206,7 @@ public function toGetRequestInformation(?WorkbookWorksheetItemRequestBuilderGetR } /** - * Update the properties of worksheet object. + * Update the properties of worksheet object. This API is supported in the following national cloud deployments. * @param WorkbookWorksheet $body The request body * @param WorkbookWorksheetItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/WorkbookWorksheetItemRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/WorkbookWorksheetItemRequestBuilderGetQueryParameters.php index bda2f6c7cbf..8387c7ed7d1 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/WorkbookWorksheetItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/WorkbookWorksheetItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of worksheet object. + * Retrieve the properties and relationships of worksheet object. This API is supported in the following national cloud deployments. */ class WorkbookWorksheetItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.php index 53ee7a11d3e..ed23780baba 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.php @@ -61,10 +61,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of worksheet objects. + * Retrieve a list of worksheet objects. This API is supported in the following national cloud deployments. * @param WorksheetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/worksheet-list?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/workbook-list-worksheets?view=graph-rest-1.0 Find more info here */ public function get(?WorksheetsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -99,7 +99,7 @@ public function post(WorkbookWorksheet $body, ?WorksheetsRequestBuilderPostReque } /** - * Retrieve a list of worksheet objects. + * Retrieve a list of worksheet objects. This API is supported in the following national cloud deployments. * @param WorksheetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilderGetQueryParameters.php index 440ca03ed72..ddf43f6ecee 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of worksheet objects. + * Retrieve a list of worksheet objects. This API is supported in the following national cloud deployments. */ class WorksheetsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php b/src/Generated/Drives/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php index 95de2147a31..cd4a01417c2 100644 --- a/src/Generated/Drives/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php +++ b/src/Generated/Drives/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\Drives\Item\LastModifiedByUser\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\Drives\Item\LastModifiedByUser\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..34903d96fdf --- /dev/null +++ b/src/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/drives/{drive%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..df402c35097 --- /dev/null +++ b/src/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..4c23e5bd78e --- /dev/null +++ b/src/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/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/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..6c4bb3d8a8b --- /dev/null +++ b/src/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/drives/{drive%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..1ef5d9b0709 --- /dev/null +++ b/src/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e7227a3da3e --- /dev/null +++ b/src/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Drives/Item/Recent/RecentGetResponse.php b/src/Generated/Drives/Item/Recent/RecentGetResponse.php new file mode 100644 index 00000000000..2277eeae8d5 --- /dev/null +++ b/src/Generated/Drives/Item/Recent/RecentGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DriveItem::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, DriveItem::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/Drives/Item/Recent/RecentRequestBuilder.php b/src/Generated/Drives/Item/Recent/RecentRequestBuilder.php index 6025e792560..65843df3d15 100644 --- a/src/Generated/Drives/Item/Recent/RecentRequestBuilder.php +++ b/src/Generated/Drives/Item/Recent/RecentRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?RecentRequestBuilderGetRequestConfiguration $requestConfigu '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [RecentResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [RecentGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Drives/Item/Recent/RecentResponse.php b/src/Generated/Drives/Item/Recent/RecentResponse.php deleted file mode 100644 index 5f8ab5c56be..00000000000 --- a/src/Generated/Drives/Item/Recent/RecentResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DriveItem::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, DriveItem::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/Drives/Item/Root/RootRequestBuilder.php b/src/Generated/Drives/Item/Root/RootRequestBuilder.php index 09a991ccbf8..5cd07a9c199 100644 --- a/src/Generated/Drives/Item/Root/RootRequestBuilder.php +++ b/src/Generated/Drives/Item/Root/RootRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the metadata for a driveItem in a drive by file system path or ID.item-id is the ID of a driveItem. It may also be the unique ID of a SharePoint list item. + * Retrieve the metadata for a driveItem in a drive by file system path or ID.item-id is the ID of a driveItem. It may also be the unique ID of a SharePoint list item. This API is supported in the following national cloud deployments. * @param RootRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/driveitem-get?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function get(?RootRequestBuilderGetRequestConfiguration $requestConfigura } /** - * Retrieve the metadata for a driveItem in a drive by file system path or ID.item-id is the ID of a driveItem. It may also be the unique ID of a SharePoint list item. + * Retrieve the metadata for a driveItem in a drive by file system path or ID.item-id is the ID of a driveItem. It may also be the unique ID of a SharePoint list item. This API is supported in the following national cloud deployments. * @param RootRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Root/RootRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Root/RootRequestBuilderGetQueryParameters.php index beb9a0f131e..c043cb2c65b 100644 --- a/src/Generated/Drives/Item/Root/RootRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Root/RootRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the metadata for a driveItem in a drive by file system path or ID.item-id is the ID of a driveItem. It may also be the unique ID of a SharePoint list item. + * Retrieve the metadata for a driveItem in a drive by file system path or ID.item-id is the ID of a driveItem. It may also be the unique ID of a SharePoint list item. This API is supported in the following national cloud deployments. */ class RootRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/SearchWithQ/SearchWithQGetResponse.php b/src/Generated/Drives/Item/SearchWithQ/SearchWithQGetResponse.php new file mode 100644 index 00000000000..d2f87799eb3 --- /dev/null +++ b/src/Generated/Drives/Item/SearchWithQ/SearchWithQGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DriveItem::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, DriveItem::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/Drives/Item/SearchWithQ/SearchWithQRequestBuilder.php b/src/Generated/Drives/Item/SearchWithQ/SearchWithQRequestBuilder.php index fb310593e9e..14d9936d289 100644 --- a/src/Generated/Drives/Item/SearchWithQ/SearchWithQRequestBuilder.php +++ b/src/Generated/Drives/Item/SearchWithQ/SearchWithQRequestBuilder.php @@ -45,7 +45,7 @@ public function get(?SearchWithQRequestBuilderGetRequestConfiguration $requestCo '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [SearchWithQResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [SearchWithQGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Drives/Item/SearchWithQ/SearchWithQResponse.php b/src/Generated/Drives/Item/SearchWithQ/SearchWithQResponse.php deleted file mode 100644 index c9d018bb22d..00000000000 --- a/src/Generated/Drives/Item/SearchWithQ/SearchWithQResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DriveItem::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, DriveItem::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/Drives/Item/SharedWithMe/SharedWithMeGetResponse.php b/src/Generated/Drives/Item/SharedWithMe/SharedWithMeGetResponse.php new file mode 100644 index 00000000000..6ddd46ad8df --- /dev/null +++ b/src/Generated/Drives/Item/SharedWithMe/SharedWithMeGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DriveItem::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, DriveItem::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/Drives/Item/SharedWithMe/SharedWithMeRequestBuilder.php b/src/Generated/Drives/Item/SharedWithMe/SharedWithMeRequestBuilder.php index b5d43fbf30e..3c02eab6940 100644 --- a/src/Generated/Drives/Item/SharedWithMe/SharedWithMeRequestBuilder.php +++ b/src/Generated/Drives/Item/SharedWithMe/SharedWithMeRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?SharedWithMeRequestBuilderGetRequestConfiguration $requestC '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [SharedWithMeResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [SharedWithMeGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Drives/Item/SharedWithMe/SharedWithMeResponse.php b/src/Generated/Drives/Item/SharedWithMe/SharedWithMeResponse.php deleted file mode 100644 index 333c44449e3..00000000000 --- a/src/Generated/Drives/Item/SharedWithMe/SharedWithMeResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DriveItem::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, DriveItem::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/Drives/Item/Special/Item/DriveItemItemRequestBuilder.php b/src/Generated/Drives/Item/Special/Item/DriveItemItemRequestBuilder.php index 87a6882d39c..cb0efa233cc 100644 --- a/src/Generated/Drives/Item/Special/Item/DriveItemItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Special/Item/DriveItemItemRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. + * Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. This API is supported in the following national cloud deployments. * @param DriveItemItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/drive-get-specialfolder?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function get(?DriveItemItemRequestBuilderGetRequestConfiguration $request } /** - * Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. + * Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. This API is supported in the following national cloud deployments. * @param DriveItemItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Special/Item/DriveItemItemRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Special/Item/DriveItemItemRequestBuilderGetQueryParameters.php index fc2a4134118..9f0f8c4cc71 100644 --- a/src/Generated/Drives/Item/Special/Item/DriveItemItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Special/Item/DriveItemItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. + * Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. This API is supported in the following national cloud deployments. */ class DriveItemItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Drives/Item/Special/SpecialRequestBuilder.php b/src/Generated/Drives/Item/Special/SpecialRequestBuilder.php index c432a5eff89..725b4dc2690 100644 --- a/src/Generated/Drives/Item/Special/SpecialRequestBuilder.php +++ b/src/Generated/Drives/Item/Special/SpecialRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. + * Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. This API is supported in the following national cloud deployments. * @param SpecialRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -70,7 +70,7 @@ public function get(?SpecialRequestBuilderGetRequestConfiguration $requestConfig } /** - * Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. + * Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. This API is supported in the following national cloud deployments. * @param SpecialRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Drives/Item/Special/SpecialRequestBuilderGetQueryParameters.php b/src/Generated/Drives/Item/Special/SpecialRequestBuilderGetQueryParameters.php index 7858aee5889..ba5ea23e68b 100644 --- a/src/Generated/Drives/Item/Special/SpecialRequestBuilderGetQueryParameters.php +++ b/src/Generated/Drives/Item/Special/SpecialRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. + * Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. This API is supported in the following national cloud deployments. */ class SpecialRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Classes/ClassesRequestBuilder.php b/src/Generated/Education/Classes/ClassesRequestBuilder.php index 045072aaf82..2718354eb13 100644 --- a/src/Generated/Education/Classes/ClassesRequestBuilder.php +++ b/src/Generated/Education/Classes/ClassesRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the educationClass objects and their properties. + * Get a list of the educationClass objects and their properties. This API is supported in the following national cloud deployments. * @param ClassesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationclass-list?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?ClassesRequestBuilderGetRequestConfiguration $requestConfig } /** - * Create a new educationClass object. + * Create a new educationClass object. This API is supported in the following national cloud deployments. * @param EducationClass $body The request body * @param ClassesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(EducationClass $body, ?ClassesRequestBuilderPostRequestConf } /** - * Get a list of the educationClass objects and their properties. + * Get a list of the educationClass objects and their properties. This API is supported in the following national cloud deployments. * @param ClassesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?ClassesRequestBuilderGetRequestConfigur } /** - * Create a new educationClass object. + * Create a new educationClass object. This API is supported in the following national cloud deployments. * @param EducationClass $body The request body * @param ClassesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Classes/ClassesRequestBuilderGetQueryParameters.php b/src/Generated/Education/Classes/ClassesRequestBuilderGetQueryParameters.php index 11d365b812e..70bb10b853f 100644 --- a/src/Generated/Education/Classes/ClassesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Classes/ClassesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the educationClass objects and their properties. + * Get a list of the educationClass objects and their properties. This API is supported in the following national cloud deployments. */ class ClassesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Classes/Delta/DeltaGetResponse.php b/src/Generated/Education/Classes/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..0b3733cec67 --- /dev/null +++ b/src/Generated/Education/Classes/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([EducationClass::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, EducationClass::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/Education/Classes/Delta/DeltaRequestBuilder.php b/src/Generated/Education/Classes/Delta/DeltaRequestBuilder.php index 2e31bba150b..3b499779a6d 100644 --- a/src/Generated/Education/Classes/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Education/Classes/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Education/Classes/Delta/DeltaResponse.php b/src/Generated/Education/Classes/Delta/DeltaResponse.php deleted file mode 100644 index b6cc0c0a2d4..00000000000 --- a/src/Generated/Education/Classes/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([EducationClass::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, EducationClass::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/Education/Classes/Item/AssignmentCategories/AssignmentCategoriesRequestBuilder.php b/src/Generated/Education/Classes/Item/AssignmentCategories/AssignmentCategoriesRequestBuilder.php index 507703d46d8..495a1e26cf4 100644 --- a/src/Generated/Education/Classes/Item/AssignmentCategories/AssignmentCategoriesRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/AssignmentCategories/AssignmentCategoriesRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of educationCategory objects. Only teachers can perform this operation. + * Retrieve a list of educationCategory objects. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param AssignmentCategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationclass-list-categories?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?AssignmentCategoriesRequestBuilderGetRequestConfiguration $ } /** - * Creates a new educationCategory on an educationClass. Only teachers can perform this operation. + * Create a new educationCategory on an educationClass. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param EducationCategory $body The request body * @param AssignmentCategoriesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(EducationCategory $body, ?AssignmentCategoriesRequestBuilde } /** - * Retrieve a list of educationCategory objects. Only teachers can perform this operation. + * Retrieve a list of educationCategory objects. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param AssignmentCategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?AssignmentCategoriesRequestBuilderGetRe } /** - * Creates a new educationCategory on an educationClass. Only teachers can perform this operation. + * Create a new educationCategory on an educationClass. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param EducationCategory $body The request body * @param AssignmentCategoriesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Classes/Item/AssignmentCategories/AssignmentCategoriesRequestBuilderGetQueryParameters.php b/src/Generated/Education/Classes/Item/AssignmentCategories/AssignmentCategoriesRequestBuilderGetQueryParameters.php index 2d98ef488b4..2bed5332c56 100644 --- a/src/Generated/Education/Classes/Item/AssignmentCategories/AssignmentCategoriesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Classes/Item/AssignmentCategories/AssignmentCategoriesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of educationCategory objects. Only teachers can perform this operation. + * Retrieve a list of educationCategory objects. Only teachers can perform this operation. This API is supported in the following national cloud deployments. */ class AssignmentCategoriesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaGetResponse.php b/src/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..b1a75acfe9a --- /dev/null +++ b/src/Generated/Education/Classes/Item/AssignmentCategories/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([EducationCategory::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, EducationCategory::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/Education/Classes/Item/AssignmentCategories/Delta/DeltaRequestBuilder.php b/src/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaRequestBuilder.php index a17d4b6c197..160be278749 100644 --- a/src/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaResponse.php b/src/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaResponse.php deleted file mode 100644 index 4e62cabfd72..00000000000 --- a/src/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([EducationCategory::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, EducationCategory::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/Education/Classes/Item/AssignmentCategories/Item/EducationCategoryItemRequestBuilder.php b/src/Generated/Education/Classes/Item/AssignmentCategories/Item/EducationCategoryItemRequestBuilder.php index 1659272c77d..0cee9969ebd 100644 --- a/src/Generated/Education/Classes/Item/AssignmentCategories/Item/EducationCategoryItemRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/AssignmentCategories/Item/EducationCategoryItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an existing category. Only teachers can perform this operation. + * Delete an existing category. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param EducationCategoryItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationcategory-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?EducationCategoryItemRequestBuilderDeleteRequestConfigur } /** - * Retrieve an educationCategory object. Only teachers, students, and applications with application permissions can perform this operation. + * Retrieve an educationCategory object. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param EducationCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationcategory-get?view=graph-rest-1.0 Find more info here @@ -89,7 +89,7 @@ public function patch(EducationCategory $body, ?EducationCategoryItemRequestBuil } /** - * Delete an existing category. Only teachers can perform this operation. + * Delete an existing category. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param EducationCategoryItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?EducationCategoryItemRequestBuilderD } /** - * Retrieve an educationCategory object. Only teachers, students, and applications with application permissions can perform this operation. + * Retrieve an educationCategory object. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param EducationCategoryItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Classes/Item/AssignmentCategories/Item/EducationCategoryItemRequestBuilderGetQueryParameters.php b/src/Generated/Education/Classes/Item/AssignmentCategories/Item/EducationCategoryItemRequestBuilderGetQueryParameters.php index 16e8d0309b5..b36baef61f6 100644 --- a/src/Generated/Education/Classes/Item/AssignmentCategories/Item/EducationCategoryItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Classes/Item/AssignmentCategories/Item/EducationCategoryItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve an educationCategory object. Only teachers, students, and applications with application permissions can perform this operation. + * Retrieve an educationCategory object. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. */ class EducationCategoryItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Classes/Item/AssignmentDefaults/AssignmentDefaultsRequestBuilder.php b/src/Generated/Education/Classes/Item/AssignmentDefaults/AssignmentDefaultsRequestBuilder.php index 1c6811872a9..02bfb46b03e 100644 --- a/src/Generated/Education/Classes/Item/AssignmentDefaults/AssignmentDefaultsRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/AssignmentDefaults/AssignmentDefaultsRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?AssignmentDefaultsRequestBuilderDeleteRequestConfigurati } /** - * Read the properties and relationships of an educationAssignmentDefaults object. These are the class-level assignment defaults respected by new assignments created in the class. Callers can continue to specify custom values on each assignment creation if they don't want the default behaviors. Only teachers can perform this operation. + * Read the properties and relationships of an educationAssignmentDefaults object. These are the class-level assignment defaults respected by new assignments created in the class. Callers can continue to specify custom values on each assignment creation if they don't want the default behaviors. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param AssignmentDefaultsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignmentdefaults-get?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?AssignmentDefaultsRequestBuilderGetRequestConfiguration $re } /** - * Update the properties of an educationAssignmentDefaults object. Only teachers can update these settings. + * Update the properties of an educationAssignmentDefaults object. Only teachers can update these settings. This API is supported in the following national cloud deployments. * @param EducationAssignmentDefaults $body The request body * @param AssignmentDefaultsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?AssignmentDefaultsRequestBuilderDele } /** - * Read the properties and relationships of an educationAssignmentDefaults object. These are the class-level assignment defaults respected by new assignments created in the class. Callers can continue to specify custom values on each assignment creation if they don't want the default behaviors. Only teachers can perform this operation. + * Read the properties and relationships of an educationAssignmentDefaults object. These are the class-level assignment defaults respected by new assignments created in the class. Callers can continue to specify custom values on each assignment creation if they don't want the default behaviors. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param AssignmentDefaultsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -127,7 +127,7 @@ public function toGetRequestInformation(?AssignmentDefaultsRequestBuilderGetRequ } /** - * Update the properties of an educationAssignmentDefaults object. Only teachers can update these settings. + * Update the properties of an educationAssignmentDefaults object. Only teachers can update these settings. This API is supported in the following national cloud deployments. * @param EducationAssignmentDefaults $body The request body * @param AssignmentDefaultsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Classes/Item/AssignmentDefaults/AssignmentDefaultsRequestBuilderGetQueryParameters.php b/src/Generated/Education/Classes/Item/AssignmentDefaults/AssignmentDefaultsRequestBuilderGetQueryParameters.php index 0a489c5ad3d..c66be901e11 100644 --- a/src/Generated/Education/Classes/Item/AssignmentDefaults/AssignmentDefaultsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Classes/Item/AssignmentDefaults/AssignmentDefaultsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of an educationAssignmentDefaults object. These are the class-level assignment defaults respected by new assignments created in the class. Callers can continue to specify custom values on each assignment creation if they don't want the default behaviors. Only teachers can perform this operation. + * Read the properties and relationships of an educationAssignmentDefaults object. These are the class-level assignment defaults respected by new assignments created in the class. Callers can continue to specify custom values on each assignment creation if they don't want the default behaviors. Only teachers can perform this operation. This API is supported in the following national cloud deployments. */ class AssignmentDefaultsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Classes/Item/AssignmentSettings/AssignmentSettingsRequestBuilder.php b/src/Generated/Education/Classes/Item/AssignmentSettings/AssignmentSettingsRequestBuilder.php index 19ba56c8568..7c51141e2f1 100644 --- a/src/Generated/Education/Classes/Item/AssignmentSettings/AssignmentSettingsRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/AssignmentSettings/AssignmentSettingsRequestBuilder.php @@ -68,7 +68,7 @@ public function get(?AssignmentSettingsRequestBuilderGetRequestConfiguration $re } /** - * Update the properties of an educationAssignmentSettings object. Only teachers can update these settings. + * Update the properties of an educationAssignmentSettings object. Only teachers can update these settings. This API is supported in the following national cloud deployments. * @param EducationAssignmentSettings $body The request body * @param AssignmentSettingsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -126,7 +126,7 @@ public function toGetRequestInformation(?AssignmentSettingsRequestBuilderGetRequ } /** - * Update the properties of an educationAssignmentSettings object. Only teachers can update these settings. + * Update the properties of an educationAssignmentSettings object. Only teachers can update these settings. This API is supported in the following national cloud deployments. * @param EducationAssignmentSettings $body The request body * @param AssignmentSettingsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilder.php index 2d5bbd0be8e..5160c0ee53a 100644 --- a/src/Generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of assignment objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application executing with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. + * Retrieve a list of assignment objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application executing with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. This API is supported in the following national cloud deployments. * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationclass-list-assignments?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?AssignmentsRequestBuilderGetRequestConfiguration $requestCo } /** - * Create a new assignment. Only teachers in a class can create an assignment. Assignments start in the Draft state, which means that students will not see the assignment until publication. + * Create a new assignment. Only teachers in a class can create an assignment. Assignments start in the Draft state, which means that students will not see the assignment until publication. This API is supported in the following national cloud deployments. * @param EducationAssignment $body The request body * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(EducationAssignment $body, ?AssignmentsRequestBuilderPostRe } /** - * Retrieve a list of assignment objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application executing with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. + * Retrieve a list of assignment objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application executing with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. This API is supported in the following national cloud deployments. * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } /** - * Create a new assignment. Only teachers in a class can create an assignment. Assignments start in the Draft state, which means that students will not see the assignment until publication. + * Create a new assignment. Only teachers in a class can create an assignment. Assignments start in the Draft state, which means that students will not see the assignment until publication. This API is supported in the following national cloud deployments. * @param EducationAssignment $body The request body * @param AssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilderGetQueryParameters.php index 9e8d8661cea..4237a040923 100644 --- a/src/Generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of assignment objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application executing with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. + * Retrieve a list of assignment objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application executing with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. This API is supported in the following national cloud deployments. */ class AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Classes/Item/Assignments/Delta/DeltaGetResponse.php b/src/Generated/Education/Classes/Item/Assignments/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..eff2f9130be --- /dev/null +++ b/src/Generated/Education/Classes/Item/Assignments/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([EducationAssignment::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, EducationAssignment::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/Education/Classes/Item/Assignments/Delta/DeltaRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Delta/DeltaRequestBuilder.php index 9e6c5872506..0c3d8d8fc1c 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Education/Classes/Item/Assignments/Delta/DeltaResponse.php b/src/Generated/Education/Classes/Item/Assignments/Delta/DeltaResponse.php deleted file mode 100644 index 6f3ec2d6300..00000000000 --- a/src/Generated/Education/Classes/Item/Assignments/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([EducationAssignment::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, EducationAssignment::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/Education/Classes/Item/Assignments/Item/Categories/CategoriesRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Categories/CategoriesRequestBuilder.php index 0d0d7ca512e..6a8feb71836 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Categories/CategoriesRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Categories/CategoriesRequestBuilder.php @@ -69,7 +69,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-list-categories?view=graph-rest-1.0 Find more info here @@ -88,7 +88,7 @@ public function get(?CategoriesRequestBuilderGetRequestConfiguration $requestCon } /** - * Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + * Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param EducationCategory $body The request body * @param CategoriesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -108,7 +108,7 @@ public function post(EducationCategory $body, ?CategoriesRequestBuilderPostReque } /** - * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -129,7 +129,7 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi } /** - * Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + * Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param EducationCategory $body The request body * @param CategoriesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Categories/CategoriesRequestBuilderGetQueryParameters.php b/src/Generated/Education/Classes/Item/Assignments/Item/Categories/CategoriesRequestBuilderGetQueryParameters.php index c90c3479d4f..482e0a93b71 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Categories/CategoriesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Categories/CategoriesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. */ class CategoriesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaGetResponse.php b/src/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..995819631ec --- /dev/null +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Categories/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([EducationCategory::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, EducationCategory::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/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.php index d2196aa9db6..810d4d2d555 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaResponse.php b/src/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaResponse.php deleted file mode 100644 index 50fdb43c804..00000000000 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([EducationCategory::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, EducationCategory::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/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.php index 76814c6500f..85525e2410a 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + * Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-remove-category?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function delete(?RefRequestBuilderDeleteRequestConfiguration $requestConf } /** - * Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + * Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilderDeleteQueryParameters.php b/src/Generated/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilderDeleteQueryParameters.php index d4495cbfbdb..7d9699cfa07 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilderDeleteQueryParameters.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilderDeleteQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + * Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. */ class RefRequestBuilderDeleteQueryParameters { diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.php index 3d9b8e22f54..5cad301437d 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.php @@ -33,7 +33,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-list-categories?view=graph-rest-1.0 Find more info here @@ -52,7 +52,7 @@ public function get(?RefRequestBuilderGetRequestConfiguration $requestConfigurat } /** - * Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + * Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -72,7 +72,7 @@ public function post(ReferenceCreate $body, ?RefRequestBuilderPostRequestConfigu } /** - * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -93,7 +93,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } /** - * Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + * Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Categories/Ref/RefRequestBuilderGetQueryParameters.php b/src/Generated/Education/Classes/Item/Assignments/Item/Categories/Ref/RefRequestBuilderGetQueryParameters.php index f7bf8f0815b..9dcb885c612 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Categories/Ref/RefRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Categories/Ref/RefRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. */ class RefRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.php index c613e2fda56..9dc007469e8 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.php @@ -88,7 +88,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an existing assignment. Only teachers within a class can delete assignments. + * Delete an existing assignment. Only teachers within a class can delete assignments. This API is supported in the following national cloud deployments. * @param EducationAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-delete?view=graph-rest-1.0 Find more info here @@ -107,7 +107,7 @@ public function delete(?EducationAssignmentItemRequestBuilderDeleteRequestConfig } /** - * Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. + * Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. This API is supported in the following national cloud deployments. * @param EducationAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-get?view=graph-rest-1.0 Find more info here @@ -126,7 +126,7 @@ public function get(?EducationAssignmentItemRequestBuilderGetRequestConfiguratio } /** - * Update an educationAssignment object. Only teachers can perform this action. Alternatively, request to change the status of an assignment with publish action. Don't use a PATCH operation for this purpose. + * Update an educationAssignment object. Only teachers can perform this action. Alternatively, request to change the status of an assignment with publish action. Don't use a PATCH operation for this purpose. This API is supported in the following national cloud deployments. * @param EducationAssignment $body The request body * @param EducationAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -146,7 +146,7 @@ public function patch(EducationAssignment $body, ?EducationAssignmentItemRequest } /** - * Delete an existing assignment. Only teachers within a class can delete assignments. + * Delete an existing assignment. Only teachers within a class can delete assignments. This API is supported in the following national cloud deployments. * @param EducationAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -163,7 +163,7 @@ public function toDeleteRequestInformation(?EducationAssignmentItemRequestBuilde } /** - * Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. + * Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. This API is supported in the following national cloud deployments. * @param EducationAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -184,7 +184,7 @@ public function toGetRequestInformation(?EducationAssignmentItemRequestBuilderGe } /** - * Update an educationAssignment object. Only teachers can perform this action. Alternatively, request to change the status of an assignment with publish action. Don't use a PATCH operation for this purpose. + * Update an educationAssignment object. Only teachers can perform this action. Alternatively, request to change the status of an assignment with publish action. Don't use a PATCH operation for this purpose. This API is supported in the following national cloud deployments. * @param EducationAssignment $body The request body * @param EducationAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/EducationAssignmentItemRequestBuilderGetQueryParameters.php b/src/Generated/Education/Classes/Item/Assignments/Item/EducationAssignmentItemRequestBuilderGetQueryParameters.php index aa39beea153..c1c2afadce9 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/EducationAssignmentItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/EducationAssignmentItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. + * Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. This API is supported in the following national cloud deployments. */ class EducationAssignmentItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Publish/PublishRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Publish/PublishRequestBuilder.php index 28da4fcf8bb..26cdf6fd02a 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Publish/PublishRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Publish/PublishRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + * Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. This API is supported in the following national cloud deployments. * @param PublishRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-publish?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?PublishRequestBuilderPostRequestConfiguration $requestConf } /** - * Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + * Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. This API is supported in the following national cloud deployments. * @param PublishRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.php index e2396a2540a..c687b3d7849 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. + * Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. This API is supported in the following national cloud deployments. * @param EducationAssignmentResourceItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignmentresource-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?EducationAssignmentResourceItemRequestBuilderDeleteReque } /** - * Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param EducationAssignmentResourceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignmentresource-get?view=graph-rest-1.0 Find more info here @@ -89,7 +89,7 @@ public function patch(EducationAssignmentResource $body, ?EducationAssignmentRes } /** - * Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. + * Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. This API is supported in the following national cloud deployments. * @param EducationAssignmentResourceItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?EducationAssignmentResourceItemReque } /** - * Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param EducationAssignmentResourceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilderGetQueryParameters.php b/src/Generated/Education/Classes/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilderGetQueryParameters.php index c192daed2c1..f71ec39ddd3 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. */ class EducationAssignmentResourceItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Resources/ResourcesRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Resources/ResourcesRequestBuilder.php index bfe1364664f..1f4ea59081e 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Resources/ResourcesRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Resources/ResourcesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param ResourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-list-resources?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ResourcesRequestBuilderGetRequestConfiguration $requestConf } /** - * Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. + * Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. This API is supported in the following national cloud deployments. * @param EducationAssignmentResource $body The request body * @param ResourcesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(EducationAssignmentResource $body, ?ResourcesRequestBuilder } /** - * Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param ResourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig } /** - * Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. + * Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. This API is supported in the following national cloud deployments. * @param EducationAssignmentResource $body The request body * @param ResourcesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php b/src/Generated/Education/Classes/Item/Assignments/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php index 178922726ff..bc1e9a5442f 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. */ class ResourcesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.php index 6e392021985..15232a2e563 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + * Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-delete-rubric?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?RefRequestBuilderDeleteRequestConfiguration $requestConf } /** - * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-get-rubric?view=graph-rest-1.0 Find more info here @@ -70,7 +70,7 @@ public function get(?RefRequestBuilderGetRequestConfiguration $requestConfigurat } /** - * Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + * Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param ReferenceUpdate $body The request body * @param RefRequestBuilderPutRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -90,7 +90,7 @@ public function put(ReferenceUpdate $body, ?RefRequestBuilderPutRequestConfigura } /** - * Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + * Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } /** - * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -125,7 +125,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } /** - * Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + * Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param ReferenceUpdate $body The request body * @param RefRequestBuilderPutRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Rubric/RubricRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Rubric/RubricRequestBuilder.php index f8ef9ab48d3..5b0195c76d0 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Rubric/RubricRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Rubric/RubricRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + * Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. This API is supported in the following national cloud deployments. * @param RubricRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-delete-rubric?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function delete(?RubricRequestBuilderDeleteRequestConfiguration $requestC } /** - * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param RubricRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-get-rubric?view=graph-rest-1.0 Find more info here @@ -78,7 +78,7 @@ public function get(?RubricRequestBuilderGetRequestConfiguration $requestConfigu } /** - * Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + * Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param EducationRubric $body The request body * @param RubricRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -98,7 +98,7 @@ public function patch(EducationRubric $body, ?RubricRequestBuilderPatchRequestCo } /** - * Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + * Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. This API is supported in the following national cloud deployments. * @param RubricRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -115,7 +115,7 @@ public function toDeleteRequestInformation(?RubricRequestBuilderDeleteRequestCon } /** - * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param RubricRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -136,7 +136,7 @@ public function toGetRequestInformation(?RubricRequestBuilderGetRequestConfigura } /** - * Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + * Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param EducationRubric $body The request body * @param RubricRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Rubric/RubricRequestBuilderGetQueryParameters.php b/src/Generated/Education/Classes/Item/Assignments/Item/Rubric/RubricRequestBuilderGetQueryParameters.php index c88499c973c..6363372044f 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Rubric/RubricRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Rubric/RubricRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. */ class RubricRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.php index c2f94435fda..d49dfbde850 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create a SharePoint folder to upload feedback files for a given educationSubmission. Only teachers can perform this operation. The teacher determines the resources to upload in the feedback resources folder of a submission. + * Create a SharePoint folder to upload feedback files for a given educationSubmission. Only teachers can perform this operation. The teacher determines the resources to upload in the feedback resources folder of a submission. This API is supported in the following national cloud deployments. * @param SetUpFeedbackResourcesFolderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-setupfeedbackresourcesfolder?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?SetUpFeedbackResourcesFolderRequestBuilderPostRequestConfi } /** - * Create a SharePoint folder to upload feedback files for a given educationSubmission. Only teachers can perform this operation. The teacher determines the resources to upload in the feedback resources folder of a submission. + * Create a SharePoint folder to upload feedback files for a given educationSubmission. Only teachers can perform this operation. The teacher determines the resources to upload in the feedback resources folder of a submission. This API is supported in the following national cloud deployments. * @param SetUpFeedbackResourcesFolderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php index ff86279081e..d3f5b397611 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create a SharePoint folder to upload files for a given educationAssignment. Only teachers can perform this operation. The teacher determines the resources to upload in the assignment's folder. + * Create a SharePoint folder to upload files for a given educationAssignment. Only teachers can perform this operation. The teacher determines the resources to upload in the assignment's folder. This API is supported in the following national cloud deployments. * @param SetUpResourcesFolderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-setupresourcesfolder?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?SetUpResourcesFolderRequestBuilderPostRequestConfiguration } /** - * Create a SharePoint folder to upload files for a given educationAssignment. Only teachers can perform this operation. The teacher determines the resources to upload in the assignment's folder. + * Create a SharePoint folder to upload files for a given educationAssignment. Only teachers can perform this operation. The teacher determines the resources to upload in the assignment's folder. This API is supported in the following national cloud deployments. * @param SetUpResourcesFolderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.php index d9651ab06a0..350f32bb357 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.php @@ -114,7 +114,7 @@ public function delete(?EducationSubmissionItemRequestBuilderDeleteRequestConfig } /** - * Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. + * Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. This API is supported in the following national cloud deployments. * @param EducationSubmissionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmission-get?view=graph-rest-1.0 Find more info here @@ -169,7 +169,7 @@ public function toDeleteRequestInformation(?EducationSubmissionItemRequestBuilde } /** - * Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. + * Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. This API is supported in the following national cloud deployments. * @param EducationSubmissionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilderGetQueryParameters.php b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilderGetQueryParameters.php index cbc0ebaf42c..6d02321b77d 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. + * Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. This API is supported in the following national cloud deployments. */ class EducationSubmissionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/EscapedReturn/ReturnRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/EscapedReturn/ReturnRequestBuilder.php index 5e08b766872..27dc4aed891 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/EscapedReturn/ReturnRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/EscapedReturn/ReturnRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Make the grade and feedback associated with this submission available to the student. This action changes the status of the submission from 'submitted' to 'returned' and indicates that feedback is provided or grading is done. This action can only be done by the teacher. + * Make the grade and feedback associated with this submission available to the student. This action changes the status of the submission from 'submitted' to 'returned' and indicates that feedback is provided or grading is done. This action can only be done by the teacher. This API is supported in the following national cloud deployments. * @param ReturnRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmission-return?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?ReturnRequestBuilderPostRequestConfiguration $requestConfi } /** - * Make the grade and feedback associated with this submission available to the student. This action changes the status of the submission from 'submitted' to 'returned' and indicates that feedback is provided or grading is done. This action can only be done by the teacher. + * Make the grade and feedback associated with this submission available to the student. This action changes the status of the submission from 'submitted' to 'returned' and indicates that feedback is provided or grading is done. This action can only be done by the teacher. This API is supported in the following national cloud deployments. * @param ReturnRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.php index 2b9c0f58676..35b481a153c 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a feedback resource from a submission. This can only be done by a teacher. + * Delete a feedback resource from a submission. This can only be done by a teacher. This API is supported in the following national cloud deployments. * @param EducationOutcomeItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationfeedbackresourceoutcome-delete?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?EducationOutcomeItemRequestBuilderGetRequestConfiguration $ } /** - * Update the properties of an educationOutcome object. Only teachers can perform this operation. + * Update the properties of an educationOutcome object. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param EducationOutcome $body The request body * @param EducationOutcomeItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -89,7 +89,7 @@ public function patch(EducationOutcome $body, ?EducationOutcomeItemRequestBuilde } /** - * Delete a feedback resource from a submission. This can only be done by a teacher. + * Delete a feedback resource from a submission. This can only be done by a teacher. This API is supported in the following national cloud deployments. * @param EducationOutcomeItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -127,7 +127,7 @@ public function toGetRequestInformation(?EducationOutcomeItemRequestBuilderGetRe } /** - * Update the properties of an educationOutcome object. Only teachers can perform this operation. + * Update the properties of an educationOutcome object. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param EducationOutcome $body The request body * @param EducationOutcomeItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.php index a4db14b8d6a..fb2e3139058 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + * Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. This API is supported in the following national cloud deployments. * @param OutcomesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmission-list-outcomes?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?OutcomesRequestBuilderGetRequestConfiguration $requestConfi } /** - * Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. + * Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. This API is supported in the following national cloud deployments. * @param EducationOutcome $body The request body * @param OutcomesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(EducationOutcome $body, ?OutcomesRequestBuilderPostRequestC } /** - * Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + * Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. This API is supported in the following national cloud deployments. * @param OutcomesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?OutcomesRequestBuilderGetRequestConfigu } /** - * Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. + * Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. This API is supported in the following national cloud deployments. * @param EducationOutcome $body The request body * @param OutcomesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilderGetQueryParameters.php b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilderGetQueryParameters.php index aabf9a62073..584f0a716cb 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + * Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. This API is supported in the following national cloud deployments. */ class OutcomesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.php index 65e2f4d9b56..3341f6e36f7 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. + * Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. This API is supported in the following national cloud deployments. * @param ReassignRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmission-reassign?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?ReassignRequestBuilderPostRequestConfiguration $requestCon } /** - * Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. + * Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. This API is supported in the following national cloud deployments. * @param ReassignRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.php index 363b80e14ae..eaa7735c4c3 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource was not copied from the assignment but was added from the student, the resource is simply deleted. + * Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource wasn't copied from the assignment but was added from the student, the resource is deleted. This API is supported in the following national cloud deployments. * @param EducationSubmissionResourceItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmissionresource-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?EducationSubmissionResourceItemRequestBuilderDeleteReque } /** - * Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. + * Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. This API is supported in the following national cloud deployments. * @param EducationSubmissionResourceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmissionresource-get?view=graph-rest-1.0 Find more info here @@ -89,7 +89,7 @@ public function patch(EducationSubmissionResource $body, ?EducationSubmissionRes } /** - * Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource was not copied from the assignment but was added from the student, the resource is simply deleted. + * Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource wasn't copied from the assignment but was added from the student, the resource is deleted. This API is supported in the following national cloud deployments. * @param EducationSubmissionResourceItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?EducationSubmissionResourceItemReque } /** - * Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. + * Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. This API is supported in the following national cloud deployments. * @param EducationSubmissionResourceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilderGetQueryParameters.php b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilderGetQueryParameters.php index 4ff3fe450ad..6eee7d50629 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. + * Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. This API is supported in the following national cloud deployments. */ class EducationSubmissionResourceItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.php index f3524c566e9..9b0b4c62f46 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + * List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. This API is supported in the following national cloud deployments. * @param ResourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmission-list-resources?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ResourcesRequestBuilderGetRequestConfiguration $requestConf } /** - * Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. + * Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. This API is supported in the following national cloud deployments. * @param EducationSubmissionResource $body The request body * @param ResourcesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(EducationSubmissionResource $body, ?ResourcesRequestBuilder } /** - * List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + * List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. This API is supported in the following national cloud deployments. * @param ResourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig } /** - * Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. + * Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. This API is supported in the following national cloud deployments. * @param EducationSubmissionResource $body The request body * @param ResourcesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php index 14fd8e3e099..f397d23262b 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + * List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. This API is supported in the following national cloud deployments. */ class ResourcesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php index 9c42e428aeb..deffafa35f0 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder. + * Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder. This API is supported in the following national cloud deployments. * @param SetUpResourcesFolderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmission-setupresourcesfolder?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?SetUpResourcesFolderRequestBuilderPostRequestConfiguration } /** - * Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder. + * Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder. This API is supported in the following national cloud deployments. * @param SetUpResourcesFolderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.php index 101fdd7ba7b..f8efc3b2faf 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Indicate that a student is done with the work and is ready to hand in the assignment. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from working to submitted. During the submit process, all the resources are copied to the submittedResources bucket. The teacher will be looking at the submitted resources list for grading. A teacher can also submit a student's assignment on their behalf. + * Indicate that a student is done with the work and is ready to hand in the assignment. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from working to submitted. During the submit process, all the resources are copied to the submittedResources bucket. The teacher will be looking at the submitted resources list for grading. A teacher can also submit a student's assignment on their behalf. This API is supported in the following national cloud deployments. * @param SubmitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmission-submit?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?SubmitRequestBuilderPostRequestConfiguration $requestConfi } /** - * Indicate that a student is done with the work and is ready to hand in the assignment. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from working to submitted. During the submit process, all the resources are copied to the submittedResources bucket. The teacher will be looking at the submitted resources list for grading. A teacher can also submit a student's assignment on their behalf. + * Indicate that a student is done with the work and is ready to hand in the assignment. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from working to submitted. During the submit process, all the resources are copied to the submittedResources bucket. The teacher will be looking at the submitted resources list for grading. A teacher can also submit a student's assignment on their behalf. This API is supported in the following national cloud deployments. * @param SubmitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.php index 91958c21540..a9be7779d3e 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?EducationSubmissionResourceItemRequestBuilderDeleteReque } /** - * Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Note that teachers can leave notes in some resources. + * Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Teachers can leave notes in some resources. This API is supported in the following national cloud deployments. * @param EducationSubmissionResourceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmittedsubmissionresource-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?EducationSubmissionResourceItemReque } /** - * Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Note that teachers can leave notes in some resources. + * Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Teachers can leave notes in some resources. This API is supported in the following national cloud deployments. * @param EducationSubmissionResourceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilderGetQueryParameters.php b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilderGetQueryParameters.php index 58ab258daeb..f3135daee0f 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Note that teachers can leave notes in some resources. + * Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Teachers can leave notes in some resources. This API is supported in the following national cloud deployments. */ class EducationSubmissionResourceItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.php index f48ff7f9599..6cb6d218f82 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + * List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. This API is supported in the following national cloud deployments. * @param SubmittedResourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmission-list-submittedresources?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(EducationSubmissionResource $body, ?SubmittedResourcesReque } /** - * List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + * List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. This API is supported in the following national cloud deployments. * @param SubmittedResourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilderGetQueryParameters.php b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilderGetQueryParameters.php index f2985759778..23450b619b4 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + * List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. This API is supported in the following national cloud deployments. */ class SubmittedResourcesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.php index edc9ea7bb36..e9c36ea708a 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Indicate that a student wants to work on the submission of the assignment after it was turned in. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from submitted to working. During the submit process, all the resources are copied from submittedResources to workingResources. The teacher will be looking at the working resources list for grading. A teacher can also unsubmit a student's assignment on their behalf. + * Indicate that a student wants to work on the submission of the assignment after it was turned in. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from submitted to working. During the submit process, all the resources are copied from submittedResources to workingResources. The teacher will be looking at the working resources list for grading. A teacher can also unsubmit a student's assignment on their behalf. This API is supported in the following national cloud deployments. * @param UnsubmitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmission-unsubmit?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?UnsubmitRequestBuilderPostRequestConfiguration $requestCon } /** - * Indicate that a student wants to work on the submission of the assignment after it was turned in. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from submitted to working. During the submit process, all the resources are copied from submittedResources to workingResources. The teacher will be looking at the working resources list for grading. A teacher can also unsubmit a student's assignment on their behalf. + * Indicate that a student wants to work on the submission of the assignment after it was turned in. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from submitted to working. During the submit process, all the resources are copied from submittedResources to workingResources. The teacher will be looking at the working resources list for grading. A teacher can also unsubmit a student's assignment on their behalf. This API is supported in the following national cloud deployments. * @param UnsubmitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.php index 221ab02356c..50b5972f7f5 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + * List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. This API is supported in the following national cloud deployments. * @param SubmissionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-list-submissions?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(EducationSubmission $body, ?SubmissionsRequestBuilderPostRe } /** - * List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + * List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. This API is supported in the following national cloud deployments. * @param SubmissionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/SubmissionsRequestBuilderGetQueryParameters.php b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/SubmissionsRequestBuilderGetQueryParameters.php index 6a9cc114134..4c7a8057b52 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/SubmissionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/SubmissionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + * List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. This API is supported in the following national cloud deployments. */ class SubmissionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Classes/Item/EducationClassItemRequestBuilder.php b/src/Generated/Education/Classes/Item/EducationClassItemRequestBuilder.php index b7f790072de..72bb00e00bc 100644 --- a/src/Generated/Education/Classes/Item/EducationClassItemRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/EducationClassItemRequestBuilder.php @@ -96,7 +96,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an educationClass. Because a class is also a universal group, deleting a class deletes the group. + * Delete an educationClass. Because a class is also a universal group, deleting a class deletes the group. This API is supported in the following national cloud deployments. * @param EducationClassItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationclass-delete?view=graph-rest-1.0 Find more info here @@ -115,7 +115,7 @@ public function delete(?EducationClassItemRequestBuilderDeleteRequestConfigurati } /** - * Retrieve a class from the system. A class is a universal group with a special property that indicates to the system that the group is a class. Group members represent the students; group admins represent the teachers in the class. If you're using the delegated token, the user will only see classes in which they are members. + * Retrieve a class from the system. A class is a universal group with a special property that indicates to the system that the group is a class. Group members represent the students; group admins represent the teachers in the class. If you're using the delegated token, the user will only see classes in which they are members. This API is supported in the following national cloud deployments. * @param EducationClassItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationclass-get?view=graph-rest-1.0 Find more info here @@ -134,7 +134,7 @@ public function get(?EducationClassItemRequestBuilderGetRequestConfiguration $re } /** - * Update the properties of an educationClass object. + * Update the properties of an educationClass object. This API is supported in the following national cloud deployments. * @param EducationClass $body The request body * @param EducationClassItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -154,7 +154,7 @@ public function patch(EducationClass $body, ?EducationClassItemRequestBuilderPat } /** - * Delete an educationClass. Because a class is also a universal group, deleting a class deletes the group. + * Delete an educationClass. Because a class is also a universal group, deleting a class deletes the group. This API is supported in the following national cloud deployments. * @param EducationClassItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -171,7 +171,7 @@ public function toDeleteRequestInformation(?EducationClassItemRequestBuilderDele } /** - * Retrieve a class from the system. A class is a universal group with a special property that indicates to the system that the group is a class. Group members represent the students; group admins represent the teachers in the class. If you're using the delegated token, the user will only see classes in which they are members. + * Retrieve a class from the system. A class is a universal group with a special property that indicates to the system that the group is a class. Group members represent the students; group admins represent the teachers in the class. If you're using the delegated token, the user will only see classes in which they are members. This API is supported in the following national cloud deployments. * @param EducationClassItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -192,7 +192,7 @@ public function toGetRequestInformation(?EducationClassItemRequestBuilderGetRequ } /** - * Update the properties of an educationClass object. + * Update the properties of an educationClass object. This API is supported in the following national cloud deployments. * @param EducationClass $body The request body * @param EducationClassItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Classes/Item/EducationClassItemRequestBuilderGetQueryParameters.php b/src/Generated/Education/Classes/Item/EducationClassItemRequestBuilderGetQueryParameters.php index 9f03b84240b..3c2580a225a 100644 --- a/src/Generated/Education/Classes/Item/EducationClassItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Classes/Item/EducationClassItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a class from the system. A class is a universal group with a special property that indicates to the system that the group is a class. Group members represent the students; group admins represent the teachers in the class. If you're using the delegated token, the user will only see classes in which they are members. + * Retrieve a class from the system. A class is a universal group with a special property that indicates to the system that the group is a class. Group members represent the students; group admins represent the teachers in the class. If you're using the delegated token, the user will only see classes in which they are members. This API is supported in the following national cloud deployments. */ class EducationClassItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Classes/Item/Group/GroupRequestBuilder.php b/src/Generated/Education/Classes/Item/Group/GroupRequestBuilder.php index 3ac55f84ff8..e5f580c68b6 100644 --- a/src/Generated/Education/Classes/Item/Group/GroupRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Group/GroupRequestBuilder.php @@ -5,6 +5,7 @@ use Exception; use Http\Promise\Promise; use Http\Promise\RejectedPromise; +use Microsoft\Graph\Generated\Education\Classes\Item\Group\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\Group; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -17,6 +18,13 @@ */ class GroupRequestBuilder extends BaseRequestBuilder { + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new GroupRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..8f90e105c67 --- /dev/null +++ b/src/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/education/classes/{educationClass%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/Education/Classes/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..8ddbc10732a --- /dev/null +++ b/src/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..f1ab2b27ef7 --- /dev/null +++ b/src/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/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/Education/Classes/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..748df37cf90 --- /dev/null +++ b/src/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/education/classes/{educationClass%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..3362fbe0d4f --- /dev/null +++ b/src/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/Education/Classes/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..de0c59392dc --- /dev/null +++ b/src/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilder.php b/src/Generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilder.php index 1221196c2e6..964f0f3c92b 100644 --- a/src/Generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove an educationUser from an educationClass. + * Remove an educationUser from an educationClass. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationclass-delete-members?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function delete(?RefRequestBuilderDeleteRequestConfiguration $requestConf } /** - * Remove an educationUser from an educationClass. + * Remove an educationUser from an educationClass. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilderDeleteQueryParameters.php b/src/Generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilderDeleteQueryParameters.php index 8b0a78db3af..40bbcda0f46 100644 --- a/src/Generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilderDeleteQueryParameters.php +++ b/src/Generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilderDeleteQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Remove an educationUser from an educationClass. + * Remove an educationUser from an educationClass. This API is supported in the following national cloud deployments. */ class RefRequestBuilderDeleteQueryParameters { diff --git a/src/Generated/Education/Classes/Item/Members/MembersRequestBuilder.php b/src/Generated/Education/Classes/Item/Members/MembersRequestBuilder.php index de254906113..9429b086125 100644 --- a/src/Generated/Education/Classes/Item/Members/MembersRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Members/MembersRequestBuilder.php @@ -60,7 +60,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieves the educationUser members of an educationClass. + * Retrieves the educationUser members of an educationClass. This API is supported in the following national cloud deployments. * @param MembersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationclass-list-members?view=graph-rest-1.0 Find more info here @@ -79,7 +79,7 @@ public function get(?MembersRequestBuilderGetRequestConfiguration $requestConfig } /** - * Retrieves the educationUser members of an educationClass. + * Retrieves the educationUser members of an educationClass. This API is supported in the following national cloud deployments. * @param MembersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Classes/Item/Members/MembersRequestBuilderGetQueryParameters.php b/src/Generated/Education/Classes/Item/Members/MembersRequestBuilderGetQueryParameters.php index 4dde4477520..e148b645245 100644 --- a/src/Generated/Education/Classes/Item/Members/MembersRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Classes/Item/Members/MembersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieves the educationUser members of an educationClass. + * Retrieves the educationUser members of an educationClass. This API is supported in the following national cloud deployments. */ class MembersRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.php b/src/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.php index 4d559bb6f32..683f079127a 100644 --- a/src/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.php @@ -33,7 +33,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieves the educationUser members of an educationClass. + * Retrieves the educationUser members of an educationClass. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationclass-list-members?view=graph-rest-1.0 Find more info here @@ -52,7 +52,7 @@ public function get(?RefRequestBuilderGetRequestConfiguration $requestConfigurat } /** - * Add an educationUser member to an educationClass. + * Add an educationUser member to an educationClass. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -72,7 +72,7 @@ public function post(ReferenceCreate $body, ?RefRequestBuilderPostRequestConfigu } /** - * Retrieves the educationUser members of an educationClass. + * Retrieves the educationUser members of an educationClass. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -93,7 +93,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } /** - * Add an educationUser member to an educationClass. + * Add an educationUser member to an educationClass. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilderGetQueryParameters.php b/src/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilderGetQueryParameters.php index d43edf1d17e..b3cd9aa8727 100644 --- a/src/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieves the educationUser members of an educationClass. + * Retrieves the educationUser members of an educationClass. This API is supported in the following national cloud deployments. */ class RefRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Classes/Item/Schools/SchoolsRequestBuilder.php b/src/Generated/Education/Classes/Item/Schools/SchoolsRequestBuilder.php index e3d79224b5f..b57549d77d2 100644 --- a/src/Generated/Education/Classes/Item/Schools/SchoolsRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Schools/SchoolsRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of schools in which the class is taught. + * Retrieve a list of schools in which the class is taught. This API is supported in the following national cloud deployments. * @param SchoolsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationclass-list-schools?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?SchoolsRequestBuilderGetRequestConfiguration $requestConfig } /** - * Retrieve a list of schools in which the class is taught. + * Retrieve a list of schools in which the class is taught. This API is supported in the following national cloud deployments. * @param SchoolsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Classes/Item/Schools/SchoolsRequestBuilderGetQueryParameters.php b/src/Generated/Education/Classes/Item/Schools/SchoolsRequestBuilderGetQueryParameters.php index c0ba54b1bab..a8f21aec265 100644 --- a/src/Generated/Education/Classes/Item/Schools/SchoolsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Classes/Item/Schools/SchoolsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of schools in which the class is taught. + * Retrieve a list of schools in which the class is taught. This API is supported in the following national cloud deployments. */ class SchoolsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilder.php b/src/Generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilder.php index 3a3e7a45df9..4d597c61409 100644 --- a/src/Generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove teacher from an educationClass. + * Remove a teacher from an educationClass. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationclass-delete-teachers?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function delete(?RefRequestBuilderDeleteRequestConfiguration $requestConf } /** - * Remove teacher from an educationClass. + * Remove a teacher from an educationClass. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilderDeleteQueryParameters.php b/src/Generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilderDeleteQueryParameters.php index 014232ea964..11cc4970cf8 100644 --- a/src/Generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilderDeleteQueryParameters.php +++ b/src/Generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilderDeleteQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Remove teacher from an educationClass. + * Remove a teacher from an educationClass. This API is supported in the following national cloud deployments. */ class RefRequestBuilderDeleteQueryParameters { diff --git a/src/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilder.php b/src/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilder.php index 994c9d885ac..270d288e27c 100644 --- a/src/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilder.php @@ -33,7 +33,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list teachers for a class. Delegated tokens must be members of the class to get the teacher list. + * Retrieve a list of teachers for a class. Delegated tokens must be members of the class to get the teacher list. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationclass-list-teachers?view=graph-rest-1.0 Find more info here @@ -52,7 +52,7 @@ public function get(?RefRequestBuilderGetRequestConfiguration $requestConfigurat } /** - * Add a teacher to a class. + * Add a teacher to a class. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -72,7 +72,7 @@ public function post(ReferenceCreate $body, ?RefRequestBuilderPostRequestConfigu } /** - * Retrieve a list teachers for a class. Delegated tokens must be members of the class to get the teacher list. + * Retrieve a list of teachers for a class. Delegated tokens must be members of the class to get the teacher list. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -93,7 +93,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } /** - * Add a teacher to a class. + * Add a teacher to a class. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilderGetQueryParameters.php b/src/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilderGetQueryParameters.php index 6331b71034e..62eb3c254e2 100644 --- a/src/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list teachers for a class. Delegated tokens must be members of the class to get the teacher list. + * Retrieve a list of teachers for a class. Delegated tokens must be members of the class to get the teacher list. This API is supported in the following national cloud deployments. */ class RefRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Classes/Item/Teachers/TeachersRequestBuilder.php b/src/Generated/Education/Classes/Item/Teachers/TeachersRequestBuilder.php index 09ca316114f..f4dcab24877 100644 --- a/src/Generated/Education/Classes/Item/Teachers/TeachersRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Teachers/TeachersRequestBuilder.php @@ -60,7 +60,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list teachers for a class. Delegated tokens must be members of the class to get the teacher list. + * Retrieve a list of teachers for a class. Delegated tokens must be members of the class to get the teacher list. This API is supported in the following national cloud deployments. * @param TeachersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationclass-list-teachers?view=graph-rest-1.0 Find more info here @@ -79,7 +79,7 @@ public function get(?TeachersRequestBuilderGetRequestConfiguration $requestConfi } /** - * Retrieve a list teachers for a class. Delegated tokens must be members of the class to get the teacher list. + * Retrieve a list of teachers for a class. Delegated tokens must be members of the class to get the teacher list. This API is supported in the following national cloud deployments. * @param TeachersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Classes/Item/Teachers/TeachersRequestBuilderGetQueryParameters.php b/src/Generated/Education/Classes/Item/Teachers/TeachersRequestBuilderGetQueryParameters.php index 3b006d7a6b2..234df738f03 100644 --- a/src/Generated/Education/Classes/Item/Teachers/TeachersRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Classes/Item/Teachers/TeachersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list teachers for a class. Delegated tokens must be members of the class to get the teacher list. + * Retrieve a list of teachers for a class. Delegated tokens must be members of the class to get the teacher list. This API is supported in the following national cloud deployments. */ class TeachersRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Me/Assignments/AssignmentsRequestBuilder.php b/src/Generated/Education/Me/Assignments/AssignmentsRequestBuilder.php index 3af1f539569..bc0b9cbd3d8 100644 --- a/src/Generated/Education/Me/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/AssignmentsRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. + * Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. This API is supported in the following national cloud deployments. * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationuser-list-assignments?view=graph-rest-1.0 Find more info here @@ -99,7 +99,7 @@ public function post(EducationAssignment $body, ?AssignmentsRequestBuilderPostRe } /** - * Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. + * Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. This API is supported in the following national cloud deployments. * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Me/Assignments/AssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/Education/Me/Assignments/AssignmentsRequestBuilderGetQueryParameters.php index e511e2a5e3c..9a4118eb698 100644 --- a/src/Generated/Education/Me/Assignments/AssignmentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Me/Assignments/AssignmentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. + * Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. This API is supported in the following national cloud deployments. */ class AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Me/Assignments/Delta/DeltaGetResponse.php b/src/Generated/Education/Me/Assignments/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..4cb4088a091 --- /dev/null +++ b/src/Generated/Education/Me/Assignments/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([EducationAssignment::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, EducationAssignment::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/Education/Me/Assignments/Delta/DeltaRequestBuilder.php b/src/Generated/Education/Me/Assignments/Delta/DeltaRequestBuilder.php index cbc1538b2a8..a8fadb6668e 100644 --- a/src/Generated/Education/Me/Assignments/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Education/Me/Assignments/Delta/DeltaResponse.php b/src/Generated/Education/Me/Assignments/Delta/DeltaResponse.php deleted file mode 100644 index 0d7a2a3eef2..00000000000 --- a/src/Generated/Education/Me/Assignments/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([EducationAssignment::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, EducationAssignment::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/Education/Me/Assignments/Item/Categories/CategoriesRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Categories/CategoriesRequestBuilder.php index 8ae84b7841c..4b2b45cbde2 100644 --- a/src/Generated/Education/Me/Assignments/Item/Categories/CategoriesRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Categories/CategoriesRequestBuilder.php @@ -69,7 +69,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-list-categories?view=graph-rest-1.0 Find more info here @@ -88,7 +88,7 @@ public function get(?CategoriesRequestBuilderGetRequestConfiguration $requestCon } /** - * Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + * Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param EducationCategory $body The request body * @param CategoriesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -108,7 +108,7 @@ public function post(EducationCategory $body, ?CategoriesRequestBuilderPostReque } /** - * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -129,7 +129,7 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi } /** - * Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + * Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param EducationCategory $body The request body * @param CategoriesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Me/Assignments/Item/Categories/CategoriesRequestBuilderGetQueryParameters.php b/src/Generated/Education/Me/Assignments/Item/Categories/CategoriesRequestBuilderGetQueryParameters.php index 931acd05fe1..37cc8273f4b 100644 --- a/src/Generated/Education/Me/Assignments/Item/Categories/CategoriesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Me/Assignments/Item/Categories/CategoriesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. */ class CategoriesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaGetResponse.php b/src/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..b2c599b2d31 --- /dev/null +++ b/src/Generated/Education/Me/Assignments/Item/Categories/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([EducationCategory::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, EducationCategory::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/Education/Me/Assignments/Item/Categories/Delta/DeltaRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaRequestBuilder.php index 29143204f4a..f8ab9af21d2 100644 --- a/src/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaResponse.php b/src/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaResponse.php deleted file mode 100644 index 1b2000f242d..00000000000 --- a/src/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([EducationCategory::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, EducationCategory::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/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.php index 74bc5bac893..accdca2ca6a 100644 --- a/src/Generated/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + * Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-remove-category?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function delete(?RefRequestBuilderDeleteRequestConfiguration $requestConf } /** - * Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + * Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilderDeleteQueryParameters.php b/src/Generated/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilderDeleteQueryParameters.php index ca54c116ba3..821f8777014 100644 --- a/src/Generated/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilderDeleteQueryParameters.php +++ b/src/Generated/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilderDeleteQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + * Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. */ class RefRequestBuilderDeleteQueryParameters { diff --git a/src/Generated/Education/Me/Assignments/Item/Categories/Ref/RefRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Categories/Ref/RefRequestBuilder.php index 396f49a9343..92405e07b69 100644 --- a/src/Generated/Education/Me/Assignments/Item/Categories/Ref/RefRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Categories/Ref/RefRequestBuilder.php @@ -33,7 +33,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-list-categories?view=graph-rest-1.0 Find more info here @@ -52,7 +52,7 @@ public function get(?RefRequestBuilderGetRequestConfiguration $requestConfigurat } /** - * Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + * Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -72,7 +72,7 @@ public function post(ReferenceCreate $body, ?RefRequestBuilderPostRequestConfigu } /** - * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -93,7 +93,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } /** - * Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + * Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Me/Assignments/Item/Categories/Ref/RefRequestBuilderGetQueryParameters.php b/src/Generated/Education/Me/Assignments/Item/Categories/Ref/RefRequestBuilderGetQueryParameters.php index caf7671df64..b4bbcdf1cd5 100644 --- a/src/Generated/Education/Me/Assignments/Item/Categories/Ref/RefRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Me/Assignments/Item/Categories/Ref/RefRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. */ class RefRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Me/Assignments/Item/Publish/PublishRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Publish/PublishRequestBuilder.php index 1cca5f9093c..33bc174ed7c 100644 --- a/src/Generated/Education/Me/Assignments/Item/Publish/PublishRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Publish/PublishRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + * Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. This API is supported in the following national cloud deployments. * @param PublishRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-publish?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?PublishRequestBuilderPostRequestConfiguration $requestConf } /** - * Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + * Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. This API is supported in the following national cloud deployments. * @param PublishRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Me/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.php index c574a5ffda8..8c121a07635 100644 --- a/src/Generated/Education/Me/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. + * Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. This API is supported in the following national cloud deployments. * @param EducationAssignmentResourceItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignmentresource-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?EducationAssignmentResourceItemRequestBuilderDeleteReque } /** - * Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param EducationAssignmentResourceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignmentresource-get?view=graph-rest-1.0 Find more info here @@ -89,7 +89,7 @@ public function patch(EducationAssignmentResource $body, ?EducationAssignmentRes } /** - * Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. + * Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. This API is supported in the following national cloud deployments. * @param EducationAssignmentResourceItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?EducationAssignmentResourceItemReque } /** - * Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param EducationAssignmentResourceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Me/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilderGetQueryParameters.php b/src/Generated/Education/Me/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilderGetQueryParameters.php index 1f6ef686f51..e1098c1ca0c 100644 --- a/src/Generated/Education/Me/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Me/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. */ class EducationAssignmentResourceItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Me/Assignments/Item/Resources/ResourcesRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Resources/ResourcesRequestBuilder.php index d99fb437533..24cc516de02 100644 --- a/src/Generated/Education/Me/Assignments/Item/Resources/ResourcesRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Resources/ResourcesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param ResourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-list-resources?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ResourcesRequestBuilderGetRequestConfiguration $requestConf } /** - * Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. + * Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. This API is supported in the following national cloud deployments. * @param EducationAssignmentResource $body The request body * @param ResourcesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(EducationAssignmentResource $body, ?ResourcesRequestBuilder } /** - * Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param ResourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig } /** - * Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. + * Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. This API is supported in the following national cloud deployments. * @param EducationAssignmentResource $body The request body * @param ResourcesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Me/Assignments/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php b/src/Generated/Education/Me/Assignments/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php index 2f16cea3487..9d255decd20 100644 --- a/src/Generated/Education/Me/Assignments/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Me/Assignments/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. */ class ResourcesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Me/Assignments/Item/Rubric/Ref/RefRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Rubric/Ref/RefRequestBuilder.php index b03bf55dc19..1493036428b 100644 --- a/src/Generated/Education/Me/Assignments/Item/Rubric/Ref/RefRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Rubric/Ref/RefRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + * Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-delete-rubric?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?RefRequestBuilderDeleteRequestConfiguration $requestConf } /** - * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-get-rubric?view=graph-rest-1.0 Find more info here @@ -70,7 +70,7 @@ public function get(?RefRequestBuilderGetRequestConfiguration $requestConfigurat } /** - * Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + * Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param ReferenceUpdate $body The request body * @param RefRequestBuilderPutRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -90,7 +90,7 @@ public function put(ReferenceUpdate $body, ?RefRequestBuilderPutRequestConfigura } /** - * Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + * Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } /** - * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -125,7 +125,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } /** - * Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + * Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param ReferenceUpdate $body The request body * @param RefRequestBuilderPutRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Me/Assignments/Item/Rubric/RubricRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Rubric/RubricRequestBuilder.php index e552b9fbc44..957a3169c61 100644 --- a/src/Generated/Education/Me/Assignments/Item/Rubric/RubricRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Rubric/RubricRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + * Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. This API is supported in the following national cloud deployments. * @param RubricRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-delete-rubric?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function delete(?RubricRequestBuilderDeleteRequestConfiguration $requestC } /** - * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param RubricRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-get-rubric?view=graph-rest-1.0 Find more info here @@ -78,7 +78,7 @@ public function get(?RubricRequestBuilderGetRequestConfiguration $requestConfigu } /** - * Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + * Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param EducationRubric $body The request body * @param RubricRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -98,7 +98,7 @@ public function patch(EducationRubric $body, ?RubricRequestBuilderPatchRequestCo } /** - * Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + * Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. This API is supported in the following national cloud deployments. * @param RubricRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -115,7 +115,7 @@ public function toDeleteRequestInformation(?RubricRequestBuilderDeleteRequestCon } /** - * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param RubricRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -136,7 +136,7 @@ public function toGetRequestInformation(?RubricRequestBuilderGetRequestConfigura } /** - * Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + * Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param EducationRubric $body The request body * @param RubricRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Me/Assignments/Item/Rubric/RubricRequestBuilderGetQueryParameters.php b/src/Generated/Education/Me/Assignments/Item/Rubric/RubricRequestBuilderGetQueryParameters.php index 4d4a2e8e001..48ecf6ce32c 100644 --- a/src/Generated/Education/Me/Assignments/Item/Rubric/RubricRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Me/Assignments/Item/Rubric/RubricRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. */ class RubricRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Me/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.php index 39f75274d41..07b3224a6ce 100644 --- a/src/Generated/Education/Me/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create a SharePoint folder to upload feedback files for a given educationSubmission. Only teachers can perform this operation. The teacher determines the resources to upload in the feedback resources folder of a submission. + * Create a SharePoint folder to upload feedback files for a given educationSubmission. Only teachers can perform this operation. The teacher determines the resources to upload in the feedback resources folder of a submission. This API is supported in the following national cloud deployments. * @param SetUpFeedbackResourcesFolderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-setupfeedbackresourcesfolder?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?SetUpFeedbackResourcesFolderRequestBuilderPostRequestConfi } /** - * Create a SharePoint folder to upload feedback files for a given educationSubmission. Only teachers can perform this operation. The teacher determines the resources to upload in the feedback resources folder of a submission. + * Create a SharePoint folder to upload feedback files for a given educationSubmission. Only teachers can perform this operation. The teacher determines the resources to upload in the feedback resources folder of a submission. This API is supported in the following national cloud deployments. * @param SetUpFeedbackResourcesFolderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Me/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php index 0eb4cbd6bd8..91778611cf4 100644 --- a/src/Generated/Education/Me/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create a SharePoint folder to upload files for a given educationAssignment. Only teachers can perform this operation. The teacher determines the resources to upload in the assignment's folder. + * Create a SharePoint folder to upload files for a given educationAssignment. Only teachers can perform this operation. The teacher determines the resources to upload in the assignment's folder. This API is supported in the following national cloud deployments. * @param SetUpResourcesFolderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-setupresourcesfolder?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?SetUpResourcesFolderRequestBuilderPostRequestConfiguration } /** - * Create a SharePoint folder to upload files for a given educationAssignment. Only teachers can perform this operation. The teacher determines the resources to upload in the assignment's folder. + * Create a SharePoint folder to upload files for a given educationAssignment. Only teachers can perform this operation. The teacher determines the resources to upload in the assignment's folder. This API is supported in the following national cloud deployments. * @param SetUpResourcesFolderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.php index 3bc64aae45e..13c1ff6fc8f 100644 --- a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.php @@ -114,7 +114,7 @@ public function delete(?EducationSubmissionItemRequestBuilderDeleteRequestConfig } /** - * Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. + * Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. This API is supported in the following national cloud deployments. * @param EducationSubmissionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmission-get?view=graph-rest-1.0 Find more info here @@ -169,7 +169,7 @@ public function toDeleteRequestInformation(?EducationSubmissionItemRequestBuilde } /** - * Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. + * Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. This API is supported in the following national cloud deployments. * @param EducationSubmissionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilderGetQueryParameters.php b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilderGetQueryParameters.php index 75748d0fa30..0d5d1a87a9c 100644 --- a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. + * Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. This API is supported in the following national cloud deployments. */ class EducationSubmissionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/EscapedReturn/ReturnRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/EscapedReturn/ReturnRequestBuilder.php index 364dbd823ef..0e01f1ce930 100644 --- a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/EscapedReturn/ReturnRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/EscapedReturn/ReturnRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Make the grade and feedback associated with this submission available to the student. This action changes the status of the submission from 'submitted' to 'returned' and indicates that feedback is provided or grading is done. This action can only be done by the teacher. + * Make the grade and feedback associated with this submission available to the student. This action changes the status of the submission from 'submitted' to 'returned' and indicates that feedback is provided or grading is done. This action can only be done by the teacher. This API is supported in the following national cloud deployments. * @param ReturnRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmission-return?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?ReturnRequestBuilderPostRequestConfiguration $requestConfi } /** - * Make the grade and feedback associated with this submission available to the student. This action changes the status of the submission from 'submitted' to 'returned' and indicates that feedback is provided or grading is done. This action can only be done by the teacher. + * Make the grade and feedback associated with this submission available to the student. This action changes the status of the submission from 'submitted' to 'returned' and indicates that feedback is provided or grading is done. This action can only be done by the teacher. This API is supported in the following national cloud deployments. * @param ReturnRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.php index af7f9bd4fee..3cc218ba677 100644 --- a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a feedback resource from a submission. This can only be done by a teacher. + * Delete a feedback resource from a submission. This can only be done by a teacher. This API is supported in the following national cloud deployments. * @param EducationOutcomeItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationfeedbackresourceoutcome-delete?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?EducationOutcomeItemRequestBuilderGetRequestConfiguration $ } /** - * Update the properties of an educationOutcome object. Only teachers can perform this operation. + * Update the properties of an educationOutcome object. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param EducationOutcome $body The request body * @param EducationOutcomeItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -89,7 +89,7 @@ public function patch(EducationOutcome $body, ?EducationOutcomeItemRequestBuilde } /** - * Delete a feedback resource from a submission. This can only be done by a teacher. + * Delete a feedback resource from a submission. This can only be done by a teacher. This API is supported in the following national cloud deployments. * @param EducationOutcomeItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -127,7 +127,7 @@ public function toGetRequestInformation(?EducationOutcomeItemRequestBuilderGetRe } /** - * Update the properties of an educationOutcome object. Only teachers can perform this operation. + * Update the properties of an educationOutcome object. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param EducationOutcome $body The request body * @param EducationOutcomeItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.php index 23a44e4a094..db9d36a85d0 100644 --- a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + * Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. This API is supported in the following national cloud deployments. * @param OutcomesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmission-list-outcomes?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?OutcomesRequestBuilderGetRequestConfiguration $requestConfi } /** - * Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. + * Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. This API is supported in the following national cloud deployments. * @param EducationOutcome $body The request body * @param OutcomesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(EducationOutcome $body, ?OutcomesRequestBuilderPostRequestC } /** - * Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + * Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. This API is supported in the following national cloud deployments. * @param OutcomesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?OutcomesRequestBuilderGetRequestConfigu } /** - * Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. + * Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. This API is supported in the following national cloud deployments. * @param EducationOutcome $body The request body * @param OutcomesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilderGetQueryParameters.php b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilderGetQueryParameters.php index dc4357535b2..f879bfed628 100644 --- a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + * Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. This API is supported in the following national cloud deployments. */ class OutcomesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.php index 22fd6a7d6fd..a2a2ff1dad8 100644 --- a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. + * Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. This API is supported in the following national cloud deployments. * @param ReassignRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmission-reassign?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?ReassignRequestBuilderPostRequestConfiguration $requestCon } /** - * Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. + * Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. This API is supported in the following national cloud deployments. * @param ReassignRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.php index 44e3ce38dd7..d75aee8bc43 100644 --- a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource was not copied from the assignment but was added from the student, the resource is simply deleted. + * Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource wasn't copied from the assignment but was added from the student, the resource is deleted. This API is supported in the following national cloud deployments. * @param EducationSubmissionResourceItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmissionresource-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?EducationSubmissionResourceItemRequestBuilderDeleteReque } /** - * Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. + * Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. This API is supported in the following national cloud deployments. * @param EducationSubmissionResourceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmissionresource-get?view=graph-rest-1.0 Find more info here @@ -89,7 +89,7 @@ public function patch(EducationSubmissionResource $body, ?EducationSubmissionRes } /** - * Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource was not copied from the assignment but was added from the student, the resource is simply deleted. + * Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource wasn't copied from the assignment but was added from the student, the resource is deleted. This API is supported in the following national cloud deployments. * @param EducationSubmissionResourceItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?EducationSubmissionResourceItemReque } /** - * Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. + * Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. This API is supported in the following national cloud deployments. * @param EducationSubmissionResourceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilderGetQueryParameters.php b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilderGetQueryParameters.php index 41d75736d3b..12de1e9f172 100644 --- a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. + * Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. This API is supported in the following national cloud deployments. */ class EducationSubmissionResourceItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.php index cea6142607f..e856a1b7966 100644 --- a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + * List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. This API is supported in the following national cloud deployments. * @param ResourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmission-list-resources?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ResourcesRequestBuilderGetRequestConfiguration $requestConf } /** - * Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. + * Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. This API is supported in the following national cloud deployments. * @param EducationSubmissionResource $body The request body * @param ResourcesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(EducationSubmissionResource $body, ?ResourcesRequestBuilder } /** - * List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + * List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. This API is supported in the following national cloud deployments. * @param ResourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig } /** - * Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. + * Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. This API is supported in the following national cloud deployments. * @param EducationSubmissionResource $body The request body * @param ResourcesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php index 83419290fb7..993ccb443bf 100644 --- a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + * List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. This API is supported in the following national cloud deployments. */ class ResourcesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php index 569568453a9..9f231562c4d 100644 --- a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder. + * Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder. This API is supported in the following national cloud deployments. * @param SetUpResourcesFolderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmission-setupresourcesfolder?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?SetUpResourcesFolderRequestBuilderPostRequestConfiguration } /** - * Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder. + * Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder. This API is supported in the following national cloud deployments. * @param SetUpResourcesFolderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.php index d35124a84b1..19b1dced9dd 100644 --- a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Indicate that a student is done with the work and is ready to hand in the assignment. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from working to submitted. During the submit process, all the resources are copied to the submittedResources bucket. The teacher will be looking at the submitted resources list for grading. A teacher can also submit a student's assignment on their behalf. + * Indicate that a student is done with the work and is ready to hand in the assignment. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from working to submitted. During the submit process, all the resources are copied to the submittedResources bucket. The teacher will be looking at the submitted resources list for grading. A teacher can also submit a student's assignment on their behalf. This API is supported in the following national cloud deployments. * @param SubmitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmission-submit?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?SubmitRequestBuilderPostRequestConfiguration $requestConfi } /** - * Indicate that a student is done with the work and is ready to hand in the assignment. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from working to submitted. During the submit process, all the resources are copied to the submittedResources bucket. The teacher will be looking at the submitted resources list for grading. A teacher can also submit a student's assignment on their behalf. + * Indicate that a student is done with the work and is ready to hand in the assignment. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from working to submitted. During the submit process, all the resources are copied to the submittedResources bucket. The teacher will be looking at the submitted resources list for grading. A teacher can also submit a student's assignment on their behalf. This API is supported in the following national cloud deployments. * @param SubmitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.php index 3a7a859be86..5faa1b494fb 100644 --- a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?EducationSubmissionResourceItemRequestBuilderDeleteReque } /** - * Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Note that teachers can leave notes in some resources. + * Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Teachers can leave notes in some resources. This API is supported in the following national cloud deployments. * @param EducationSubmissionResourceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmittedsubmissionresource-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?EducationSubmissionResourceItemReque } /** - * Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Note that teachers can leave notes in some resources. + * Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Teachers can leave notes in some resources. This API is supported in the following national cloud deployments. * @param EducationSubmissionResourceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilderGetQueryParameters.php b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilderGetQueryParameters.php index 3664d471e36..61d66845770 100644 --- a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Note that teachers can leave notes in some resources. + * Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Teachers can leave notes in some resources. This API is supported in the following national cloud deployments. */ class EducationSubmissionResourceItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.php index 0e172b5ec25..74c79bd9c94 100644 --- a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + * List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. This API is supported in the following national cloud deployments. * @param SubmittedResourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmission-list-submittedresources?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(EducationSubmissionResource $body, ?SubmittedResourcesReque } /** - * List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + * List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. This API is supported in the following national cloud deployments. * @param SubmittedResourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilderGetQueryParameters.php b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilderGetQueryParameters.php index b70fb6762f9..4a52df867eb 100644 --- a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + * List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. This API is supported in the following national cloud deployments. */ class SubmittedResourcesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.php index 1c5a98b1dec..0512c96fe9f 100644 --- a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Indicate that a student wants to work on the submission of the assignment after it was turned in. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from submitted to working. During the submit process, all the resources are copied from submittedResources to workingResources. The teacher will be looking at the working resources list for grading. A teacher can also unsubmit a student's assignment on their behalf. + * Indicate that a student wants to work on the submission of the assignment after it was turned in. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from submitted to working. During the submit process, all the resources are copied from submittedResources to workingResources. The teacher will be looking at the working resources list for grading. A teacher can also unsubmit a student's assignment on their behalf. This API is supported in the following national cloud deployments. * @param UnsubmitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmission-unsubmit?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?UnsubmitRequestBuilderPostRequestConfiguration $requestCon } /** - * Indicate that a student wants to work on the submission of the assignment after it was turned in. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from submitted to working. During the submit process, all the resources are copied from submittedResources to workingResources. The teacher will be looking at the working resources list for grading. A teacher can also unsubmit a student's assignment on their behalf. + * Indicate that a student wants to work on the submission of the assignment after it was turned in. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from submitted to working. During the submit process, all the resources are copied from submittedResources to workingResources. The teacher will be looking at the working resources list for grading. A teacher can also unsubmit a student's assignment on their behalf. This API is supported in the following national cloud deployments. * @param UnsubmitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Me/Assignments/Item/Submissions/SubmissionsRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Submissions/SubmissionsRequestBuilder.php index a7d65f08615..3f43f796ef0 100644 --- a/src/Generated/Education/Me/Assignments/Item/Submissions/SubmissionsRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Submissions/SubmissionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + * List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. This API is supported in the following national cloud deployments. * @param SubmissionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-list-submissions?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(EducationSubmission $body, ?SubmissionsRequestBuilderPostRe } /** - * List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + * List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. This API is supported in the following national cloud deployments. * @param SubmissionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Me/Assignments/Item/Submissions/SubmissionsRequestBuilderGetQueryParameters.php b/src/Generated/Education/Me/Assignments/Item/Submissions/SubmissionsRequestBuilderGetQueryParameters.php index 0e1e848d5f4..a38f8889f80 100644 --- a/src/Generated/Education/Me/Assignments/Item/Submissions/SubmissionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Me/Assignments/Item/Submissions/SubmissionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + * List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. This API is supported in the following national cloud deployments. */ class SubmissionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Me/Classes/ClassesRequestBuilder.php b/src/Generated/Education/Me/Classes/ClassesRequestBuilder.php index fc870082bd1..e68543fceb2 100644 --- a/src/Generated/Education/Me/Classes/ClassesRequestBuilder.php +++ b/src/Generated/Education/Me/Classes/ClassesRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the educationClass resources an educationUser is a member of. + * Get the educationClass resources an educationUser is a member of. This API is supported in the following national cloud deployments. * @param ClassesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationuser-list-classes?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?ClassesRequestBuilderGetRequestConfiguration $requestConfig } /** - * Get the educationClass resources an educationUser is a member of. + * Get the educationClass resources an educationUser is a member of. This API is supported in the following national cloud deployments. * @param ClassesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Me/Classes/ClassesRequestBuilderGetQueryParameters.php b/src/Generated/Education/Me/Classes/ClassesRequestBuilderGetQueryParameters.php index 00193b0462f..a77e0ce4761 100644 --- a/src/Generated/Education/Me/Classes/ClassesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Me/Classes/ClassesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the educationClass resources an educationUser is a member of. + * Get the educationClass resources an educationUser is a member of. This API is supported in the following national cloud deployments. */ class ClassesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Me/Rubrics/Item/EducationRubricItemRequestBuilder.php b/src/Generated/Education/Me/Rubrics/Item/EducationRubricItemRequestBuilder.php index 6850fb2ee42..e3ea9275a73 100644 --- a/src/Generated/Education/Me/Rubrics/Item/EducationRubricItemRequestBuilder.php +++ b/src/Generated/Education/Me/Rubrics/Item/EducationRubricItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an educationRubric object. Only teachers can perform this operation. + * Delete an educationRubric object. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param EducationRubricItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationrubric-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?EducationRubricItemRequestBuilderDeleteRequestConfigurat } /** - * Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. + * Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. This API is supported in the following national cloud deployments. * @param EducationRubricItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationrubric-get?view=graph-rest-1.0 Find more info here @@ -70,7 +70,7 @@ public function get(?EducationRubricItemRequestBuilderGetRequestConfiguration $r } /** - * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignments/cf6005fc-9e13-44a2-a6ac-a53322006454/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignments/cf6005fc-9e13-44a2-a6ac-a53322006454/rubric, but it cannot be updated. + * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it cannot be updated. This API is supported in the following national cloud deployments. * @param EducationRubric $body The request body * @param EducationRubricItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -90,7 +90,7 @@ public function patch(EducationRubric $body, ?EducationRubricItemRequestBuilderP } /** - * Delete an educationRubric object. Only teachers can perform this operation. + * Delete an educationRubric object. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param EducationRubricItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?EducationRubricItemRequestBuilderDel } /** - * Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. + * Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. This API is supported in the following national cloud deployments. * @param EducationRubricItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -128,7 +128,7 @@ public function toGetRequestInformation(?EducationRubricItemRequestBuilderGetReq } /** - * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignments/cf6005fc-9e13-44a2-a6ac-a53322006454/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignments/cf6005fc-9e13-44a2-a6ac-a53322006454/rubric, but it cannot be updated. + * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it cannot be updated. This API is supported in the following national cloud deployments. * @param EducationRubric $body The request body * @param EducationRubricItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Me/Rubrics/Item/EducationRubricItemRequestBuilderGetQueryParameters.php b/src/Generated/Education/Me/Rubrics/Item/EducationRubricItemRequestBuilderGetQueryParameters.php index 01ca1fa2f5c..22196b9ffaa 100644 --- a/src/Generated/Education/Me/Rubrics/Item/EducationRubricItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Me/Rubrics/Item/EducationRubricItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. + * Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. This API is supported in the following national cloud deployments. */ class EducationRubricItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Me/Rubrics/RubricsRequestBuilder.php b/src/Generated/Education/Me/Rubrics/RubricsRequestBuilder.php index 807886325a2..82f7a82f5e3 100644 --- a/src/Generated/Education/Me/Rubrics/RubricsRequestBuilder.php +++ b/src/Generated/Education/Me/Rubrics/RubricsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of educationRubric objects. + * Retrieve a list of educationRubric objects. This API is supported in the following national cloud deployments. * @param RubricsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationuser-list-rubrics?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?RubricsRequestBuilderGetRequestConfiguration $requestConfig } /** - * Create a new educationRubric object. + * Create a new educationRubric object. This API is supported in the following national cloud deployments. * @param EducationRubric $body The request body * @param RubricsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(EducationRubric $body, ?RubricsRequestBuilderPostRequestCon } /** - * Retrieve a list of educationRubric objects. + * Retrieve a list of educationRubric objects. This API is supported in the following national cloud deployments. * @param RubricsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?RubricsRequestBuilderGetRequestConfigur } /** - * Create a new educationRubric object. + * Create a new educationRubric object. This API is supported in the following national cloud deployments. * @param EducationRubric $body The request body * @param RubricsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Me/Rubrics/RubricsRequestBuilderGetQueryParameters.php b/src/Generated/Education/Me/Rubrics/RubricsRequestBuilderGetQueryParameters.php index bd5620ca8c1..cc23b80611a 100644 --- a/src/Generated/Education/Me/Rubrics/RubricsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Me/Rubrics/RubricsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of educationRubric objects. + * Retrieve a list of educationRubric objects. This API is supported in the following national cloud deployments. */ class RubricsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Me/Schools/SchoolsRequestBuilder.php b/src/Generated/Education/Me/Schools/SchoolsRequestBuilder.php index 4ecd62b9af0..d9a7395f0ae 100644 --- a/src/Generated/Education/Me/Schools/SchoolsRequestBuilder.php +++ b/src/Generated/Education/Me/Schools/SchoolsRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of schools for a user. + * Retrieve a list of schools for a user. This API is supported in the following national cloud deployments. * @param SchoolsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationuser-list-schools?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?SchoolsRequestBuilderGetRequestConfiguration $requestConfig } /** - * Retrieve a list of schools for a user. + * Retrieve a list of schools for a user. This API is supported in the following national cloud deployments. * @param SchoolsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Me/Schools/SchoolsRequestBuilderGetQueryParameters.php b/src/Generated/Education/Me/Schools/SchoolsRequestBuilderGetQueryParameters.php index 5f89d082f35..67805f24152 100644 --- a/src/Generated/Education/Me/Schools/SchoolsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Me/Schools/SchoolsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of schools for a user. + * Retrieve a list of schools for a user. This API is supported in the following national cloud deployments. */ class SchoolsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Me/TaughtClasses/TaughtClassesRequestBuilder.php b/src/Generated/Education/Me/TaughtClasses/TaughtClassesRequestBuilder.php index 991c875c280..2f83ddca891 100644 --- a/src/Generated/Education/Me/TaughtClasses/TaughtClassesRequestBuilder.php +++ b/src/Generated/Education/Me/TaughtClasses/TaughtClassesRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the educationClass resources owned by an educationUser. + * Get the educationClass resources owned by an educationUser. This API is supported in the following national cloud deployments. * @param TaughtClassesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationuser-list-taughtclasses?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?TaughtClassesRequestBuilderGetRequestConfiguration $request } /** - * Get the educationClass resources owned by an educationUser. + * Get the educationClass resources owned by an educationUser. This API is supported in the following national cloud deployments. * @param TaughtClassesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Me/TaughtClasses/TaughtClassesRequestBuilderGetQueryParameters.php b/src/Generated/Education/Me/TaughtClasses/TaughtClassesRequestBuilderGetQueryParameters.php index ecc7c2ca46f..11e9168d368 100644 --- a/src/Generated/Education/Me/TaughtClasses/TaughtClassesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Me/TaughtClasses/TaughtClassesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the educationClass resources owned by an educationUser. + * Get the educationClass resources owned by an educationUser. This API is supported in the following national cloud deployments. */ class TaughtClassesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Me/User/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Education/Me/User/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..9604e25a20a --- /dev/null +++ b/src/Generated/Education/Me/User/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/education/me/user/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/Education/Me/User/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Education/Me/User/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..a73441fe681 --- /dev/null +++ b/src/Generated/Education/Me/User/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Education/Me/User/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Education/Me/User/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..3ddad72ddf6 --- /dev/null +++ b/src/Generated/Education/Me/User/ServiceProvisioningErrors/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/Education/Me/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Education/Me/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..b0054646d15 --- /dev/null +++ b/src/Generated/Education/Me/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/education/me/user/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Education/Me/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/Education/Me/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..0c860f4f038 --- /dev/null +++ b/src/Generated/Education/Me/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/Education/Me/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/Education/Me/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..ad5101081db --- /dev/null +++ b/src/Generated/Education/Me/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Education/Me/User/UserRequestBuilder.php b/src/Generated/Education/Me/User/UserRequestBuilder.php index 0d1e839feb1..7cecb125d7b 100644 --- a/src/Generated/Education/Me/User/UserRequestBuilder.php +++ b/src/Generated/Education/Me/User/UserRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\Education\Me\User\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\Education\Me\User\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new UserRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. @@ -40,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the simple directory user that corresponds to this educationUser. + * Retrieve the simple directory user that corresponds to this educationUser. This API is supported in the following national cloud deployments. * @param UserRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationuser-get-user?view=graph-rest-1.0 Find more info here @@ -59,7 +67,7 @@ public function get(?UserRequestBuilderGetRequestConfiguration $requestConfigura } /** - * Retrieve the simple directory user that corresponds to this educationUser. + * Retrieve the simple directory user that corresponds to this educationUser. This API is supported in the following national cloud deployments. * @param UserRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Me/User/UserRequestBuilderGetQueryParameters.php b/src/Generated/Education/Me/User/UserRequestBuilderGetQueryParameters.php index f2c949e103e..a36ac784780 100644 --- a/src/Generated/Education/Me/User/UserRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Me/User/UserRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the simple directory user that corresponds to this educationUser. + * Retrieve the simple directory user that corresponds to this educationUser. This API is supported in the following national cloud deployments. */ class UserRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Schools/Delta/DeltaGetResponse.php b/src/Generated/Education/Schools/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..4f745d677a6 --- /dev/null +++ b/src/Generated/Education/Schools/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([EducationSchool::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, EducationSchool::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/Education/Schools/Delta/DeltaRequestBuilder.php b/src/Generated/Education/Schools/Delta/DeltaRequestBuilder.php index 60ba874f411..877a0c5829c 100644 --- a/src/Generated/Education/Schools/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Education/Schools/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Education/Schools/Delta/DeltaResponse.php b/src/Generated/Education/Schools/Delta/DeltaResponse.php deleted file mode 100644 index 663992394fc..00000000000 --- a/src/Generated/Education/Schools/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([EducationSchool::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, EducationSchool::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/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilder.php b/src/Generated/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilder.php index b96c0376752..75f086e154d 100644 --- a/src/Generated/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilder.php +++ b/src/Generated/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of administrativeUnits associated with an educationSchool object. + * Get a list of administrativeUnits associated with an educationSchool object. This API is supported in the following national cloud deployments. * @param AdministrativeUnitRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationschool-list-administrativeunit?view=graph-rest-1.0 Find more info here @@ -70,7 +70,7 @@ public function patch(AdministrativeUnit $body, ?AdministrativeUnitRequestBuilde } /** - * Get a list of administrativeUnits associated with an educationSchool object. + * Get a list of administrativeUnits associated with an educationSchool object. This API is supported in the following national cloud deployments. * @param AdministrativeUnitRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilderGetQueryParameters.php b/src/Generated/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilderGetQueryParameters.php index 5a851cd148f..8cfb666585b 100644 --- a/src/Generated/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of administrativeUnits associated with an educationSchool object. + * Get a list of administrativeUnits associated with an educationSchool object. This API is supported in the following national cloud deployments. */ class AdministrativeUnitRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Schools/Item/Classes/ClassesRequestBuilder.php b/src/Generated/Education/Schools/Item/Classes/ClassesRequestBuilder.php index bc3bf5d3413..3fde1002ae6 100644 --- a/src/Generated/Education/Schools/Item/Classes/ClassesRequestBuilder.php +++ b/src/Generated/Education/Schools/Item/Classes/ClassesRequestBuilder.php @@ -60,7 +60,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the educationClass resources owned by an educationSchool. + * Get the educationClass resources owned by an educationSchool. This API is supported in the following national cloud deployments. * @param ClassesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationschool-list-classes?view=graph-rest-1.0 Find more info here @@ -79,7 +79,7 @@ public function get(?ClassesRequestBuilderGetRequestConfiguration $requestConfig } /** - * Get the educationClass resources owned by an educationSchool. + * Get the educationClass resources owned by an educationSchool. This API is supported in the following national cloud deployments. * @param ClassesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Schools/Item/Classes/ClassesRequestBuilderGetQueryParameters.php b/src/Generated/Education/Schools/Item/Classes/ClassesRequestBuilderGetQueryParameters.php index 17201cd6913..b2c5092196d 100644 --- a/src/Generated/Education/Schools/Item/Classes/ClassesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Schools/Item/Classes/ClassesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the educationClass resources owned by an educationSchool. + * Get the educationClass resources owned by an educationSchool. This API is supported in the following national cloud deployments. */ class ClassesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilder.php b/src/Generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilder.php index 96d160fddd8..fb3adec102e 100644 --- a/src/Generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a class from a school. + * Delete a class from a school. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationschool-delete-classes?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function delete(?RefRequestBuilderDeleteRequestConfiguration $requestConf } /** - * Delete a class from a school. + * Delete a class from a school. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilderDeleteQueryParameters.php b/src/Generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilderDeleteQueryParameters.php index 2f9fe022ca8..ce6c62141c9 100644 --- a/src/Generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilderDeleteQueryParameters.php +++ b/src/Generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilderDeleteQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Delete a class from a school. + * Delete a class from a school. This API is supported in the following national cloud deployments. */ class RefRequestBuilderDeleteQueryParameters { diff --git a/src/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilder.php b/src/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilder.php index 127a266178c..23f60575079 100644 --- a/src/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilder.php +++ b/src/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilder.php @@ -33,7 +33,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the educationClass resources owned by an educationSchool. + * Get the educationClass resources owned by an educationSchool. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationschool-list-classes?view=graph-rest-1.0 Find more info here @@ -52,7 +52,7 @@ public function get(?RefRequestBuilderGetRequestConfiguration $requestConfigurat } /** - * Add a class to a school. + * Add a class to a school. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -72,7 +72,7 @@ public function post(ReferenceCreate $body, ?RefRequestBuilderPostRequestConfigu } /** - * Get the educationClass resources owned by an educationSchool. + * Get the educationClass resources owned by an educationSchool. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -93,7 +93,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } /** - * Add a class to a school. + * Add a class to a school. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilderGetQueryParameters.php b/src/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilderGetQueryParameters.php index b00516da7d2..308f4fbbcd1 100644 --- a/src/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the educationClass resources owned by an educationSchool. + * Get the educationClass resources owned by an educationSchool. This API is supported in the following national cloud deployments. */ class RefRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Schools/Item/EducationSchoolItemRequestBuilder.php b/src/Generated/Education/Schools/Item/EducationSchoolItemRequestBuilder.php index cd2028d6c17..3d58da2fd57 100644 --- a/src/Generated/Education/Schools/Item/EducationSchoolItemRequestBuilder.php +++ b/src/Generated/Education/Schools/Item/EducationSchoolItemRequestBuilder.php @@ -56,7 +56,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a school. + * Delete a school. This API is supported in the following national cloud deployments. * @param EducationSchoolItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationschool-delete?view=graph-rest-1.0 Find more info here @@ -75,7 +75,7 @@ public function delete(?EducationSchoolItemRequestBuilderDeleteRequestConfigurat } /** - * Read the properties and relationships of an educationSchool object. + * Read the properties and relationships of an educationSchool object. This API is supported in the following national cloud deployments. * @param EducationSchoolItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationschool-get?view=graph-rest-1.0 Find more info here @@ -94,7 +94,7 @@ public function get(?EducationSchoolItemRequestBuilderGetRequestConfiguration $r } /** - * Update the properties of an educationSchool object. + * Update the properties of an educationSchool object. This API is supported in the following national cloud deployments. * @param EducationSchool $body The request body * @param EducationSchoolItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -114,7 +114,7 @@ public function patch(EducationSchool $body, ?EducationSchoolItemRequestBuilderP } /** - * Delete a school. + * Delete a school. This API is supported in the following national cloud deployments. * @param EducationSchoolItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -131,7 +131,7 @@ public function toDeleteRequestInformation(?EducationSchoolItemRequestBuilderDel } /** - * Read the properties and relationships of an educationSchool object. + * Read the properties and relationships of an educationSchool object. This API is supported in the following national cloud deployments. * @param EducationSchoolItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -152,7 +152,7 @@ public function toGetRequestInformation(?EducationSchoolItemRequestBuilderGetReq } /** - * Update the properties of an educationSchool object. + * Update the properties of an educationSchool object. This API is supported in the following national cloud deployments. * @param EducationSchool $body The request body * @param EducationSchoolItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Schools/Item/EducationSchoolItemRequestBuilderGetQueryParameters.php b/src/Generated/Education/Schools/Item/EducationSchoolItemRequestBuilderGetQueryParameters.php index 1ec668e606b..7fdb410ff76 100644 --- a/src/Generated/Education/Schools/Item/EducationSchoolItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Schools/Item/EducationSchoolItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of an educationSchool object. + * Read the properties and relationships of an educationSchool object. This API is supported in the following national cloud deployments. */ class EducationSchoolItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilder.php b/src/Generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilder.php index b41a65de629..8f6dc914d4f 100644 --- a/src/Generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a user from a school. + * Delete a user from a school. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationschool-delete-users?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function delete(?RefRequestBuilderDeleteRequestConfiguration $requestConf } /** - * Delete a user from a school. + * Delete a user from a school. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilderDeleteQueryParameters.php b/src/Generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilderDeleteQueryParameters.php index 9a2346e3cf5..9c75c80fe74 100644 --- a/src/Generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilderDeleteQueryParameters.php +++ b/src/Generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilderDeleteQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Delete a user from a school. + * Delete a user from a school. This API is supported in the following national cloud deployments. */ class RefRequestBuilderDeleteQueryParameters { diff --git a/src/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilder.php b/src/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilder.php index 25405b009a0..962e7069853 100644 --- a/src/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilder.php +++ b/src/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilder.php @@ -33,7 +33,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the educationUser resources associated with an educationSchool. + * Get the educationUser resources associated with an educationSchool. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationschool-list-users?view=graph-rest-1.0 Find more info here @@ -52,7 +52,7 @@ public function get(?RefRequestBuilderGetRequestConfiguration $requestConfigurat } /** - * Add a user to a school. + * Add a user to a school. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -72,7 +72,7 @@ public function post(ReferenceCreate $body, ?RefRequestBuilderPostRequestConfigu } /** - * Get the educationUser resources associated with an educationSchool. + * Get the educationUser resources associated with an educationSchool. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -93,7 +93,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } /** - * Add a user to a school. + * Add a user to a school. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilderGetQueryParameters.php b/src/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilderGetQueryParameters.php index a1bd41f9c37..07d7f3566d8 100644 --- a/src/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the educationUser resources associated with an educationSchool. + * Get the educationUser resources associated with an educationSchool. This API is supported in the following national cloud deployments. */ class RefRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Schools/Item/Users/UsersRequestBuilder.php b/src/Generated/Education/Schools/Item/Users/UsersRequestBuilder.php index d704027706d..c7a970cd8c6 100644 --- a/src/Generated/Education/Schools/Item/Users/UsersRequestBuilder.php +++ b/src/Generated/Education/Schools/Item/Users/UsersRequestBuilder.php @@ -60,7 +60,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the educationUser resources associated with an educationSchool. + * Get the educationUser resources associated with an educationSchool. This API is supported in the following national cloud deployments. * @param UsersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationschool-list-users?view=graph-rest-1.0 Find more info here @@ -79,7 +79,7 @@ public function get(?UsersRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Get the educationUser resources associated with an educationSchool. + * Get the educationUser resources associated with an educationSchool. This API is supported in the following national cloud deployments. * @param UsersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Schools/Item/Users/UsersRequestBuilderGetQueryParameters.php b/src/Generated/Education/Schools/Item/Users/UsersRequestBuilderGetQueryParameters.php index 7e31f37dd0a..de9f6522875 100644 --- a/src/Generated/Education/Schools/Item/Users/UsersRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Schools/Item/Users/UsersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the educationUser resources associated with an educationSchool. + * Get the educationUser resources associated with an educationSchool. This API is supported in the following national cloud deployments. */ class UsersRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Schools/SchoolsRequestBuilder.php b/src/Generated/Education/Schools/SchoolsRequestBuilder.php index 1ee19def046..42219dc8bd0 100644 --- a/src/Generated/Education/Schools/SchoolsRequestBuilder.php +++ b/src/Generated/Education/Schools/SchoolsRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the educationSchool objects and their properties. + * Get a list of the educationSchool objects and their properties. This API is supported in the following national cloud deployments. * @param SchoolsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationschool-list?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?SchoolsRequestBuilderGetRequestConfiguration $requestConfig } /** - * Create a new educationSchool object. + * Create a new educationSchool object. This API is supported in the following national cloud deployments. * @param EducationSchool $body The request body * @param SchoolsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(EducationSchool $body, ?SchoolsRequestBuilderPostRequestCon } /** - * Get a list of the educationSchool objects and their properties. + * Get a list of the educationSchool objects and their properties. This API is supported in the following national cloud deployments. * @param SchoolsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?SchoolsRequestBuilderGetRequestConfigur } /** - * Create a new educationSchool object. + * Create a new educationSchool object. This API is supported in the following national cloud deployments. * @param EducationSchool $body The request body * @param SchoolsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Schools/SchoolsRequestBuilderGetQueryParameters.php b/src/Generated/Education/Schools/SchoolsRequestBuilderGetQueryParameters.php index cc0a65313ec..e7829b3f6e2 100644 --- a/src/Generated/Education/Schools/SchoolsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Schools/SchoolsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the educationSchool objects and their properties. + * Get a list of the educationSchool objects and their properties. This API is supported in the following national cloud deployments. */ class SchoolsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Users/Delta/DeltaGetResponse.php b/src/Generated/Education/Users/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..332812cf965 --- /dev/null +++ b/src/Generated/Education/Users/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([EducationUser::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, EducationUser::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/Education/Users/Delta/DeltaRequestBuilder.php b/src/Generated/Education/Users/Delta/DeltaRequestBuilder.php index 02367fe15db..244b24b4ff9 100644 --- a/src/Generated/Education/Users/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Education/Users/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Education/Users/Delta/DeltaResponse.php b/src/Generated/Education/Users/Delta/DeltaResponse.php deleted file mode 100644 index 67d8872a18e..00000000000 --- a/src/Generated/Education/Users/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([EducationUser::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, EducationUser::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/Education/Users/Item/Assignments/AssignmentsRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/AssignmentsRequestBuilder.php index e1c0e1fcb9a..2d2d519b940 100644 --- a/src/Generated/Education/Users/Item/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/AssignmentsRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. + * Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. This API is supported in the following national cloud deployments. * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationuser-list-assignments?view=graph-rest-1.0 Find more info here @@ -99,7 +99,7 @@ public function post(EducationAssignment $body, ?AssignmentsRequestBuilderPostRe } /** - * Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. + * Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. This API is supported in the following national cloud deployments. * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Users/Item/Assignments/AssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/Education/Users/Item/Assignments/AssignmentsRequestBuilderGetQueryParameters.php index 653443159b4..13e6efe3556 100644 --- a/src/Generated/Education/Users/Item/Assignments/AssignmentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Users/Item/Assignments/AssignmentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. + * Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. This API is supported in the following national cloud deployments. */ class AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Users/Item/Assignments/Delta/DeltaGetResponse.php b/src/Generated/Education/Users/Item/Assignments/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..465cc54ee2c --- /dev/null +++ b/src/Generated/Education/Users/Item/Assignments/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([EducationAssignment::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, EducationAssignment::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/Education/Users/Item/Assignments/Delta/DeltaRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Delta/DeltaRequestBuilder.php index a4df33a6061..0d5529a3a5d 100644 --- a/src/Generated/Education/Users/Item/Assignments/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Education/Users/Item/Assignments/Delta/DeltaResponse.php b/src/Generated/Education/Users/Item/Assignments/Delta/DeltaResponse.php deleted file mode 100644 index b105d10c4c1..00000000000 --- a/src/Generated/Education/Users/Item/Assignments/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([EducationAssignment::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, EducationAssignment::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/Education/Users/Item/Assignments/Item/Categories/CategoriesRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Categories/CategoriesRequestBuilder.php index 9eec6fa16f0..ebf1f272660 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Categories/CategoriesRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Categories/CategoriesRequestBuilder.php @@ -69,7 +69,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-list-categories?view=graph-rest-1.0 Find more info here @@ -88,7 +88,7 @@ public function get(?CategoriesRequestBuilderGetRequestConfiguration $requestCon } /** - * Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + * Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param EducationCategory $body The request body * @param CategoriesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -108,7 +108,7 @@ public function post(EducationCategory $body, ?CategoriesRequestBuilderPostReque } /** - * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param CategoriesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -129,7 +129,7 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi } /** - * Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + * Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param EducationCategory $body The request body * @param CategoriesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Categories/CategoriesRequestBuilderGetQueryParameters.php b/src/Generated/Education/Users/Item/Assignments/Item/Categories/CategoriesRequestBuilderGetQueryParameters.php index 269acd9f874..3571be5d632 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Categories/CategoriesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Categories/CategoriesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. */ class CategoriesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaGetResponse.php b/src/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..fd9af604a1a --- /dev/null +++ b/src/Generated/Education/Users/Item/Assignments/Item/Categories/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([EducationCategory::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, EducationCategory::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/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.php index d643e347e6a..e80a38426ad 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaResponse.php b/src/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaResponse.php deleted file mode 100644 index bea22400df6..00000000000 --- a/src/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([EducationCategory::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, EducationCategory::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/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.php index 5db5f5ee8df..81f17bcaaba 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + * Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-remove-category?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function delete(?RefRequestBuilderDeleteRequestConfiguration $requestConf } /** - * Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + * Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilderDeleteQueryParameters.php b/src/Generated/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilderDeleteQueryParameters.php index 1cd99a7f525..5c82563b8ff 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilderDeleteQueryParameters.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilderDeleteQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + * Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. */ class RefRequestBuilderDeleteQueryParameters { diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.php index fdd021da27a..93c138e81e7 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.php @@ -33,7 +33,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-list-categories?view=graph-rest-1.0 Find more info here @@ -52,7 +52,7 @@ public function get(?RefRequestBuilderGetRequestConfiguration $requestConfigurat } /** - * Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + * Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -72,7 +72,7 @@ public function post(ReferenceCreate $body, ?RefRequestBuilderPostRequestConfigu } /** - * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -93,7 +93,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } /** - * Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + * Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Categories/Ref/RefRequestBuilderGetQueryParameters.php b/src/Generated/Education/Users/Item/Assignments/Item/Categories/Ref/RefRequestBuilderGetQueryParameters.php index f4efcdabedd..5174aa005ef 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Categories/Ref/RefRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Categories/Ref/RefRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. */ class RefRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Publish/PublishRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Publish/PublishRequestBuilder.php index f2ff3d5bcd2..4975a833532 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Publish/PublishRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Publish/PublishRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + * Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. This API is supported in the following national cloud deployments. * @param PublishRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-publish?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?PublishRequestBuilderPostRequestConfiguration $requestConf } /** - * Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + * Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. This API is supported in the following national cloud deployments. * @param PublishRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.php index 7033f675375..345e204584a 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. + * Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. This API is supported in the following national cloud deployments. * @param EducationAssignmentResourceItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignmentresource-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?EducationAssignmentResourceItemRequestBuilderDeleteReque } /** - * Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param EducationAssignmentResourceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignmentresource-get?view=graph-rest-1.0 Find more info here @@ -89,7 +89,7 @@ public function patch(EducationAssignmentResource $body, ?EducationAssignmentRes } /** - * Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. + * Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. This API is supported in the following national cloud deployments. * @param EducationAssignmentResourceItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?EducationAssignmentResourceItemReque } /** - * Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param EducationAssignmentResourceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilderGetQueryParameters.php b/src/Generated/Education/Users/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilderGetQueryParameters.php index c5c92ad582e..8771ebc15a0 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. */ class EducationAssignmentResourceItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Resources/ResourcesRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Resources/ResourcesRequestBuilder.php index c7588294b88..fd0c09eb0b5 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Resources/ResourcesRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Resources/ResourcesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param ResourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-list-resources?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ResourcesRequestBuilderGetRequestConfiguration $requestConf } /** - * Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. + * Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. This API is supported in the following national cloud deployments. * @param EducationAssignmentResource $body The request body * @param ResourcesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(EducationAssignmentResource $body, ?ResourcesRequestBuilder } /** - * Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param ResourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig } /** - * Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. + * Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. This API is supported in the following national cloud deployments. * @param EducationAssignmentResource $body The request body * @param ResourcesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php b/src/Generated/Education/Users/Item/Assignments/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php index 7788fb6a1c0..ad925a6c312 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + * Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. */ class ResourcesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.php index 724e0125639..ed4dfb0ca20 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + * Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-delete-rubric?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?RefRequestBuilderDeleteRequestConfiguration $requestConf } /** - * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-get-rubric?view=graph-rest-1.0 Find more info here @@ -70,7 +70,7 @@ public function get(?RefRequestBuilderGetRequestConfiguration $requestConfigurat } /** - * Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + * Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param ReferenceUpdate $body The request body * @param RefRequestBuilderPutRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -90,7 +90,7 @@ public function put(ReferenceUpdate $body, ?RefRequestBuilderPutRequestConfigura } /** - * Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + * Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } /** - * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -125,7 +125,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } /** - * Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + * Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param ReferenceUpdate $body The request body * @param RefRequestBuilderPutRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Rubric/RubricRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Rubric/RubricRequestBuilder.php index db1ea482618..69e0abe01eb 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Rubric/RubricRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Rubric/RubricRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + * Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. This API is supported in the following national cloud deployments. * @param RubricRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-delete-rubric?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function delete(?RubricRequestBuilderDeleteRequestConfiguration $requestC } /** - * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param RubricRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-get-rubric?view=graph-rest-1.0 Find more info here @@ -78,7 +78,7 @@ public function get(?RubricRequestBuilderGetRequestConfiguration $requestConfigu } /** - * Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + * Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param EducationRubric $body The request body * @param RubricRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -98,7 +98,7 @@ public function patch(EducationRubric $body, ?RubricRequestBuilderPatchRequestCo } /** - * Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + * Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. This API is supported in the following national cloud deployments. * @param RubricRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -115,7 +115,7 @@ public function toDeleteRequestInformation(?RubricRequestBuilderDeleteRequestCon } /** - * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. * @param RubricRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -136,7 +136,7 @@ public function toGetRequestInformation(?RubricRequestBuilderGetRequestConfigura } /** - * Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + * Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param EducationRubric $body The request body * @param RubricRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Rubric/RubricRequestBuilderGetQueryParameters.php b/src/Generated/Education/Users/Item/Assignments/Item/Rubric/RubricRequestBuilderGetQueryParameters.php index a94e4e5c922..646c200114b 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Rubric/RubricRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Rubric/RubricRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + * Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. */ class RubricRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Users/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.php index eec8150b26e..c19c2a6a128 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create a SharePoint folder to upload feedback files for a given educationSubmission. Only teachers can perform this operation. The teacher determines the resources to upload in the feedback resources folder of a submission. + * Create a SharePoint folder to upload feedback files for a given educationSubmission. Only teachers can perform this operation. The teacher determines the resources to upload in the feedback resources folder of a submission. This API is supported in the following national cloud deployments. * @param SetUpFeedbackResourcesFolderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-setupfeedbackresourcesfolder?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?SetUpFeedbackResourcesFolderRequestBuilderPostRequestConfi } /** - * Create a SharePoint folder to upload feedback files for a given educationSubmission. Only teachers can perform this operation. The teacher determines the resources to upload in the feedback resources folder of a submission. + * Create a SharePoint folder to upload feedback files for a given educationSubmission. Only teachers can perform this operation. The teacher determines the resources to upload in the feedback resources folder of a submission. This API is supported in the following national cloud deployments. * @param SetUpFeedbackResourcesFolderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Users/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php index 743c7c121e9..b186f06d78f 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create a SharePoint folder to upload files for a given educationAssignment. Only teachers can perform this operation. The teacher determines the resources to upload in the assignment's folder. + * Create a SharePoint folder to upload files for a given educationAssignment. Only teachers can perform this operation. The teacher determines the resources to upload in the assignment's folder. This API is supported in the following national cloud deployments. * @param SetUpResourcesFolderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-setupresourcesfolder?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?SetUpResourcesFolderRequestBuilderPostRequestConfiguration } /** - * Create a SharePoint folder to upload files for a given educationAssignment. Only teachers can perform this operation. The teacher determines the resources to upload in the assignment's folder. + * Create a SharePoint folder to upload files for a given educationAssignment. Only teachers can perform this operation. The teacher determines the resources to upload in the assignment's folder. This API is supported in the following national cloud deployments. * @param SetUpResourcesFolderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.php index 83f6b8c706c..6a8e50f9517 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.php @@ -114,7 +114,7 @@ public function delete(?EducationSubmissionItemRequestBuilderDeleteRequestConfig } /** - * Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. + * Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. This API is supported in the following national cloud deployments. * @param EducationSubmissionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmission-get?view=graph-rest-1.0 Find more info here @@ -169,7 +169,7 @@ public function toDeleteRequestInformation(?EducationSubmissionItemRequestBuilde } /** - * Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. + * Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. This API is supported in the following national cloud deployments. * @param EducationSubmissionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilderGetQueryParameters.php b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilderGetQueryParameters.php index 03b61de4587..5dfca673a16 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. + * Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. This API is supported in the following national cloud deployments. */ class EducationSubmissionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/EscapedReturn/ReturnRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/EscapedReturn/ReturnRequestBuilder.php index 7168f71ef88..f07f404a9cb 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/EscapedReturn/ReturnRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/EscapedReturn/ReturnRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Make the grade and feedback associated with this submission available to the student. This action changes the status of the submission from 'submitted' to 'returned' and indicates that feedback is provided or grading is done. This action can only be done by the teacher. + * Make the grade and feedback associated with this submission available to the student. This action changes the status of the submission from 'submitted' to 'returned' and indicates that feedback is provided or grading is done. This action can only be done by the teacher. This API is supported in the following national cloud deployments. * @param ReturnRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmission-return?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?ReturnRequestBuilderPostRequestConfiguration $requestConfi } /** - * Make the grade and feedback associated with this submission available to the student. This action changes the status of the submission from 'submitted' to 'returned' and indicates that feedback is provided or grading is done. This action can only be done by the teacher. + * Make the grade and feedback associated with this submission available to the student. This action changes the status of the submission from 'submitted' to 'returned' and indicates that feedback is provided or grading is done. This action can only be done by the teacher. This API is supported in the following national cloud deployments. * @param ReturnRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.php index d850242f47c..2979cc5cbfa 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a feedback resource from a submission. This can only be done by a teacher. + * Delete a feedback resource from a submission. This can only be done by a teacher. This API is supported in the following national cloud deployments. * @param EducationOutcomeItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationfeedbackresourceoutcome-delete?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?EducationOutcomeItemRequestBuilderGetRequestConfiguration $ } /** - * Update the properties of an educationOutcome object. Only teachers can perform this operation. + * Update the properties of an educationOutcome object. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param EducationOutcome $body The request body * @param EducationOutcomeItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -89,7 +89,7 @@ public function patch(EducationOutcome $body, ?EducationOutcomeItemRequestBuilde } /** - * Delete a feedback resource from a submission. This can only be done by a teacher. + * Delete a feedback resource from a submission. This can only be done by a teacher. This API is supported in the following national cloud deployments. * @param EducationOutcomeItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -127,7 +127,7 @@ public function toGetRequestInformation(?EducationOutcomeItemRequestBuilderGetRe } /** - * Update the properties of an educationOutcome object. Only teachers can perform this operation. + * Update the properties of an educationOutcome object. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param EducationOutcome $body The request body * @param EducationOutcomeItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.php index a19dec9ab42..15ce8412d28 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + * Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. This API is supported in the following national cloud deployments. * @param OutcomesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmission-list-outcomes?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?OutcomesRequestBuilderGetRequestConfiguration $requestConfi } /** - * Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. + * Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. This API is supported in the following national cloud deployments. * @param EducationOutcome $body The request body * @param OutcomesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(EducationOutcome $body, ?OutcomesRequestBuilderPostRequestC } /** - * Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + * Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. This API is supported in the following national cloud deployments. * @param OutcomesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?OutcomesRequestBuilderGetRequestConfigu } /** - * Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. + * Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. This API is supported in the following national cloud deployments. * @param EducationOutcome $body The request body * @param OutcomesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilderGetQueryParameters.php b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilderGetQueryParameters.php index afd449ec7b9..ee0daa76697 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + * Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. This API is supported in the following national cloud deployments. */ class OutcomesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.php index d4e6822c179..615d3a6eaf3 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. + * Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. This API is supported in the following national cloud deployments. * @param ReassignRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmission-reassign?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?ReassignRequestBuilderPostRequestConfiguration $requestCon } /** - * Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. + * Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. This API is supported in the following national cloud deployments. * @param ReassignRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.php index 8aa7ec4b5c3..073acb7ba9d 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource was not copied from the assignment but was added from the student, the resource is simply deleted. + * Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource wasn't copied from the assignment but was added from the student, the resource is deleted. This API is supported in the following national cloud deployments. * @param EducationSubmissionResourceItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmissionresource-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?EducationSubmissionResourceItemRequestBuilderDeleteReque } /** - * Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. + * Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. This API is supported in the following national cloud deployments. * @param EducationSubmissionResourceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmissionresource-get?view=graph-rest-1.0 Find more info here @@ -89,7 +89,7 @@ public function patch(EducationSubmissionResource $body, ?EducationSubmissionRes } /** - * Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource was not copied from the assignment but was added from the student, the resource is simply deleted. + * Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource wasn't copied from the assignment but was added from the student, the resource is deleted. This API is supported in the following national cloud deployments. * @param EducationSubmissionResourceItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?EducationSubmissionResourceItemReque } /** - * Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. + * Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. This API is supported in the following national cloud deployments. * @param EducationSubmissionResourceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilderGetQueryParameters.php b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilderGetQueryParameters.php index a9b2c235ca7..e92bb6c5994 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. + * Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. This API is supported in the following national cloud deployments. */ class EducationSubmissionResourceItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.php index 3921517ccf1..6778b1adbde 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + * List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. This API is supported in the following national cloud deployments. * @param ResourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmission-list-resources?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ResourcesRequestBuilderGetRequestConfiguration $requestConf } /** - * Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. + * Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. This API is supported in the following national cloud deployments. * @param EducationSubmissionResource $body The request body * @param ResourcesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(EducationSubmissionResource $body, ?ResourcesRequestBuilder } /** - * List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + * List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. This API is supported in the following national cloud deployments. * @param ResourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig } /** - * Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. + * Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. This API is supported in the following national cloud deployments. * @param EducationSubmissionResource $body The request body * @param ResourcesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php index 4452ebd6181..e42f315eff3 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + * List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. This API is supported in the following national cloud deployments. */ class ResourcesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php index 70845f578f2..1f06daae54a 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder. + * Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder. This API is supported in the following national cloud deployments. * @param SetUpResourcesFolderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmission-setupresourcesfolder?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?SetUpResourcesFolderRequestBuilderPostRequestConfiguration } /** - * Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder. + * Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder. This API is supported in the following national cloud deployments. * @param SetUpResourcesFolderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.php index a46d7e0743e..4be9efe12a7 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Indicate that a student is done with the work and is ready to hand in the assignment. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from working to submitted. During the submit process, all the resources are copied to the submittedResources bucket. The teacher will be looking at the submitted resources list for grading. A teacher can also submit a student's assignment on their behalf. + * Indicate that a student is done with the work and is ready to hand in the assignment. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from working to submitted. During the submit process, all the resources are copied to the submittedResources bucket. The teacher will be looking at the submitted resources list for grading. A teacher can also submit a student's assignment on their behalf. This API is supported in the following national cloud deployments. * @param SubmitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmission-submit?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?SubmitRequestBuilderPostRequestConfiguration $requestConfi } /** - * Indicate that a student is done with the work and is ready to hand in the assignment. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from working to submitted. During the submit process, all the resources are copied to the submittedResources bucket. The teacher will be looking at the submitted resources list for grading. A teacher can also submit a student's assignment on their behalf. + * Indicate that a student is done with the work and is ready to hand in the assignment. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from working to submitted. During the submit process, all the resources are copied to the submittedResources bucket. The teacher will be looking at the submitted resources list for grading. A teacher can also submit a student's assignment on their behalf. This API is supported in the following national cloud deployments. * @param SubmitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.php index a62db702e06..5e18736e839 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?EducationSubmissionResourceItemRequestBuilderDeleteReque } /** - * Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Note that teachers can leave notes in some resources. + * Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Teachers can leave notes in some resources. This API is supported in the following national cloud deployments. * @param EducationSubmissionResourceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmittedsubmissionresource-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?EducationSubmissionResourceItemReque } /** - * Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Note that teachers can leave notes in some resources. + * Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Teachers can leave notes in some resources. This API is supported in the following national cloud deployments. * @param EducationSubmissionResourceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilderGetQueryParameters.php b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilderGetQueryParameters.php index b16396deb5f..cd142ccb072 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Note that teachers can leave notes in some resources. + * Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Teachers can leave notes in some resources. This API is supported in the following national cloud deployments. */ class EducationSubmissionResourceItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.php index 5a4ab200f9c..0d935d2269c 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + * List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. This API is supported in the following national cloud deployments. * @param SubmittedResourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmission-list-submittedresources?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(EducationSubmissionResource $body, ?SubmittedResourcesReque } /** - * List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + * List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. This API is supported in the following national cloud deployments. * @param SubmittedResourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilderGetQueryParameters.php b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilderGetQueryParameters.php index bf08055b81e..4a37728d055 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + * List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. This API is supported in the following national cloud deployments. */ class SubmittedResourcesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.php index 0baa97743f6..35f8446dea9 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Indicate that a student wants to work on the submission of the assignment after it was turned in. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from submitted to working. During the submit process, all the resources are copied from submittedResources to workingResources. The teacher will be looking at the working resources list for grading. A teacher can also unsubmit a student's assignment on their behalf. + * Indicate that a student wants to work on the submission of the assignment after it was turned in. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from submitted to working. During the submit process, all the resources are copied from submittedResources to workingResources. The teacher will be looking at the working resources list for grading. A teacher can also unsubmit a student's assignment on their behalf. This API is supported in the following national cloud deployments. * @param UnsubmitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationsubmission-unsubmit?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?UnsubmitRequestBuilderPostRequestConfiguration $requestCon } /** - * Indicate that a student wants to work on the submission of the assignment after it was turned in. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from submitted to working. During the submit process, all the resources are copied from submittedResources to workingResources. The teacher will be looking at the working resources list for grading. A teacher can also unsubmit a student's assignment on their behalf. + * Indicate that a student wants to work on the submission of the assignment after it was turned in. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from submitted to working. During the submit process, all the resources are copied from submittedResources to workingResources. The teacher will be looking at the working resources list for grading. A teacher can also unsubmit a student's assignment on their behalf. This API is supported in the following national cloud deployments. * @param UnsubmitRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.php index 915715024be..bb3c0e802f2 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + * List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. This API is supported in the following national cloud deployments. * @param SubmissionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationassignment-list-submissions?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(EducationSubmission $body, ?SubmissionsRequestBuilderPostRe } /** - * List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + * List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. This API is supported in the following national cloud deployments. * @param SubmissionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/SubmissionsRequestBuilderGetQueryParameters.php b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/SubmissionsRequestBuilderGetQueryParameters.php index d91d354e1ee..bfe7df8d953 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/SubmissionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/SubmissionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + * List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. This API is supported in the following national cloud deployments. */ class SubmissionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Users/Item/Classes/ClassesRequestBuilder.php b/src/Generated/Education/Users/Item/Classes/ClassesRequestBuilder.php index d6e706941bb..3f239b2e9d9 100644 --- a/src/Generated/Education/Users/Item/Classes/ClassesRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Classes/ClassesRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the educationClass resources an educationUser is a member of. + * Get the educationClass resources an educationUser is a member of. This API is supported in the following national cloud deployments. * @param ClassesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationuser-list-classes?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?ClassesRequestBuilderGetRequestConfiguration $requestConfig } /** - * Get the educationClass resources an educationUser is a member of. + * Get the educationClass resources an educationUser is a member of. This API is supported in the following national cloud deployments. * @param ClassesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Users/Item/Classes/ClassesRequestBuilderGetQueryParameters.php b/src/Generated/Education/Users/Item/Classes/ClassesRequestBuilderGetQueryParameters.php index 112e5909ab0..3dd795f0c55 100644 --- a/src/Generated/Education/Users/Item/Classes/ClassesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Users/Item/Classes/ClassesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the educationClass resources an educationUser is a member of. + * Get the educationClass resources an educationUser is a member of. This API is supported in the following national cloud deployments. */ class ClassesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Users/Item/EducationUserItemRequestBuilder.php b/src/Generated/Education/Users/Item/EducationUserItemRequestBuilder.php index 675a045e01c..4b16cab0e18 100644 --- a/src/Generated/Education/Users/Item/EducationUserItemRequestBuilder.php +++ b/src/Generated/Education/Users/Item/EducationUserItemRequestBuilder.php @@ -80,7 +80,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a user. + * Delete a user. This API is supported in the following national cloud deployments. * @param EducationUserItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationuser-delete?view=graph-rest-1.0 Find more info here @@ -99,7 +99,7 @@ public function delete(?EducationUserItemRequestBuilderDeleteRequestConfiguratio } /** - * Read the properties and relationships of an educationUser object. + * Read the properties and relationships of an educationUser object. This API is supported in the following national cloud deployments. * @param EducationUserItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationuser-get?view=graph-rest-1.0 Find more info here @@ -118,7 +118,7 @@ public function get(?EducationUserItemRequestBuilderGetRequestConfiguration $req } /** - * Update the properties of an educationUser object. + * Update the properties of an educationUser object. This API is supported in the following national cloud deployments. * @param EducationUser $body The request body * @param EducationUserItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -138,7 +138,7 @@ public function patch(EducationUser $body, ?EducationUserItemRequestBuilderPatch } /** - * Delete a user. + * Delete a user. This API is supported in the following national cloud deployments. * @param EducationUserItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -155,7 +155,7 @@ public function toDeleteRequestInformation(?EducationUserItemRequestBuilderDelet } /** - * Read the properties and relationships of an educationUser object. + * Read the properties and relationships of an educationUser object. This API is supported in the following national cloud deployments. * @param EducationUserItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -176,7 +176,7 @@ public function toGetRequestInformation(?EducationUserItemRequestBuilderGetReque } /** - * Update the properties of an educationUser object. + * Update the properties of an educationUser object. This API is supported in the following national cloud deployments. * @param EducationUser $body The request body * @param EducationUserItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Users/Item/EducationUserItemRequestBuilderGetQueryParameters.php b/src/Generated/Education/Users/Item/EducationUserItemRequestBuilderGetQueryParameters.php index 496ef0d111c..7a608ab1091 100644 --- a/src/Generated/Education/Users/Item/EducationUserItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Users/Item/EducationUserItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of an educationUser object. + * Read the properties and relationships of an educationUser object. This API is supported in the following national cloud deployments. */ class EducationUserItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Users/Item/Rubrics/Item/EducationRubricItemRequestBuilder.php b/src/Generated/Education/Users/Item/Rubrics/Item/EducationRubricItemRequestBuilder.php index d057ea2a003..4601ef1f40d 100644 --- a/src/Generated/Education/Users/Item/Rubrics/Item/EducationRubricItemRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Rubrics/Item/EducationRubricItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an educationRubric object. Only teachers can perform this operation. + * Delete an educationRubric object. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param EducationRubricItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationrubric-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?EducationRubricItemRequestBuilderDeleteRequestConfigurat } /** - * Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. + * Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. This API is supported in the following national cloud deployments. * @param EducationRubricItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationrubric-get?view=graph-rest-1.0 Find more info here @@ -70,7 +70,7 @@ public function get(?EducationRubricItemRequestBuilderGetRequestConfiguration $r } /** - * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignments/cf6005fc-9e13-44a2-a6ac-a53322006454/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignments/cf6005fc-9e13-44a2-a6ac-a53322006454/rubric, but it cannot be updated. + * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it cannot be updated. This API is supported in the following national cloud deployments. * @param EducationRubric $body The request body * @param EducationRubricItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -90,7 +90,7 @@ public function patch(EducationRubric $body, ?EducationRubricItemRequestBuilderP } /** - * Delete an educationRubric object. Only teachers can perform this operation. + * Delete an educationRubric object. Only teachers can perform this operation. This API is supported in the following national cloud deployments. * @param EducationRubricItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?EducationRubricItemRequestBuilderDel } /** - * Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. + * Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. This API is supported in the following national cloud deployments. * @param EducationRubricItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -128,7 +128,7 @@ public function toGetRequestInformation(?EducationRubricItemRequestBuilderGetReq } /** - * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignments/cf6005fc-9e13-44a2-a6ac-a53322006454/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignments/cf6005fc-9e13-44a2-a6ac-a53322006454/rubric, but it cannot be updated. + * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it cannot be updated. This API is supported in the following national cloud deployments. * @param EducationRubric $body The request body * @param EducationRubricItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Users/Item/Rubrics/Item/EducationRubricItemRequestBuilderGetQueryParameters.php b/src/Generated/Education/Users/Item/Rubrics/Item/EducationRubricItemRequestBuilderGetQueryParameters.php index 21debba3be7..396126e41c8 100644 --- a/src/Generated/Education/Users/Item/Rubrics/Item/EducationRubricItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Users/Item/Rubrics/Item/EducationRubricItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. + * Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. This API is supported in the following national cloud deployments. */ class EducationRubricItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Users/Item/Rubrics/RubricsRequestBuilder.php b/src/Generated/Education/Users/Item/Rubrics/RubricsRequestBuilder.php index 390c5bfc725..74819bf4d38 100644 --- a/src/Generated/Education/Users/Item/Rubrics/RubricsRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Rubrics/RubricsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of educationRubric objects. + * Retrieve a list of educationRubric objects. This API is supported in the following national cloud deployments. * @param RubricsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationuser-list-rubrics?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?RubricsRequestBuilderGetRequestConfiguration $requestConfig } /** - * Create a new educationRubric object. + * Create a new educationRubric object. This API is supported in the following national cloud deployments. * @param EducationRubric $body The request body * @param RubricsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(EducationRubric $body, ?RubricsRequestBuilderPostRequestCon } /** - * Retrieve a list of educationRubric objects. + * Retrieve a list of educationRubric objects. This API is supported in the following national cloud deployments. * @param RubricsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?RubricsRequestBuilderGetRequestConfigur } /** - * Create a new educationRubric object. + * Create a new educationRubric object. This API is supported in the following national cloud deployments. * @param EducationRubric $body The request body * @param RubricsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Users/Item/Rubrics/RubricsRequestBuilderGetQueryParameters.php b/src/Generated/Education/Users/Item/Rubrics/RubricsRequestBuilderGetQueryParameters.php index 363bb7968f6..641b0de87b8 100644 --- a/src/Generated/Education/Users/Item/Rubrics/RubricsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Users/Item/Rubrics/RubricsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of educationRubric objects. + * Retrieve a list of educationRubric objects. This API is supported in the following national cloud deployments. */ class RubricsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Users/Item/Schools/SchoolsRequestBuilder.php b/src/Generated/Education/Users/Item/Schools/SchoolsRequestBuilder.php index 9e036ca6322..1f1d6b43b99 100644 --- a/src/Generated/Education/Users/Item/Schools/SchoolsRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Schools/SchoolsRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of schools for a user. + * Retrieve a list of schools for a user. This API is supported in the following national cloud deployments. * @param SchoolsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationuser-list-schools?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?SchoolsRequestBuilderGetRequestConfiguration $requestConfig } /** - * Retrieve a list of schools for a user. + * Retrieve a list of schools for a user. This API is supported in the following national cloud deployments. * @param SchoolsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Users/Item/Schools/SchoolsRequestBuilderGetQueryParameters.php b/src/Generated/Education/Users/Item/Schools/SchoolsRequestBuilderGetQueryParameters.php index a77d8596238..4109124afec 100644 --- a/src/Generated/Education/Users/Item/Schools/SchoolsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Users/Item/Schools/SchoolsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of schools for a user. + * Retrieve a list of schools for a user. This API is supported in the following national cloud deployments. */ class SchoolsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Users/Item/TaughtClasses/TaughtClassesRequestBuilder.php b/src/Generated/Education/Users/Item/TaughtClasses/TaughtClassesRequestBuilder.php index fabcced9f88..fe46c867c1e 100644 --- a/src/Generated/Education/Users/Item/TaughtClasses/TaughtClassesRequestBuilder.php +++ b/src/Generated/Education/Users/Item/TaughtClasses/TaughtClassesRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the educationClass resources owned by an educationUser. + * Get the educationClass resources owned by an educationUser. This API is supported in the following national cloud deployments. * @param TaughtClassesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationuser-list-taughtclasses?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?TaughtClassesRequestBuilderGetRequestConfiguration $request } /** - * Get the educationClass resources owned by an educationUser. + * Get the educationClass resources owned by an educationUser. This API is supported in the following national cloud deployments. * @param TaughtClassesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Users/Item/TaughtClasses/TaughtClassesRequestBuilderGetQueryParameters.php b/src/Generated/Education/Users/Item/TaughtClasses/TaughtClassesRequestBuilderGetQueryParameters.php index ebdcd6efaae..6cea0c9af7f 100644 --- a/src/Generated/Education/Users/Item/TaughtClasses/TaughtClassesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Users/Item/TaughtClasses/TaughtClassesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the educationClass resources owned by an educationUser. + * Get the educationClass resources owned by an educationUser. This API is supported in the following national cloud deployments. */ class TaughtClassesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Users/Item/User/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Education/Users/Item/User/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..a239b7d4fbc --- /dev/null +++ b/src/Generated/Education/Users/Item/User/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/education/users/{educationUser%2Did}/user/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/Education/Users/Item/User/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Education/Users/Item/User/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..15034d8cbf1 --- /dev/null +++ b/src/Generated/Education/Users/Item/User/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Education/Users/Item/User/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Education/Users/Item/User/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..ad226d615a2 --- /dev/null +++ b/src/Generated/Education/Users/Item/User/ServiceProvisioningErrors/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/Education/Users/Item/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Education/Users/Item/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..6690128b6ce --- /dev/null +++ b/src/Generated/Education/Users/Item/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/education/users/{educationUser%2Did}/user/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Education/Users/Item/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/Education/Users/Item/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..0c1e1a81ffb --- /dev/null +++ b/src/Generated/Education/Users/Item/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/Education/Users/Item/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/Education/Users/Item/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..0750ee0cfa9 --- /dev/null +++ b/src/Generated/Education/Users/Item/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Education/Users/Item/User/UserRequestBuilder.php b/src/Generated/Education/Users/Item/User/UserRequestBuilder.php index 792453dd725..0d05fc8ecc8 100644 --- a/src/Generated/Education/Users/Item/User/UserRequestBuilder.php +++ b/src/Generated/Education/Users/Item/User/UserRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\Education\Users\Item\User\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\Education\Users\Item\User\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new UserRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. @@ -40,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the simple directory user that corresponds to this educationUser. + * Retrieve the simple directory user that corresponds to this educationUser. This API is supported in the following national cloud deployments. * @param UserRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationuser-get-user?view=graph-rest-1.0 Find more info here @@ -59,7 +67,7 @@ public function get(?UserRequestBuilderGetRequestConfiguration $requestConfigura } /** - * Retrieve the simple directory user that corresponds to this educationUser. + * Retrieve the simple directory user that corresponds to this educationUser. This API is supported in the following national cloud deployments. * @param UserRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Education/Users/Item/User/UserRequestBuilderGetQueryParameters.php b/src/Generated/Education/Users/Item/User/UserRequestBuilderGetQueryParameters.php index 8896b319aa7..de43fc61d9a 100644 --- a/src/Generated/Education/Users/Item/User/UserRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Users/Item/User/UserRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the simple directory user that corresponds to this educationUser. + * Retrieve the simple directory user that corresponds to this educationUser. This API is supported in the following national cloud deployments. */ class UserRequestBuilderGetQueryParameters { diff --git a/src/Generated/Education/Users/UsersRequestBuilder.php b/src/Generated/Education/Users/UsersRequestBuilder.php index 2621fc83843..c55db567cfe 100644 --- a/src/Generated/Education/Users/UsersRequestBuilder.php +++ b/src/Generated/Education/Users/UsersRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the educationUser objects and their properties. + * Get a list of the educationUser objects and their properties. This API is supported in the following national cloud deployments. * @param UsersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/educationuser-list?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?UsersRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Create a new educationUser object. + * Create a new educationUser object. This API is supported in the following national cloud deployments. * @param EducationUser $body The request body * @param UsersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(EducationUser $body, ?UsersRequestBuilderPostRequestConfigu } /** - * Get a list of the educationUser objects and their properties. + * Get a list of the educationUser objects and their properties. This API is supported in the following national cloud deployments. * @param UsersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?UsersRequestBuilderGetRequestConfigurat } /** - * Create a new educationUser object. + * Create a new educationUser object. This API is supported in the following national cloud deployments. * @param EducationUser $body The request body * @param UsersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Education/Users/UsersRequestBuilderGetQueryParameters.php b/src/Generated/Education/Users/UsersRequestBuilderGetQueryParameters.php index df53d36389a..2635a5c1b8d 100644 --- a/src/Generated/Education/Users/UsersRequestBuilderGetQueryParameters.php +++ b/src/Generated/Education/Users/UsersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the educationUser objects and their properties. + * Get a list of the educationUser objects and their properties. This API is supported in the following national cloud deployments. */ class UsersRequestBuilderGetQueryParameters { diff --git a/src/Generated/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.php b/src/Generated/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.php index 93f7c3bb02c..ad3a4bbf1cf 100644 --- a/src/Generated/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.php +++ b/src/Generated/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?LearningCourseActivityItemRequestBuilderDeleteRequestCon } /** - * Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. + * Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. This API is supported in the following national cloud deployments. * @param LearningCourseActivityItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/learningcourseactivity-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?LearningCourseActivityItemRequestBui } /** - * Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. + * Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. This API is supported in the following national cloud deployments. * @param LearningCourseActivityItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilderGetQueryParameters.php b/src/Generated/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilderGetQueryParameters.php index 47d422f9c8a..faf2c43da03 100644 --- a/src/Generated/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. + * Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. This API is supported in the following national cloud deployments. */ class LearningCourseActivityItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.php b/src/Generated/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.php index 1596d8564a7..75ad33b6755 100644 --- a/src/Generated/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.php +++ b/src/Generated/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. + * Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. This API is supported in the following national cloud deployments. * @param LearningCourseActivitiesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(LearningCourseActivity $body, ?LearningCourseActivitiesRequ } /** - * Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. + * Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. This API is supported in the following national cloud deployments. * @param LearningCourseActivitiesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilderGetQueryParameters.php b/src/Generated/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilderGetQueryParameters.php index 2a60bcf2607..116143b52c8 100644 --- a/src/Generated/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilderGetQueryParameters.php +++ b/src/Generated/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. + * Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. This API is supported in the following national cloud deployments. */ class LearningCourseActivitiesRequestBuilderGetQueryParameters { diff --git a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Item/LearningContentItemRequestBuilder.php b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Item/LearningContentItemRequestBuilder.php index d8a11d48f9b..49872c983f2 100644 --- a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Item/LearningContentItemRequestBuilder.php +++ b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Item/LearningContentItemRequestBuilder.php @@ -51,7 +51,7 @@ public function delete(?LearningContentItemRequestBuilderDeleteRequestConfigurat } /** - * Get the specified learningContent resource which represents the metadata of the specified provider's ingested content. + * Get the specified learningContent resource which represents the metadata of the specified provider's ingested content. This API is supported in the following national cloud deployments. * @param LearningContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/learningcontent-get?view=graph-rest-1.0 Find more info here @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?LearningContentItemRequestBuilderDel } /** - * Get the specified learningContent resource which represents the metadata of the specified provider's ingested content. + * Get the specified learningContent resource which represents the metadata of the specified provider's ingested content. This API is supported in the following national cloud deployments. * @param LearningContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Item/LearningContentItemRequestBuilderGetQueryParameters.php b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Item/LearningContentItemRequestBuilderGetQueryParameters.php index fdccdfa2273..d7ee05b901d 100644 --- a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Item/LearningContentItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Item/LearningContentItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the specified learningContent resource which represents the metadata of the specified provider's ingested content. + * Get the specified learningContent resource which represents the metadata of the specified provider's ingested content. This API is supported in the following national cloud deployments. */ class LearningContentItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/LearningContentsRequestBuilder.php b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/LearningContentsRequestBuilder.php index daff48289df..60929d84e8c 100644 --- a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/LearningContentsRequestBuilder.php +++ b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/LearningContentsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the learningContent resources and their properties. This list represents the metadata of the specified provider's content in Viva Learning. + * Get a list of the learningContent resources and their properties. This list represents the metadata of the specified provider's content in Viva Learning. This API is supported in the following national cloud deployments. * @param LearningContentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/learningprovider-list-learningcontents?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(LearningContent $body, ?LearningContentsRequestBuilderPostR } /** - * Get a list of the learningContent resources and their properties. This list represents the metadata of the specified provider's content in Viva Learning. + * Get a list of the learningContent resources and their properties. This list represents the metadata of the specified provider's content in Viva Learning. This API is supported in the following national cloud deployments. * @param LearningContentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/LearningContentsRequestBuilderGetQueryParameters.php b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/LearningContentsRequestBuilderGetQueryParameters.php index c28a6951396..81e4158ae5a 100644 --- a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/LearningContentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/LearningContentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the learningContent resources and their properties. This list represents the metadata of the specified provider's content in Viva Learning. + * Get a list of the learningContent resources and their properties. This list represents the metadata of the specified provider's content in Viva Learning. This API is supported in the following national cloud deployments. */ class LearningContentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.php b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.php index c4200674e9a..196ec83da84 100644 --- a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.php +++ b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a learningCourseActivity object by using the course activity ID of either an assignment or a self-initiated activity. + * Delete a learningCourseActivity object by using the course activity ID of either an assignment or a self-initiated activity. This API is supported in the following national cloud deployments. * @param LearningCourseActivityItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/learningcourseactivity-delete?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?LearningCourseActivityItemRequestBuilderGetRequestConfigura } /** - * Update the properties of a learningCourseActivity object. + * Update the properties of a learningCourseActivity object. This API is supported in the following national cloud deployments. * @param LearningCourseActivity $body The request body * @param LearningCourseActivityItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -89,7 +89,7 @@ public function patch(LearningCourseActivity $body, ?LearningCourseActivityItemR } /** - * Delete a learningCourseActivity object by using the course activity ID of either an assignment or a self-initiated activity. + * Delete a learningCourseActivity object by using the course activity ID of either an assignment or a self-initiated activity. This API is supported in the following national cloud deployments. * @param LearningCourseActivityItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -127,7 +127,7 @@ public function toGetRequestInformation(?LearningCourseActivityItemRequestBuilde } /** - * Update the properties of a learningCourseActivity object. + * Update the properties of a learningCourseActivity object. This API is supported in the following national cloud deployments. * @param LearningCourseActivity $body The request body * @param LearningCourseActivityItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.php b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.php index 3444ed3b28f..143394ce736 100644 --- a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.php +++ b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.php @@ -71,7 +71,7 @@ public function get(?LearningCourseActivitiesRequestBuilderGetRequestConfigurati } /** - * Create a new learningCourseActivity object. A learning course activity can be one of two types: - Assignment- Self-initiated Use this method to create either type of activity. + * Create a new learningCourseActivity object. A learning course activity can be one of two types: - Assignment- Self-initiated Use this method to create either type of activity. This API is supported in the following national cloud deployments. * @param LearningCourseActivity $body The request body * @param LearningCourseActivitiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -112,7 +112,7 @@ public function toGetRequestInformation(?LearningCourseActivitiesRequestBuilderG } /** - * Create a new learningCourseActivity object. A learning course activity can be one of two types: - Assignment- Self-initiated Use this method to create either type of activity. + * Create a new learningCourseActivity object. A learning course activity can be one of two types: - Assignment- Self-initiated Use this method to create either type of activity. This API is supported in the following national cloud deployments. * @param LearningCourseActivity $body The request body * @param LearningCourseActivitiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningProviderItemRequestBuilder.php b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningProviderItemRequestBuilder.php index a7ccf7a59dc..52427f8a606 100644 --- a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningProviderItemRequestBuilder.php +++ b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningProviderItemRequestBuilder.php @@ -67,7 +67,7 @@ public function delete(?LearningProviderItemRequestBuilderDeleteRequestConfigura } /** - * Read the properties and relationships of a learningProvider object. + * Read the properties and relationships of a learningProvider object. This API is supported in the following national cloud deployments. * @param LearningProviderItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/learningprovider-get?view=graph-rest-1.0 Find more info here @@ -86,7 +86,7 @@ public function get(?LearningProviderItemRequestBuilderGetRequestConfiguration $ } /** - * Update the properties of a learningProvider object. + * Update the properties of a learningProvider object. This API is supported in the following national cloud deployments. * @param LearningProvider $body The request body * @param LearningProviderItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -123,7 +123,7 @@ public function toDeleteRequestInformation(?LearningProviderItemRequestBuilderDe } /** - * Read the properties and relationships of a learningProvider object. + * Read the properties and relationships of a learningProvider object. This API is supported in the following national cloud deployments. * @param LearningProviderItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -144,7 +144,7 @@ public function toGetRequestInformation(?LearningProviderItemRequestBuilderGetRe } /** - * Update the properties of a learningProvider object. + * Update the properties of a learningProvider object. This API is supported in the following national cloud deployments. * @param LearningProvider $body The request body * @param LearningProviderItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningProviderItemRequestBuilderGetQueryParameters.php b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningProviderItemRequestBuilderGetQueryParameters.php index b263c819d6d..2b67d0707bc 100644 --- a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningProviderItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningProviderItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a learningProvider object. + * Read the properties and relationships of a learningProvider object. This API is supported in the following national cloud deployments. */ class LearningProviderItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/EmployeeExperience/LearningProviders/LearningProvidersRequestBuilder.php b/src/Generated/EmployeeExperience/LearningProviders/LearningProvidersRequestBuilder.php index 15c3dfef017..98570028682 100644 --- a/src/Generated/EmployeeExperience/LearningProviders/LearningProvidersRequestBuilder.php +++ b/src/Generated/EmployeeExperience/LearningProviders/LearningProvidersRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the learningProvider resources registered in Viva Learning for a tenant. + * Get a list of the learningProvider resources registered in Viva Learning for a tenant. This API is supported in the following national cloud deployments. * @param LearningProvidersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/employeeexperience-list-learningproviders?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?LearningProvidersRequestBuilderGetRequestConfiguration $req } /** - * Create a new learningProvider object and register it with Viva Learning using the specified display name and logos for different themes. + * Create a new learningProvider object and register it with Viva Learning using the specified display name and logos for different themes. This API is supported in the following national cloud deployments. * @param LearningProvider $body The request body * @param LearningProvidersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(LearningProvider $body, ?LearningProvidersRequestBuilderPos } /** - * Get a list of the learningProvider resources registered in Viva Learning for a tenant. + * Get a list of the learningProvider resources registered in Viva Learning for a tenant. This API is supported in the following national cloud deployments. * @param LearningProvidersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?LearningProvidersRequestBuilderGetReque } /** - * Create a new learningProvider object and register it with Viva Learning using the specified display name and logos for different themes. + * Create a new learningProvider object and register it with Viva Learning using the specified display name and logos for different themes. This API is supported in the following national cloud deployments. * @param LearningProvider $body The request body * @param LearningProvidersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/EmployeeExperience/LearningProviders/LearningProvidersRequestBuilderGetQueryParameters.php b/src/Generated/EmployeeExperience/LearningProviders/LearningProvidersRequestBuilderGetQueryParameters.php index 5ec1c949745..124b48c904d 100644 --- a/src/Generated/EmployeeExperience/LearningProviders/LearningProvidersRequestBuilderGetQueryParameters.php +++ b/src/Generated/EmployeeExperience/LearningProviders/LearningProvidersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the learningProvider resources registered in Viva Learning for a tenant. + * Get a list of the learningProvider resources registered in Viva Learning for a tenant. This API is supported in the following national cloud deployments. */ class LearningProvidersRequestBuilderGetQueryParameters { diff --git a/src/Generated/EscapedPrint/Connectors/ConnectorsRequestBuilder.php b/src/Generated/EscapedPrint/Connectors/ConnectorsRequestBuilder.php index 2156661b4dc..79adc67a28b 100644 --- a/src/Generated/EscapedPrint/Connectors/ConnectorsRequestBuilder.php +++ b/src/Generated/EscapedPrint/Connectors/ConnectorsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of print connectors. + * Retrieve a list of print connectors. This API is supported in the following national cloud deployments. * @param ConnectorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/print-list-connectors?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(PrintConnector $body, ?ConnectorsRequestBuilderPostRequestC } /** - * Retrieve a list of print connectors. + * Retrieve a list of print connectors. This API is supported in the following national cloud deployments. * @param ConnectorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/EscapedPrint/Connectors/ConnectorsRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/Connectors/ConnectorsRequestBuilderGetQueryParameters.php index 0c883c6bcfe..e54f830a412 100644 --- a/src/Generated/EscapedPrint/Connectors/ConnectorsRequestBuilderGetQueryParameters.php +++ b/src/Generated/EscapedPrint/Connectors/ConnectorsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of print connectors. + * Retrieve a list of print connectors. This API is supported in the following national cloud deployments. */ class ConnectorsRequestBuilderGetQueryParameters { diff --git a/src/Generated/EscapedPrint/Connectors/Item/PrintConnectorItemRequestBuilder.php b/src/Generated/EscapedPrint/Connectors/Item/PrintConnectorItemRequestBuilder.php index ca9cc3290b7..fa6e04f3bcc 100644 --- a/src/Generated/EscapedPrint/Connectors/Item/PrintConnectorItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/Connectors/Item/PrintConnectorItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete (unregister) a printConnector. + * Delete (unregister) a printConnector. This API is supported in the following national cloud deployments. * @param PrintConnectorItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printconnector-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?PrintConnectorItemRequestBuilderDeleteRequestConfigurati } /** - * Retrieve the properties and relationships of a printConnector object. + * Retrieve the properties and relationships of a printConnector object. This API is supported in the following national cloud deployments. * @param PrintConnectorItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printconnector-get?view=graph-rest-1.0 Find more info here @@ -70,7 +70,7 @@ public function get(?PrintConnectorItemRequestBuilderGetRequestConfiguration $re } /** - * Update the properties of a printConnector object. + * Update the properties of a printConnector object. This API is supported in the following national cloud deployments. * @param PrintConnector $body The request body * @param PrintConnectorItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -90,7 +90,7 @@ public function patch(PrintConnector $body, ?PrintConnectorItemRequestBuilderPat } /** - * Delete (unregister) a printConnector. + * Delete (unregister) a printConnector. This API is supported in the following national cloud deployments. * @param PrintConnectorItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?PrintConnectorItemRequestBuilderDele } /** - * Retrieve the properties and relationships of a printConnector object. + * Retrieve the properties and relationships of a printConnector object. This API is supported in the following national cloud deployments. * @param PrintConnectorItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -128,7 +128,7 @@ public function toGetRequestInformation(?PrintConnectorItemRequestBuilderGetRequ } /** - * Update the properties of a printConnector object. + * Update the properties of a printConnector object. This API is supported in the following national cloud deployments. * @param PrintConnector $body The request body * @param PrintConnectorItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/EscapedPrint/Connectors/Item/PrintConnectorItemRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/Connectors/Item/PrintConnectorItemRequestBuilderGetQueryParameters.php index 7932b6df9ed..fa5a61f9217 100644 --- a/src/Generated/EscapedPrint/Connectors/Item/PrintConnectorItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/EscapedPrint/Connectors/Item/PrintConnectorItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a printConnector object. + * Retrieve the properties and relationships of a printConnector object. This API is supported in the following national cloud deployments. */ class PrintConnectorItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/EscapedPrint/Operations/Item/PrintOperationItemRequestBuilder.php b/src/Generated/EscapedPrint/Operations/Item/PrintOperationItemRequestBuilder.php index d12070e378d..fc40f140ba3 100644 --- a/src/Generated/EscapedPrint/Operations/Item/PrintOperationItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/Operations/Item/PrintOperationItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?PrintOperationItemRequestBuilderDeleteRequestConfigurati } /** - * Retrieve the properties and relationships of a printOperation object. + * Retrieve the properties and relationships of a printOperation object. This API is supported in the following national cloud deployments. * @param PrintOperationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printoperation-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?PrintOperationItemRequestBuilderDele } /** - * Retrieve the properties and relationships of a printOperation object. + * Retrieve the properties and relationships of a printOperation object. This API is supported in the following national cloud deployments. * @param PrintOperationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/EscapedPrint/Operations/Item/PrintOperationItemRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/Operations/Item/PrintOperationItemRequestBuilderGetQueryParameters.php index 2fe4a3fd766..2995d31e3db 100644 --- a/src/Generated/EscapedPrint/Operations/Item/PrintOperationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/EscapedPrint/Operations/Item/PrintOperationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a printOperation object. + * Retrieve the properties and relationships of a printOperation object. This API is supported in the following national cloud deployments. */ class PrintOperationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/EscapedPrint/Operations/OperationsRequestBuilder.php b/src/Generated/EscapedPrint/Operations/OperationsRequestBuilder.php index 99f0225ad99..b3b35b0bebc 100644 --- a/src/Generated/EscapedPrint/Operations/OperationsRequestBuilder.php +++ b/src/Generated/EscapedPrint/Operations/OperationsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the properties and relationships of a printOperation object. + * Retrieve the properties and relationships of a printOperation object. This API is supported in the following national cloud deployments. * @param OperationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(PrintOperation $body, ?OperationsRequestBuilderPostRequestC } /** - * Retrieve the properties and relationships of a printOperation object. + * Retrieve the properties and relationships of a printOperation object. This API is supported in the following national cloud deployments. * @param OperationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/EscapedPrint/Operations/OperationsRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/Operations/OperationsRequestBuilderGetQueryParameters.php index b9534b05738..753a2175351 100644 --- a/src/Generated/EscapedPrint/Operations/OperationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/EscapedPrint/Operations/OperationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a printOperation object. + * Retrieve the properties and relationships of a printOperation object. This API is supported in the following national cloud deployments. */ class OperationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/EscapedPrint/Printers/Create/CreateRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Create/CreateRequestBuilder.php index edc653ffc19..1ca0ffba9c2 100644 --- a/src/Generated/EscapedPrint/Printers/Create/CreateRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Create/CreateRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create (register) a printer with the Universal Print service. This is a long-running operation and as such, it returns a printerCreateOperation that can be used to track and verify the registration of the printer. For help creating the required Certificate Signing Request (CSR) for creating printer, see the CSR generation code sample. + * Create (register) a printer with the Universal Print service. This is a long-running operation and as such, it returns a printerCreateOperation that can be used to track and verify the registration of the printer. For help creating the required Certificate Signing Request (CSR) for creating printer, see the CSR generation code sample. This API is supported in the following national cloud deployments. * @param CreatePostRequestBody $body The request body * @param CreateRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(CreatePostRequestBody $body, ?CreateRequestBuilderPostReque } /** - * Create (register) a printer with the Universal Print service. This is a long-running operation and as such, it returns a printerCreateOperation that can be used to track and verify the registration of the printer. For help creating the required Certificate Signing Request (CSR) for creating printer, see the CSR generation code sample. + * Create (register) a printer with the Universal Print service. This is a long-running operation and as such, it returns a printerCreateOperation that can be used to track and verify the registration of the printer. For help creating the required Certificate Signing Request (CSR) for creating printer, see the CSR generation code sample. This API is supported in the following national cloud deployments. * @param CreatePostRequestBody $body The request body * @param CreateRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/EscapedPrint/Printers/Item/Connectors/ConnectorsRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/Connectors/ConnectorsRequestBuilder.php index 8de70cd4fc8..ddc577c2542 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Connectors/ConnectorsRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Connectors/ConnectorsRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of printConnectors associated with the printer. + * Retrieve a list of printConnectors associated with the printer. This API is supported in the following national cloud deployments. * @param ConnectorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printer-list-connectors?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?ConnectorsRequestBuilderGetRequestConfiguration $requestCon } /** - * Retrieve a list of printConnectors associated with the printer. + * Retrieve a list of printConnectors associated with the printer. This API is supported in the following national cloud deployments. * @param ConnectorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/EscapedPrint/Printers/Item/Connectors/ConnectorsRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/Printers/Item/Connectors/ConnectorsRequestBuilderGetQueryParameters.php index fa88f1d5732..976240d8e85 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Connectors/ConnectorsRequestBuilderGetQueryParameters.php +++ b/src/Generated/EscapedPrint/Printers/Item/Connectors/ConnectorsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of printConnectors associated with the printer. + * Retrieve a list of printConnectors associated with the printer. This API is supported in the following national cloud deployments. */ class ConnectorsRequestBuilderGetQueryParameters { diff --git a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Abort/AbortRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Abort/AbortRequestBuilder.php index 4a4658d51b1..e228ee81362 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Abort/AbortRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Abort/AbortRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Abort a print job. Only applications using application permissions can abort a print job. Aborting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to register a task trigger, see Extending Universal Print to support pull printing. + * Abort a print job. Only applications using application permissions can abort a print job. Aborting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to register a task trigger, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param AbortPostRequestBody $body The request body * @param AbortRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(AbortPostRequestBody $body, ?AbortRequestBuilderPostRequest } /** - * Abort a print job. Only applications using application permissions can abort a print job. Aborting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to register a task trigger, see Extending Universal Print to support pull printing. + * Abort a print job. Only applications using application permissions can abort a print job. Aborting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to register a task trigger, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param AbortPostRequestBody $body The request body * @param AbortRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Cancel/CancelRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Cancel/CancelRequestBuilder.php index f0b8b1e240b..068261eda55 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Cancel/CancelRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Cancel a print job. Print jobs can be canceled only on behalf of a user, using delegated permissions. + * Cancel a print job. Print jobs can be canceled only on behalf of a user, using delegated permissions. This API is supported in the following national cloud deployments. * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printjob-cancel?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?CancelRequestBuilderPostRequestConfiguration $requestConfi } /** - * Cancel a print job. Print jobs can be canceled only on behalf of a user, using delegated permissions. + * Cancel a print job. Print jobs can be canceled only on behalf of a user, using delegated permissions. This API is supported in the following national cloud deployments. * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.php index df0b09cc5b2..21f4aefffe0 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create an upload session that allows an app to iteratively upload ranges of a binary file linked to the print document. As part of the response, this action returns an upload URL that can be used in subsequent sequential PUT queries. Request headers for each PUT operation can be used to specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. + * Create an upload session that allows an app to iteratively upload ranges of a binary file linked to the print document. As part of the response, this action returns an upload URL that can be used in subsequent sequential PUT queries. Request headers for each PUT operation can be used to specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CreateUploadSessionPostRequestBody $body, ?CreateUploadSess } /** - * Create an upload session that allows an app to iteratively upload ranges of a binary file linked to the print document. As part of the response, this action returns an upload URL that can be used in subsequent sequential PUT queries. Request headers for each PUT operation can be used to specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. + * Create an upload session that allows an app to iteratively upload ranges of a binary file linked to the print document. As part of the response, this action returns an upload URL that can be used in subsequent sequential PUT queries. Request headers for each PUT operation can be used to specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Redirect/RedirectRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Redirect/RedirectRequestBuilder.php index d15c685d838..3fc9107156b 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Redirect/RedirectRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Redirect/RedirectRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Redirect a print job to a different printer. Redirecting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Redirect a print job to a different printer. Redirecting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param RedirectPostRequestBody $body The request body * @param RedirectRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(RedirectPostRequestBody $body, ?RedirectRequestBuilderPostR } /** - * Redirect a print job to a different printer. Redirecting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Redirect a print job to a different printer. Redirecting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param RedirectPostRequestBody $body The request body * @param RedirectRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Start/StartRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Start/StartRequestBuilder.php index 50b8f971102..ff0faea4051 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Start/StartRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Start/StartRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Submits the print job to the associated printer or printerShare. It will be printed after any existing pending jobs are completed, aborted, or canceled. + * Submits the print job to the associated printer or printerShare. It will be printed after any existing pending jobs are completed, aborted, or canceled. This API is supported in the following national cloud deployments. * @param StartRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printjob-start?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?StartRequestBuilderPostRequestConfiguration $requestConfig } /** - * Submits the print job to the associated printer or printerShare. It will be printed after any existing pending jobs are completed, aborted, or canceled. + * Submits the print job to the associated printer or printerShare. It will be printed after any existing pending jobs are completed, aborted, or canceled. This API is supported in the following national cloud deployments. * @param StartRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/EscapedPrint/Printers/Item/PrinterItemRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/PrinterItemRequestBuilder.php index 4f5c7627c11..b12613abc14 100644 --- a/src/Generated/EscapedPrint/Printers/Item/PrinterItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/PrinterItemRequestBuilder.php @@ -72,7 +72,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete (unregister) a printer. + * Delete (unregister) a printer. This API is supported in the following national cloud deployments. * @param PrinterItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printer-delete?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function delete(?PrinterItemRequestBuilderDeleteRequestConfiguration $req } /** - * Retrieve the properties and relationships of a printer object. + * Retrieve the properties and relationships of a printer object. This API is supported in the following national cloud deployments. * @param PrinterItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printer-get?view=graph-rest-1.0 Find more info here @@ -110,7 +110,7 @@ public function get(?PrinterItemRequestBuilderGetRequestConfiguration $requestCo } /** - * Update the properties of a printer object. + * Update the properties of a printer object. This API is supported in the following national cloud deployments. * @param Printer $body The request body * @param PrinterItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -130,7 +130,7 @@ public function patch(Printer $body, ?PrinterItemRequestBuilderPatchRequestConfi } /** - * Delete (unregister) a printer. + * Delete (unregister) a printer. This API is supported in the following national cloud deployments. * @param PrinterItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -147,7 +147,7 @@ public function toDeleteRequestInformation(?PrinterItemRequestBuilderDeleteReque } /** - * Retrieve the properties and relationships of a printer object. + * Retrieve the properties and relationships of a printer object. This API is supported in the following national cloud deployments. * @param PrinterItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -168,7 +168,7 @@ public function toGetRequestInformation(?PrinterItemRequestBuilderGetRequestConf } /** - * Update the properties of a printer object. + * Update the properties of a printer object. This API is supported in the following national cloud deployments. * @param Printer $body The request body * @param PrinterItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/EscapedPrint/Printers/Item/PrinterItemRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/Printers/Item/PrinterItemRequestBuilderGetQueryParameters.php index 41c0a63216d..68c12c1bcf9 100644 --- a/src/Generated/EscapedPrint/Printers/Item/PrinterItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/EscapedPrint/Printers/Item/PrinterItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a printer object. + * Retrieve the properties and relationships of a printer object. This API is supported in the following national cloud deployments. */ class PrinterItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/EscapedPrint/Printers/Item/RestoreFactoryDefaults/RestoreFactoryDefaultsRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/RestoreFactoryDefaults/RestoreFactoryDefaultsRequestBuilder.php index 4a6c7187b55..1abc2561042 100644 --- a/src/Generated/EscapedPrint/Printers/Item/RestoreFactoryDefaults/RestoreFactoryDefaultsRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/RestoreFactoryDefaults/RestoreFactoryDefaultsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a printer's default settings to the values specified by the manufacturer. + * Restore a printer's default settings to the values specified by the manufacturer. This API is supported in the following national cloud deployments. * @param RestoreFactoryDefaultsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printer-restorefactorydefaults?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?RestoreFactoryDefaultsRequestBuilderPostRequestConfigurati } /** - * Restore a printer's default settings to the values specified by the manufacturer. + * Restore a printer's default settings to the values specified by the manufacturer. This API is supported in the following national cloud deployments. * @param RestoreFactoryDefaultsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/EscapedPrint/Printers/Item/Shares/SharesRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/Shares/SharesRequestBuilder.php index a1eb8de0965..2ebd2b74fe4 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Shares/SharesRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Shares/SharesRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of printer shares associated with the printer. + * Retrieve a list of printer shares associated with the printer. This API is supported in the following national cloud deployments. * @param SharesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printer-list-shares?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?SharesRequestBuilderGetRequestConfiguration $requestConfigu } /** - * Retrieve a list of printer shares associated with the printer. + * Retrieve a list of printer shares associated with the printer. This API is supported in the following national cloud deployments. * @param SharesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/EscapedPrint/Printers/Item/Shares/SharesRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/Printers/Item/Shares/SharesRequestBuilderGetQueryParameters.php index 2f7b3e346ca..41b818774f1 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Shares/SharesRequestBuilderGetQueryParameters.php +++ b/src/Generated/EscapedPrint/Printers/Item/Shares/SharesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of printer shares associated with the printer. + * Retrieve a list of printer shares associated with the printer. This API is supported in the following national cloud deployments. */ class SharesRequestBuilderGetQueryParameters { diff --git a/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/Item/Definition/DefinitionRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/Item/Definition/DefinitionRequestBuilder.php index 103a071d803..9d331b6b248 100644 --- a/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/Item/Definition/DefinitionRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/Item/Definition/DefinitionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * An abstract definition that will be used to create a printTask when triggered by a print event. Read-only. + * An abstract definition that is used to create a printTask when triggered by a print event. Read-only. * @param DefinitionRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -50,7 +50,7 @@ public function get(?DefinitionRequestBuilderGetRequestConfiguration $requestCon } /** - * An abstract definition that will be used to create a printTask when triggered by a print event. Read-only. + * An abstract definition that is used to create a printTask when triggered by a print event. Read-only. * @param DefinitionRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/Item/Definition/DefinitionRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/Item/Definition/DefinitionRequestBuilderGetQueryParameters.php index 3d22311e542..e3eb523178b 100644 --- a/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/Item/Definition/DefinitionRequestBuilderGetQueryParameters.php +++ b/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/Item/Definition/DefinitionRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * An abstract definition that will be used to create a printTask when triggered by a print event. Read-only. + * An abstract definition that is used to create a printTask when triggered by a print event. Read-only. */ class DefinitionRequestBuilderGetQueryParameters { diff --git a/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/Item/PrintTaskTriggerItemRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/Item/PrintTaskTriggerItemRequestBuilder.php index 7e3e84927c3..a94ba64b37b 100644 --- a/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/Item/PrintTaskTriggerItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/Item/PrintTaskTriggerItemRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete the task trigger of a printer to prevent related print events from triggering tasks on the specified printer. + * Delete the task trigger of a printer to prevent related print events from triggering tasks on the specified printer. This API is supported in the following national cloud deployments. * @param PrintTaskTriggerItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printer-delete-tasktrigger?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function delete(?PrintTaskTriggerItemRequestBuilderDeleteRequestConfigura } /** - * Get a task trigger from a printer. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Get a task trigger from a printer. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param PrintTaskTriggerItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printtasktrigger-get?view=graph-rest-1.0 Find more info here @@ -97,7 +97,7 @@ public function patch(PrintTaskTrigger $body, ?PrintTaskTriggerItemRequestBuilde } /** - * Delete the task trigger of a printer to prevent related print events from triggering tasks on the specified printer. + * Delete the task trigger of a printer to prevent related print events from triggering tasks on the specified printer. This API is supported in the following national cloud deployments. * @param PrintTaskTriggerItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -114,7 +114,7 @@ public function toDeleteRequestInformation(?PrintTaskTriggerItemRequestBuilderDe } /** - * Get a task trigger from a printer. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Get a task trigger from a printer. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param PrintTaskTriggerItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/Item/PrintTaskTriggerItemRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/Item/PrintTaskTriggerItemRequestBuilderGetQueryParameters.php index f3239f8243f..70e3fab5a32 100644 --- a/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/Item/PrintTaskTriggerItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/Item/PrintTaskTriggerItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a task trigger from a printer. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Get a task trigger from a printer. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. */ class PrintTaskTriggerItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/TaskTriggersRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/TaskTriggersRequestBuilder.php index 7bf1fedf9e2..6f9452082e5 100644 --- a/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/TaskTriggersRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/TaskTriggersRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of task triggers associated with the printer. The list of task triggers defines which tasks will be triggered as a result of events that occur during printing. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Retrieve a list of task triggers associated with the printer. The list of task triggers defines which tasks will be triggered as a result of events that occur during printing. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param TaskTriggersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printer-list-tasktriggers?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?TaskTriggersRequestBuilderGetRequestConfiguration $requestC } /** - * Create a new task trigger on the specified printer. Currently, only one task trigger can be specified per printer, but this limit might be removed in the future. + * Create a new task trigger on the specified printer. Currently, only one task trigger can be specified per printer, but this limit might be removed in the future. This API is supported in the following national cloud deployments. * @param PrintTaskTrigger $body The request body * @param TaskTriggersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(PrintTaskTrigger $body, ?TaskTriggersRequestBuilderPostRequ } /** - * Retrieve a list of task triggers associated with the printer. The list of task triggers defines which tasks will be triggered as a result of events that occur during printing. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Retrieve a list of task triggers associated with the printer. The list of task triggers defines which tasks will be triggered as a result of events that occur during printing. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param TaskTriggersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?TaskTriggersRequestBuilderGetRequestCon } /** - * Create a new task trigger on the specified printer. Currently, only one task trigger can be specified per printer, but this limit might be removed in the future. + * Create a new task trigger on the specified printer. Currently, only one task trigger can be specified per printer, but this limit might be removed in the future. This API is supported in the following national cloud deployments. * @param PrintTaskTrigger $body The request body * @param TaskTriggersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/TaskTriggersRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/TaskTriggersRequestBuilderGetQueryParameters.php index 37bf93b3b14..662cf05e21a 100644 --- a/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/TaskTriggersRequestBuilderGetQueryParameters.php +++ b/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/TaskTriggersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of task triggers associated with the printer. The list of task triggers defines which tasks will be triggered as a result of events that occur during printing. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Retrieve a list of task triggers associated with the printer. The list of task triggers defines which tasks will be triggered as a result of events that occur during printing. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. */ class TaskTriggersRequestBuilderGetQueryParameters { diff --git a/src/Generated/EscapedPrint/Printers/PrintersRequestBuilder.php b/src/Generated/EscapedPrint/Printers/PrintersRequestBuilder.php index f55b28e09fc..583e7533fd6 100644 --- a/src/Generated/EscapedPrint/Printers/PrintersRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/PrintersRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the list of printers that are registered in the tenant. + * Retrieve the list of printers that are registered in the tenant. This API is supported in the following national cloud deployments. * @param PrintersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/print-list-printers?view=graph-rest-1.0 Find more info here @@ -99,7 +99,7 @@ public function post(Printer $body, ?PrintersRequestBuilderPostRequestConfigurat } /** - * Retrieve the list of printers that are registered in the tenant. + * Retrieve the list of printers that are registered in the tenant. This API is supported in the following national cloud deployments. * @param PrintersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/EscapedPrint/Printers/PrintersRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/Printers/PrintersRequestBuilderGetQueryParameters.php index 45f0340ed3d..ab757d4e1ce 100644 --- a/src/Generated/EscapedPrint/Printers/PrintersRequestBuilderGetQueryParameters.php +++ b/src/Generated/EscapedPrint/Printers/PrintersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the list of printers that are registered in the tenant. + * Retrieve the list of printers that are registered in the tenant. This API is supported in the following national cloud deployments. */ class PrintersRequestBuilderGetQueryParameters { diff --git a/src/Generated/EscapedPrint/Services/Item/Endpoints/EndpointsRequestBuilder.php b/src/Generated/EscapedPrint/Services/Item/Endpoints/EndpointsRequestBuilder.php index 2c39bf3eae2..97e035b41e8 100644 --- a/src/Generated/EscapedPrint/Services/Item/Endpoints/EndpointsRequestBuilder.php +++ b/src/Generated/EscapedPrint/Services/Item/Endpoints/EndpointsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of endpoints exposed by a print service. + * Retrieve a list of endpoints exposed by a print service. This API is supported in the following national cloud deployments. * @param EndpointsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printservice-list-endpoints?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(PrintServiceEndpoint $body, ?EndpointsRequestBuilderPostReq } /** - * Retrieve a list of endpoints exposed by a print service. + * Retrieve a list of endpoints exposed by a print service. This API is supported in the following national cloud deployments. * @param EndpointsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/EscapedPrint/Services/Item/Endpoints/EndpointsRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/Services/Item/Endpoints/EndpointsRequestBuilderGetQueryParameters.php index 52663778e13..f914fcb7bf6 100644 --- a/src/Generated/EscapedPrint/Services/Item/Endpoints/EndpointsRequestBuilderGetQueryParameters.php +++ b/src/Generated/EscapedPrint/Services/Item/Endpoints/EndpointsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of endpoints exposed by a print service. + * Retrieve a list of endpoints exposed by a print service. This API is supported in the following national cloud deployments. */ class EndpointsRequestBuilderGetQueryParameters { diff --git a/src/Generated/EscapedPrint/Services/Item/Endpoints/Item/PrintServiceEndpointItemRequestBuilder.php b/src/Generated/EscapedPrint/Services/Item/Endpoints/Item/PrintServiceEndpointItemRequestBuilder.php index 7cde1afdb5d..ba67a04e7d6 100644 --- a/src/Generated/EscapedPrint/Services/Item/Endpoints/Item/PrintServiceEndpointItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/Services/Item/Endpoints/Item/PrintServiceEndpointItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?PrintServiceEndpointItemRequestBuilderDeleteRequestConfi } /** - * Retrieve the properties and relationships of a print service endpoint. + * Retrieve the properties and relationships of a print service endpoint. This API is supported in the following national cloud deployments. * @param PrintServiceEndpointItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printserviceendpoint-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?PrintServiceEndpointItemRequestBuild } /** - * Retrieve the properties and relationships of a print service endpoint. + * Retrieve the properties and relationships of a print service endpoint. This API is supported in the following national cloud deployments. * @param PrintServiceEndpointItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/EscapedPrint/Services/Item/Endpoints/Item/PrintServiceEndpointItemRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/Services/Item/Endpoints/Item/PrintServiceEndpointItemRequestBuilderGetQueryParameters.php index 742158877db..a601d1f95fd 100644 --- a/src/Generated/EscapedPrint/Services/Item/Endpoints/Item/PrintServiceEndpointItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/EscapedPrint/Services/Item/Endpoints/Item/PrintServiceEndpointItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a print service endpoint. + * Retrieve the properties and relationships of a print service endpoint. This API is supported in the following national cloud deployments. */ class PrintServiceEndpointItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/EscapedPrint/Services/Item/PrintServiceItemRequestBuilder.php b/src/Generated/EscapedPrint/Services/Item/PrintServiceItemRequestBuilder.php index af4b867e962..a9903d63ab4 100644 --- a/src/Generated/EscapedPrint/Services/Item/PrintServiceItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/Services/Item/PrintServiceItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?PrintServiceItemRequestBuilderDeleteRequestConfiguration } /** - * Retrieve the properties and relationships of a print service. + * Retrieve the properties and relationships of a print service. This API is supported in the following national cloud deployments. * @param PrintServiceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printservice-get?view=graph-rest-1.0 Find more info here @@ -113,7 +113,7 @@ public function toDeleteRequestInformation(?PrintServiceItemRequestBuilderDelete } /** - * Retrieve the properties and relationships of a print service. + * Retrieve the properties and relationships of a print service. This API is supported in the following national cloud deployments. * @param PrintServiceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/EscapedPrint/Services/Item/PrintServiceItemRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/Services/Item/PrintServiceItemRequestBuilderGetQueryParameters.php index 3b80273bea7..a6e57f8e4d8 100644 --- a/src/Generated/EscapedPrint/Services/Item/PrintServiceItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/EscapedPrint/Services/Item/PrintServiceItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a print service. + * Retrieve the properties and relationships of a print service. This API is supported in the following national cloud deployments. */ class PrintServiceItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/EscapedPrint/Services/ServicesRequestBuilder.php b/src/Generated/EscapedPrint/Services/ServicesRequestBuilder.php index 1a66ab6ef31..ae3be8105d9 100644 --- a/src/Generated/EscapedPrint/Services/ServicesRequestBuilder.php +++ b/src/Generated/EscapedPrint/Services/ServicesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of printService objects that represent the services available to your tenant. + * Retrieve a list of printService objects that represent the services available to your tenant. This API is supported in the following national cloud deployments. * @param ServicesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/print-list-services?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(PrintService $body, ?ServicesRequestBuilderPostRequestConfi } /** - * Retrieve a list of printService objects that represent the services available to your tenant. + * Retrieve a list of printService objects that represent the services available to your tenant. This API is supported in the following national cloud deployments. * @param ServicesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/EscapedPrint/Services/ServicesRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/Services/ServicesRequestBuilderGetQueryParameters.php index 1f542ba22d9..b42e6707c84 100644 --- a/src/Generated/EscapedPrint/Services/ServicesRequestBuilderGetQueryParameters.php +++ b/src/Generated/EscapedPrint/Services/ServicesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of printService objects that represent the services available to your tenant. + * Retrieve a list of printService objects that represent the services available to your tenant. This API is supported in the following national cloud deployments. */ class ServicesRequestBuilderGetQueryParameters { diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/AllowedGroupsRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/AllowedGroupsRequestBuilder.php index 9d597cc7853..3fe5a7a920e 100644 --- a/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/AllowedGroupsRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/AllowedGroupsRequestBuilder.php @@ -60,7 +60,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. + * Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. * @param AllowedGroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printershare-list-allowedgroups?view=graph-rest-1.0 Find more info here @@ -79,7 +79,7 @@ public function get(?AllowedGroupsRequestBuilderGetRequestConfiguration $request } /** - * Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. + * Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. * @param AllowedGroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/AllowedGroupsRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/AllowedGroupsRequestBuilderGetQueryParameters.php index cef0dcb7107..f227a3853a8 100644 --- a/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/AllowedGroupsRequestBuilderGetQueryParameters.php +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/AllowedGroupsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. + * Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. */ class AllowedGroupsRequestBuilderGetQueryParameters { diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/GroupItemRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/GroupItemRequestBuilder.php index 676ca891e42..df53d563f9f 100644 --- a/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/GroupItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/GroupItemRequestBuilder.php @@ -3,6 +3,7 @@ namespace Microsoft\Graph\Generated\EscapedPrint\Shares\Item\AllowedGroups\Item; use Microsoft\Graph\Generated\EscapedPrint\Shares\Item\AllowedGroups\Item\Ref\RefRequestBuilder; +use Microsoft\Graph\Generated\EscapedPrint\Shares\Item\AllowedGroups\Item\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; use Microsoft\Kiota\Abstractions\RequestAdapter; @@ -18,6 +19,13 @@ public function ref(): RefRequestBuilder { return new RefRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new GroupItemRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/Ref/RefRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/Ref/RefRequestBuilder.php index 9235825747e..29401a37b78 100644 --- a/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/Ref/RefRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Revoke the specified group's access to submit print jobs to the associated printerShare. + * Revoke the specified group's access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printershare-delete-allowedgroup?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function delete(?RefRequestBuilderDeleteRequestConfiguration $requestConf } /** - * Revoke the specified group's access to submit print jobs to the associated printerShare. + * Revoke the specified group's access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/Ref/RefRequestBuilderDeleteQueryParameters.php b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/Ref/RefRequestBuilderDeleteQueryParameters.php index 320b00ebca3..5d5ab0af6ce 100644 --- a/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/Ref/RefRequestBuilderDeleteQueryParameters.php +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/Ref/RefRequestBuilderDeleteQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Revoke the specified group's access to submit print jobs to the associated printerShare. + * Revoke the specified group's access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. */ class RefRequestBuilderDeleteQueryParameters { diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..c6dfba886a6 --- /dev/null +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/print/shares/{printerShare%2Did}/allowedGroups/{group%2Did}/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/EscapedPrint/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..08e9454bba0 --- /dev/null +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..efa9923814d --- /dev/null +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/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/EscapedPrint/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..c3f9674e1a1 --- /dev/null +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/print/shares/{printerShare%2Did}/allowedGroups/{group%2Did}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..6c068331c02 --- /dev/null +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/EscapedPrint/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..6906869f86c --- /dev/null +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Ref/RefRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Ref/RefRequestBuilder.php index eff2fec6d18..b4d3ae76270 100644 --- a/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Ref/RefRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Ref/RefRequestBuilder.php @@ -33,7 +33,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. + * Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printershare-list-allowedgroups?view=graph-rest-1.0 Find more info here @@ -52,7 +52,7 @@ public function get(?RefRequestBuilderGetRequestConfiguration $requestConfigurat } /** - * Grant the specified group access to submit print jobs to the associated printerShare. + * Grant the specified group access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -72,7 +72,7 @@ public function post(ReferenceCreate $body, ?RefRequestBuilderPostRequestConfigu } /** - * Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. + * Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -93,7 +93,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } /** - * Grant the specified group access to submit print jobs to the associated printerShare. + * Grant the specified group access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Ref/RefRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Ref/RefRequestBuilderGetQueryParameters.php index a45b20855b5..4e56abda613 100644 --- a/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Ref/RefRequestBuilderGetQueryParameters.php +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Ref/RefRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. + * Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. */ class RefRequestBuilderGetQueryParameters { diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/AllowedUsersRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/AllowedUsersRequestBuilder.php index ec4fa684cdc..a0368e676a4 100644 --- a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/AllowedUsersRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/AllowedUsersRequestBuilder.php @@ -60,7 +60,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. + * Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. * @param AllowedUsersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printershare-list-allowedusers?view=graph-rest-1.0 Find more info here @@ -79,7 +79,7 @@ public function get(?AllowedUsersRequestBuilderGetRequestConfiguration $requestC } /** - * Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. + * Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. * @param AllowedUsersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/AllowedUsersRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/AllowedUsersRequestBuilderGetQueryParameters.php index ca3e1705110..b90e5fdfdce 100644 --- a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/AllowedUsersRequestBuilderGetQueryParameters.php +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/AllowedUsersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. + * Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. */ class AllowedUsersRequestBuilderGetQueryParameters { diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/Ref/RefRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/Ref/RefRequestBuilder.php index a73c3dbe089..08bdb9e9d92 100644 --- a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/Ref/RefRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Revoke the specified user's access to submit print jobs to the associated printerShare. + * Revoke the specified user's access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printershare-delete-alloweduser?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function delete(?RefRequestBuilderDeleteRequestConfiguration $requestConf } /** - * Revoke the specified user's access to submit print jobs to the associated printerShare. + * Revoke the specified user's access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/Ref/RefRequestBuilderDeleteQueryParameters.php b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/Ref/RefRequestBuilderDeleteQueryParameters.php index f75cfbc9dff..58005afc6f2 100644 --- a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/Ref/RefRequestBuilderDeleteQueryParameters.php +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/Ref/RefRequestBuilderDeleteQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Revoke the specified user's access to submit print jobs to the associated printerShare. + * Revoke the specified user's access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. */ class RefRequestBuilderDeleteQueryParameters { diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..b2cce59dcc0 --- /dev/null +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/print/shares/{printerShare%2Did}/allowedUsers/{user%2Did}/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/EscapedPrint/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..bd2f58f9883 --- /dev/null +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..c38f532982c --- /dev/null +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/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/EscapedPrint/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..2a9b4d15f03 --- /dev/null +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/print/shares/{printerShare%2Did}/allowedUsers/{user%2Did}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..4f7b87ef699 --- /dev/null +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/EscapedPrint/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..38f3713407b --- /dev/null +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/UserItemRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/UserItemRequestBuilder.php index 267270f8e53..cb83806b0da 100644 --- a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/UserItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/UserItemRequestBuilder.php @@ -4,6 +4,7 @@ use Microsoft\Graph\Generated\EscapedPrint\Shares\Item\AllowedUsers\Item\MailboxSettings\MailboxSettingsRequestBuilder; use Microsoft\Graph\Generated\EscapedPrint\Shares\Item\AllowedUsers\Item\Ref\RefRequestBuilder; +use Microsoft\Graph\Generated\EscapedPrint\Shares\Item\AllowedUsers\Item\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; use Microsoft\Kiota\Abstractions\RequestAdapter; @@ -26,6 +27,13 @@ public function ref(): RefRequestBuilder { return new RefRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new UserItemRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Ref/RefRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Ref/RefRequestBuilder.php index 612dd9cecac..c940b2fd913 100644 --- a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Ref/RefRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Ref/RefRequestBuilder.php @@ -33,7 +33,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. + * Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printershare-list-allowedusers?view=graph-rest-1.0 Find more info here @@ -52,7 +52,7 @@ public function get(?RefRequestBuilderGetRequestConfiguration $requestConfigurat } /** - * Grant the specified user access to submit print jobs to the associated printerShare. + * Grant the specified user access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -72,7 +72,7 @@ public function post(ReferenceCreate $body, ?RefRequestBuilderPostRequestConfigu } /** - * Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. + * Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -93,7 +93,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } /** - * Grant the specified user access to submit print jobs to the associated printerShare. + * Grant the specified user access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Ref/RefRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Ref/RefRequestBuilderGetQueryParameters.php index b9811ad62ba..9160ad84325 100644 --- a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Ref/RefRequestBuilderGetQueryParameters.php +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Ref/RefRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. + * Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. */ class RefRequestBuilderGetQueryParameters { diff --git a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Abort/AbortRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Abort/AbortRequestBuilder.php index 69ce4da207a..8464a1f006c 100644 --- a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Abort/AbortRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Abort/AbortRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Abort a print job. Only applications using application permissions can abort a print job. Aborting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to register a task trigger, see Extending Universal Print to support pull printing. + * Abort a print job. Only applications using application permissions can abort a print job. Aborting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to register a task trigger, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param AbortPostRequestBody $body The request body * @param AbortRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(AbortPostRequestBody $body, ?AbortRequestBuilderPostRequest } /** - * Abort a print job. Only applications using application permissions can abort a print job. Aborting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to register a task trigger, see Extending Universal Print to support pull printing. + * Abort a print job. Only applications using application permissions can abort a print job. Aborting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to register a task trigger, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param AbortPostRequestBody $body The request body * @param AbortRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Cancel/CancelRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Cancel/CancelRequestBuilder.php index 12f52bb7d05..253e7b9a52f 100644 --- a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Cancel/CancelRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Cancel a print job. Print jobs can be canceled only on behalf of a user, using delegated permissions. + * Cancel a print job. Print jobs can be canceled only on behalf of a user, using delegated permissions. This API is supported in the following national cloud deployments. * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printjob-cancel?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?CancelRequestBuilderPostRequestConfiguration $requestConfi } /** - * Cancel a print job. Print jobs can be canceled only on behalf of a user, using delegated permissions. + * Cancel a print job. Print jobs can be canceled only on behalf of a user, using delegated permissions. This API is supported in the following national cloud deployments. * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.php index aca894c95ea..e10cd75e62b 100644 --- a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create an upload session that allows an app to iteratively upload ranges of a binary file linked to the print document. As part of the response, this action returns an upload URL that can be used in subsequent sequential PUT queries. Request headers for each PUT operation can be used to specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. + * Create an upload session that allows an app to iteratively upload ranges of a binary file linked to the print document. As part of the response, this action returns an upload URL that can be used in subsequent sequential PUT queries. Request headers for each PUT operation can be used to specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CreateUploadSessionPostRequestBody $body, ?CreateUploadSess } /** - * Create an upload session that allows an app to iteratively upload ranges of a binary file linked to the print document. As part of the response, this action returns an upload URL that can be used in subsequent sequential PUT queries. Request headers for each PUT operation can be used to specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. + * Create an upload session that allows an app to iteratively upload ranges of a binary file linked to the print document. As part of the response, this action returns an upload URL that can be used in subsequent sequential PUT queries. Request headers for each PUT operation can be used to specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Redirect/RedirectRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Redirect/RedirectRequestBuilder.php index 65db2890f88..e22a9c42f0b 100644 --- a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Redirect/RedirectRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Redirect/RedirectRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Redirect a print job to a different printer. Redirecting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Redirect a print job to a different printer. Redirecting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param RedirectPostRequestBody $body The request body * @param RedirectRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(RedirectPostRequestBody $body, ?RedirectRequestBuilderPostR } /** - * Redirect a print job to a different printer. Redirecting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Redirect a print job to a different printer. Redirecting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param RedirectPostRequestBody $body The request body * @param RedirectRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Start/StartRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Start/StartRequestBuilder.php index 98b1b5893b1..bf3f898c0a4 100644 --- a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Start/StartRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Start/StartRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Submits the print job to the associated printer or printerShare. It will be printed after any existing pending jobs are completed, aborted, or canceled. + * Submits the print job to the associated printer or printerShare. It will be printed after any existing pending jobs are completed, aborted, or canceled. This API is supported in the following national cloud deployments. * @param StartRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printjob-start?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?StartRequestBuilderPostRequestConfiguration $requestConfig } /** - * Submits the print job to the associated printer or printerShare. It will be printed after any existing pending jobs are completed, aborted, or canceled. + * Submits the print job to the associated printer or printerShare. It will be printed after any existing pending jobs are completed, aborted, or canceled. This API is supported in the following national cloud deployments. * @param StartRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/EscapedPrint/Shares/Item/PrinterShareItemRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/PrinterShareItemRequestBuilder.php index 5ba261f0e52..402c1debc31 100644 --- a/src/Generated/EscapedPrint/Shares/Item/PrinterShareItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/PrinterShareItemRequestBuilder.php @@ -64,7 +64,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a printer share (unshare the associated printer). This action can't be undone. If the printer is shared again in the future, any Windows users who had previously installed the printer needs to discover and reinstall it. + * Delete a printer share (unshare the associated printer). This action can't be undone. If the printer is shared again in the future, any Windows users who had previously installed the printer needs to discover and reinstall it. This API is supported in the following national cloud deployments. * @param PrinterShareItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printershare-delete?view=graph-rest-1.0 Find more info here @@ -83,7 +83,7 @@ public function delete(?PrinterShareItemRequestBuilderDeleteRequestConfiguration } /** - * Retrieve the properties and relationships of a printer share. + * Retrieve the properties and relationships of a printer share. This API is supported in the following national cloud deployments. * @param PrinterShareItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printershare-get?view=graph-rest-1.0 Find more info here @@ -102,7 +102,7 @@ public function get(?PrinterShareItemRequestBuilderGetRequestConfiguration $requ } /** - * Update the properties of a printer share. This method can be used to swap printers. For example, if a physical printer device breaks, an administrator can register a new printer device and update this printerShare to point to the new printer without requiring users to take any action. + * Update the properties of a printer share. This method can be used to swap printers. For example, if a physical printer device breaks, an administrator can register a new printer device and update this printerShare to point to the new printer without requiring users to take any action. This API is supported in the following national cloud deployments. * @param PrinterShare $body The request body * @param PrinterShareItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -122,7 +122,7 @@ public function patch(PrinterShare $body, ?PrinterShareItemRequestBuilderPatchRe } /** - * Delete a printer share (unshare the associated printer). This action can't be undone. If the printer is shared again in the future, any Windows users who had previously installed the printer needs to discover and reinstall it. + * Delete a printer share (unshare the associated printer). This action can't be undone. If the printer is shared again in the future, any Windows users who had previously installed the printer needs to discover and reinstall it. This API is supported in the following national cloud deployments. * @param PrinterShareItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -139,7 +139,7 @@ public function toDeleteRequestInformation(?PrinterShareItemRequestBuilderDelete } /** - * Retrieve the properties and relationships of a printer share. + * Retrieve the properties and relationships of a printer share. This API is supported in the following national cloud deployments. * @param PrinterShareItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -160,7 +160,7 @@ public function toGetRequestInformation(?PrinterShareItemRequestBuilderGetReques } /** - * Update the properties of a printer share. This method can be used to swap printers. For example, if a physical printer device breaks, an administrator can register a new printer device and update this printerShare to point to the new printer without requiring users to take any action. + * Update the properties of a printer share. This method can be used to swap printers. For example, if a physical printer device breaks, an administrator can register a new printer device and update this printerShare to point to the new printer without requiring users to take any action. This API is supported in the following national cloud deployments. * @param PrinterShare $body The request body * @param PrinterShareItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/EscapedPrint/Shares/Item/PrinterShareItemRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/Shares/Item/PrinterShareItemRequestBuilderGetQueryParameters.php index 541b8fd0028..a9bb970895a 100644 --- a/src/Generated/EscapedPrint/Shares/Item/PrinterShareItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/EscapedPrint/Shares/Item/PrinterShareItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a printer share. + * Retrieve the properties and relationships of a printer share. This API is supported in the following national cloud deployments. */ class PrinterShareItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/EscapedPrint/Shares/SharesRequestBuilder.php b/src/Generated/EscapedPrint/Shares/SharesRequestBuilder.php index 7b0496beb4c..fbe289caee6 100644 --- a/src/Generated/EscapedPrint/Shares/SharesRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/SharesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of printerShares. + * Retrieve a list of printerShares. This API is supported in the following national cloud deployments. * @param SharesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/print-list-shares?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?SharesRequestBuilderGetRequestConfiguration $requestConfigu } /** - * Create a new printerShare for the specified printer. + * Create a new printerShare for the specified printer. This API is supported in the following national cloud deployments. * @param PrinterShare $body The request body * @param SharesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(PrinterShare $body, ?SharesRequestBuilderPostRequestConfigu } /** - * Retrieve a list of printerShares. + * Retrieve a list of printerShares. This API is supported in the following national cloud deployments. * @param SharesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?SharesRequestBuilderGetRequestConfigura } /** - * Create a new printerShare for the specified printer. + * Create a new printerShare for the specified printer. This API is supported in the following national cloud deployments. * @param PrinterShare $body The request body * @param SharesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/EscapedPrint/Shares/SharesRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/Shares/SharesRequestBuilderGetQueryParameters.php index 6dd1c83a7a8..0093b6e5580 100644 --- a/src/Generated/EscapedPrint/Shares/SharesRequestBuilderGetQueryParameters.php +++ b/src/Generated/EscapedPrint/Shares/SharesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of printerShares. + * Retrieve a list of printerShares. This API is supported in the following national cloud deployments. */ class SharesRequestBuilderGetQueryParameters { diff --git a/src/Generated/EscapedPrint/TaskDefinitions/Item/PrintTaskDefinitionItemRequestBuilder.php b/src/Generated/EscapedPrint/TaskDefinitions/Item/PrintTaskDefinitionItemRequestBuilder.php index 0117e51ed15..484875e0681 100644 --- a/src/Generated/EscapedPrint/TaskDefinitions/Item/PrintTaskDefinitionItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/TaskDefinitions/Item/PrintTaskDefinitionItemRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a taskDefinition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Delete a taskDefinition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param PrintTaskDefinitionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/print-delete-taskdefinition?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function delete(?PrintTaskDefinitionItemRequestBuilderDeleteRequestConfig } /** - * Get details about a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Get details about a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param PrintTaskDefinitionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printtaskdefinition-get?view=graph-rest-1.0 Find more info here @@ -78,7 +78,7 @@ public function get(?PrintTaskDefinitionItemRequestBuilderGetRequestConfiguratio } /** - * Update a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Update a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param PrintTaskDefinition $body The request body * @param PrintTaskDefinitionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -98,7 +98,7 @@ public function patch(PrintTaskDefinition $body, ?PrintTaskDefinitionItemRequest } /** - * Delete a taskDefinition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Delete a taskDefinition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param PrintTaskDefinitionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -115,7 +115,7 @@ public function toDeleteRequestInformation(?PrintTaskDefinitionItemRequestBuilde } /** - * Get details about a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Get details about a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param PrintTaskDefinitionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -136,7 +136,7 @@ public function toGetRequestInformation(?PrintTaskDefinitionItemRequestBuilderGe } /** - * Update a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Update a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param PrintTaskDefinition $body The request body * @param PrintTaskDefinitionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/EscapedPrint/TaskDefinitions/Item/PrintTaskDefinitionItemRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/TaskDefinitions/Item/PrintTaskDefinitionItemRequestBuilderGetQueryParameters.php index 684d376143b..8cfd77dc588 100644 --- a/src/Generated/EscapedPrint/TaskDefinitions/Item/PrintTaskDefinitionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/EscapedPrint/TaskDefinitions/Item/PrintTaskDefinitionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get details about a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Get details about a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. */ class PrintTaskDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/Item/PrintTaskItemRequestBuilder.php b/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/Item/PrintTaskItemRequestBuilder.php index 36bea9ce8a5..e0e0424f74e 100644 --- a/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/Item/PrintTaskItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/Item/PrintTaskItemRequestBuilder.php @@ -66,7 +66,7 @@ public function delete(?PrintTaskItemRequestBuilderDeleteRequestConfiguration $r } /** - * Get details about a print task. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Get details about a print task. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param PrintTaskItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printtask-get?view=graph-rest-1.0 Find more info here @@ -85,7 +85,7 @@ public function get(?PrintTaskItemRequestBuilderGetRequestConfiguration $request } /** - * Update a print task. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Update a print task. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param PrintTask $body The request body * @param PrintTaskItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -122,7 +122,7 @@ public function toDeleteRequestInformation(?PrintTaskItemRequestBuilderDeleteReq } /** - * Get details about a print task. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Get details about a print task. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param PrintTaskItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -143,7 +143,7 @@ public function toGetRequestInformation(?PrintTaskItemRequestBuilderGetRequestCo } /** - * Update a print task. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Update a print task. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param PrintTask $body The request body * @param PrintTaskItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/Item/PrintTaskItemRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/Item/PrintTaskItemRequestBuilderGetQueryParameters.php index c55a965fdcc..bd42999f4ae 100644 --- a/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/Item/PrintTaskItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/Item/PrintTaskItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get details about a print task. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Get details about a print task. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. */ class PrintTaskItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/TasksRequestBuilder.php b/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/TasksRequestBuilder.php index 5d0700a9f5d..b650e56f831 100644 --- a/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/TasksRequestBuilder.php +++ b/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/TasksRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of tasks associated with a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Retrieve a list of tasks associated with a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param TasksRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/printtaskdefinition-list-tasks?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(PrintTask $body, ?TasksRequestBuilderPostRequestConfigurati } /** - * Retrieve a list of tasks associated with a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Retrieve a list of tasks associated with a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param TasksRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/TasksRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/TasksRequestBuilderGetQueryParameters.php index af13eae4b54..b77f76e8404 100644 --- a/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/TasksRequestBuilderGetQueryParameters.php +++ b/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/TasksRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of tasks associated with a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Retrieve a list of tasks associated with a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. */ class TasksRequestBuilderGetQueryParameters { diff --git a/src/Generated/EscapedPrint/TaskDefinitions/TaskDefinitionsRequestBuilder.php b/src/Generated/EscapedPrint/TaskDefinitions/TaskDefinitionsRequestBuilder.php index b6fb228d737..b6a6b68de03 100644 --- a/src/Generated/EscapedPrint/TaskDefinitions/TaskDefinitionsRequestBuilder.php +++ b/src/Generated/EscapedPrint/TaskDefinitions/TaskDefinitionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of task definitions that the requesting app defined in the tenant. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Retrieve a list of task definitions that the requesting app defined in the tenant. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param TaskDefinitionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/print-list-taskdefinitions?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?TaskDefinitionsRequestBuilderGetRequestConfiguration $reque } /** - * Create a new task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Create a new task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param PrintTaskDefinition $body The request body * @param TaskDefinitionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(PrintTaskDefinition $body, ?TaskDefinitionsRequestBuilderPo } /** - * Retrieve a list of task definitions that the requesting app defined in the tenant. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Retrieve a list of task definitions that the requesting app defined in the tenant. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param TaskDefinitionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?TaskDefinitionsRequestBuilderGetRequest } /** - * Create a new task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Create a new task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. * @param PrintTaskDefinition $body The request body * @param TaskDefinitionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/EscapedPrint/TaskDefinitions/TaskDefinitionsRequestBuilderGetQueryParameters.php b/src/Generated/EscapedPrint/TaskDefinitions/TaskDefinitionsRequestBuilderGetQueryParameters.php index dba990aa27f..c7fdc05329f 100644 --- a/src/Generated/EscapedPrint/TaskDefinitions/TaskDefinitionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/EscapedPrint/TaskDefinitions/TaskDefinitionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of task definitions that the requesting app defined in the tenant. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + * Retrieve a list of task definitions that the requesting app defined in the tenant. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. */ class TaskDefinitionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/External/Connections/ConnectionsRequestBuilder.php b/src/Generated/External/Connections/ConnectionsRequestBuilder.php index 25b1f943eea..88a95f6b967 100644 --- a/src/Generated/External/Connections/ConnectionsRequestBuilder.php +++ b/src/Generated/External/Connections/ConnectionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the externalConnection objects and their properties. + * Get a list of the externalConnection objects and their properties. This API is supported in the following national cloud deployments. * @param ConnectionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/externalconnectors-externalconnection-list?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ConnectionsRequestBuilderGetRequestConfiguration $requestCo } /** - * Create a new externalConnection object. + * Create a new externalConnection object. This API is supported in the following national cloud deployments. * @param ExternalConnection $body The request body * @param ConnectionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(ExternalConnection $body, ?ConnectionsRequestBuilderPostReq } /** - * Get a list of the externalConnection objects and their properties. + * Get a list of the externalConnection objects and their properties. This API is supported in the following national cloud deployments. * @param ConnectionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ConnectionsRequestBuilderGetRequestConf } /** - * Create a new externalConnection object. + * Create a new externalConnection object. This API is supported in the following national cloud deployments. * @param ExternalConnection $body The request body * @param ConnectionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/External/Connections/ConnectionsRequestBuilderGetQueryParameters.php b/src/Generated/External/Connections/ConnectionsRequestBuilderGetQueryParameters.php index 6b6c7759616..97310a6ee5e 100644 --- a/src/Generated/External/Connections/ConnectionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/External/Connections/ConnectionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the externalConnection objects and their properties. + * Get a list of the externalConnection objects and their properties. This API is supported in the following national cloud deployments. */ class ConnectionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/External/Connections/Item/ExternalConnectionItemRequestBuilder.php b/src/Generated/External/Connections/Item/ExternalConnectionItemRequestBuilder.php index 3d01862f6a5..51659998b9b 100644 --- a/src/Generated/External/Connections/Item/ExternalConnectionItemRequestBuilder.php +++ b/src/Generated/External/Connections/Item/ExternalConnectionItemRequestBuilder.php @@ -64,7 +64,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Deletes an externalConnection object. + * Deletes an externalConnection object. This API is supported in the following national cloud deployments. * @param ExternalConnectionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/externalconnectors-externalconnection-delete?view=graph-rest-1.0 Find more info here @@ -83,7 +83,7 @@ public function delete(?ExternalConnectionItemRequestBuilderDeleteRequestConfigu } /** - * Read the properties and relationships of an externalConnection object. + * Read the properties and relationships of an externalConnection object. This API is supported in the following national cloud deployments. * @param ExternalConnectionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/externalconnectors-externalconnection-get?view=graph-rest-1.0 Find more info here @@ -102,7 +102,7 @@ public function get(?ExternalConnectionItemRequestBuilderGetRequestConfiguration } /** - * Update the properties of an externalConnection object. + * Update the properties of an externalConnection object. This API is supported in the following national cloud deployments. * @param ExternalConnection $body The request body * @param ExternalConnectionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -122,7 +122,7 @@ public function patch(ExternalConnection $body, ?ExternalConnectionItemRequestBu } /** - * Deletes an externalConnection object. + * Deletes an externalConnection object. This API is supported in the following national cloud deployments. * @param ExternalConnectionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -139,7 +139,7 @@ public function toDeleteRequestInformation(?ExternalConnectionItemRequestBuilder } /** - * Read the properties and relationships of an externalConnection object. + * Read the properties and relationships of an externalConnection object. This API is supported in the following national cloud deployments. * @param ExternalConnectionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -160,7 +160,7 @@ public function toGetRequestInformation(?ExternalConnectionItemRequestBuilderGet } /** - * Update the properties of an externalConnection object. + * Update the properties of an externalConnection object. This API is supported in the following national cloud deployments. * @param ExternalConnection $body The request body * @param ExternalConnectionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/External/Connections/Item/ExternalConnectionItemRequestBuilderGetQueryParameters.php b/src/Generated/External/Connections/Item/ExternalConnectionItemRequestBuilderGetQueryParameters.php index 258f72bd374..13997afadbe 100644 --- a/src/Generated/External/Connections/Item/ExternalConnectionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/External/Connections/Item/ExternalConnectionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of an externalConnection object. + * Read the properties and relationships of an externalConnection object. This API is supported in the following national cloud deployments. */ class ExternalConnectionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/External/Connections/Item/Groups/GroupsRequestBuilder.php b/src/Generated/External/Connections/Item/Groups/GroupsRequestBuilder.php index 5e46a3e3b9d..9225c3b0a02 100644 --- a/src/Generated/External/Connections/Item/Groups/GroupsRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Groups/GroupsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get an externalGroup object. + * Get an externalGroup object. This API is supported in the following national cloud deployments. * @param GroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -71,7 +71,7 @@ public function get(?GroupsRequestBuilderGetRequestConfiguration $requestConfigu } /** - * Create a new externalGroup object. + * Create a new externalGroup object. This API is supported in the following national cloud deployments. * @param ExternalGroup $body The request body * @param GroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -91,7 +91,7 @@ public function post(ExternalGroup $body, ?GroupsRequestBuilderPostRequestConfig } /** - * Get an externalGroup object. + * Get an externalGroup object. This API is supported in the following national cloud deployments. * @param GroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -112,7 +112,7 @@ public function toGetRequestInformation(?GroupsRequestBuilderGetRequestConfigura } /** - * Create a new externalGroup object. + * Create a new externalGroup object. This API is supported in the following national cloud deployments. * @param ExternalGroup $body The request body * @param GroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/External/Connections/Item/Groups/GroupsRequestBuilderGetQueryParameters.php b/src/Generated/External/Connections/Item/Groups/GroupsRequestBuilderGetQueryParameters.php index 62b438c0d19..c7af4d2118e 100644 --- a/src/Generated/External/Connections/Item/Groups/GroupsRequestBuilderGetQueryParameters.php +++ b/src/Generated/External/Connections/Item/Groups/GroupsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an externalGroup object. + * Get an externalGroup object. This API is supported in the following national cloud deployments. */ class GroupsRequestBuilderGetQueryParameters { diff --git a/src/Generated/External/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.php b/src/Generated/External/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.php index 0d2598f3397..67871d19d8b 100644 --- a/src/Generated/External/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an externalGroup object. + * Delete an externalGroup object. This API is supported in the following national cloud deployments. * @param ExternalGroupItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/externalconnectors-externalgroup-delete?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function delete(?ExternalGroupItemRequestBuilderDeleteRequestConfiguratio } /** - * Get an externalGroup object. + * Get an externalGroup object. This API is supported in the following national cloud deployments. * @param ExternalGroupItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/externalconnectors-externalgroup-get?view=graph-rest-1.0 Find more info here @@ -78,7 +78,7 @@ public function get(?ExternalGroupItemRequestBuilderGetRequestConfiguration $req } /** - * Update the properties of an externalGroup object. + * Update the properties of an externalGroup object. This API is supported in the following national cloud deployments. * @param ExternalGroup $body The request body * @param ExternalGroupItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -98,7 +98,7 @@ public function patch(ExternalGroup $body, ?ExternalGroupItemRequestBuilderPatch } /** - * Delete an externalGroup object. + * Delete an externalGroup object. This API is supported in the following national cloud deployments. * @param ExternalGroupItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -115,7 +115,7 @@ public function toDeleteRequestInformation(?ExternalGroupItemRequestBuilderDelet } /** - * Get an externalGroup object. + * Get an externalGroup object. This API is supported in the following national cloud deployments. * @param ExternalGroupItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -136,7 +136,7 @@ public function toGetRequestInformation(?ExternalGroupItemRequestBuilderGetReque } /** - * Update the properties of an externalGroup object. + * Update the properties of an externalGroup object. This API is supported in the following national cloud deployments. * @param ExternalGroup $body The request body * @param ExternalGroupItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/External/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilderGetQueryParameters.php b/src/Generated/External/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilderGetQueryParameters.php index d4da993e595..87366c43170 100644 --- a/src/Generated/External/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/External/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an externalGroup object. + * Get an externalGroup object. This API is supported in the following national cloud deployments. */ class ExternalGroupItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/External/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.php b/src/Generated/External/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.php index 28a3ce14ed4..bc46eba9fd3 100644 --- a/src/Generated/External/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an identity resource to remove the corresponding member from an externalGroup. + * Delete an identity resource to remove the corresponding member from an externalGroup. This API is supported in the following national cloud deployments. * @param IdentityItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/externalconnectors-identity-delete?view=graph-rest-1.0 Find more info here @@ -88,7 +88,7 @@ public function patch(Identity $body, ?IdentityItemRequestBuilderPatchRequestCon } /** - * Delete an identity resource to remove the corresponding member from an externalGroup. + * Delete an identity resource to remove the corresponding member from an externalGroup. This API is supported in the following national cloud deployments. * @param IdentityItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/External/Connections/Item/Groups/Item/Members/MembersRequestBuilder.php b/src/Generated/External/Connections/Item/Groups/Item/Members/MembersRequestBuilder.php index 326d9f29da6..95b42cffc87 100644 --- a/src/Generated/External/Connections/Item/Groups/Item/Members/MembersRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Groups/Item/Members/MembersRequestBuilder.php @@ -71,7 +71,7 @@ public function get(?MembersRequestBuilderGetRequestConfiguration $requestConfig } /** - * Create an identity resource for a new member in an externalGroup. + * Create an identity resource for a new member in an externalGroup. This API is supported in the following national cloud deployments. * @param Identity $body The request body * @param MembersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -112,7 +112,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } /** - * Create an identity resource for a new member in an externalGroup. + * Create an identity resource for a new member in an externalGroup. This API is supported in the following national cloud deployments. * @param Identity $body The request body * @param MembersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.php b/src/Generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.php index 00ec110f7fc..4249b2e66ee 100644 --- a/src/Generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.php @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an externalItem object. + * Delete an externalItem object. This API is supported in the following national cloud deployments. * @param ExternalItemItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/externalconnectors-externalitem-delete?view=graph-rest-1.0 Find more info here @@ -67,7 +67,7 @@ public function delete(?ExternalItemItemRequestBuilderDeleteRequestConfiguration } /** - * Read the properties and relationships of an externalItem object. + * Read the properties and relationships of an externalItem object. This API is supported in the following national cloud deployments. * @param ExternalItemItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/externalconnectors-externalitem-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function put(ExternalItem $body, ?ExternalItemItemRequestBuilderPutReques } /** - * Delete an externalItem object. + * Delete an externalItem object. This API is supported in the following national cloud deployments. * @param ExternalItemItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -122,7 +122,7 @@ public function toDeleteRequestInformation(?ExternalItemItemRequestBuilderDelete } /** - * Read the properties and relationships of an externalItem object. + * Read the properties and relationships of an externalItem object. This API is supported in the following national cloud deployments. * @param ExternalItemItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilderGetQueryParameters.php b/src/Generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilderGetQueryParameters.php index e107a31080b..9f30294701c 100644 --- a/src/Generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of an externalItem object. + * Read the properties and relationships of an externalItem object. This API is supported in the following national cloud deployments. */ class ExternalItemItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.php b/src/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.php new file mode 100644 index 00000000000..38a860ad62a --- /dev/null +++ b/src/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExternalActivityResult::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, ExternalActivityResult::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/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesResponse.php b/src/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesResponse.php deleted file mode 100644 index 7a5c9c0aef3..00000000000 --- a/src/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExternalActivityResult::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, ExternalActivityResult::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/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.php b/src/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.php index 1effe59a2ae..616f399f8a1 100644 --- a/src/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.php @@ -43,7 +43,7 @@ public function post(AddActivitiesPostRequestBody $body, ?MicrosoftGraphExternal '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [AddActivitiesResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [AddActivitiesPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/External/Connections/Item/Items/ItemsRequestBuilder.php b/src/Generated/External/Connections/Item/Items/ItemsRequestBuilder.php index be917113bbd..e14c8f21b3d 100644 --- a/src/Generated/External/Connections/Item/Items/ItemsRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Items/ItemsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read the properties and relationships of an externalItem object. + * Read the properties and relationships of an externalItem object. This API is supported in the following national cloud deployments. * @param ItemsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(ExternalItem $body, ?ItemsRequestBuilderPostRequestConfigur } /** - * Read the properties and relationships of an externalItem object. + * Read the properties and relationships of an externalItem object. This API is supported in the following national cloud deployments. * @param ItemsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/External/Connections/Item/Items/ItemsRequestBuilderGetQueryParameters.php b/src/Generated/External/Connections/Item/Items/ItemsRequestBuilderGetQueryParameters.php index efd948e62a9..1731a33ba88 100644 --- a/src/Generated/External/Connections/Item/Items/ItemsRequestBuilderGetQueryParameters.php +++ b/src/Generated/External/Connections/Item/Items/ItemsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of an externalItem object. + * Read the properties and relationships of an externalItem object. This API is supported in the following national cloud deployments. */ class ItemsRequestBuilderGetQueryParameters { diff --git a/src/Generated/External/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.php b/src/Generated/External/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.php index 062fdb60ff1..4a5d0027b3d 100644 --- a/src/Generated/External/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?ConnectionOperationItemRequestBuilderDeleteRequestConfig } /** - * Read the properties and relationships of a connectionOperation object. + * Read the properties and relationships of a connectionOperation object. This API is supported in the following national cloud deployments. * @param ConnectionOperationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/externalconnectors-connectionoperation-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?ConnectionOperationItemRequestBuilde } /** - * Read the properties and relationships of a connectionOperation object. + * Read the properties and relationships of a connectionOperation object. This API is supported in the following national cloud deployments. * @param ConnectionOperationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/External/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilderGetQueryParameters.php b/src/Generated/External/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilderGetQueryParameters.php index 46b55b4b4bf..d0420f8656d 100644 --- a/src/Generated/External/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/External/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a connectionOperation object. + * Read the properties and relationships of a connectionOperation object. This API is supported in the following national cloud deployments. */ class ConnectionOperationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/External/Connections/Item/Operations/OperationsRequestBuilder.php b/src/Generated/External/Connections/Item/Operations/OperationsRequestBuilder.php index 245026dabc9..040c0782fee 100644 --- a/src/Generated/External/Connections/Item/Operations/OperationsRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Operations/OperationsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read the properties and relationships of a connectionOperation object. + * Read the properties and relationships of a connectionOperation object. This API is supported in the following national cloud deployments. * @param OperationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(ConnectionOperation $body, ?OperationsRequestBuilderPostReq } /** - * Read the properties and relationships of a connectionOperation object. + * Read the properties and relationships of a connectionOperation object. This API is supported in the following national cloud deployments. * @param OperationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/External/Connections/Item/Operations/OperationsRequestBuilderGetQueryParameters.php b/src/Generated/External/Connections/Item/Operations/OperationsRequestBuilderGetQueryParameters.php index 24dc9faf3a8..635ecffb4ac 100644 --- a/src/Generated/External/Connections/Item/Operations/OperationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/External/Connections/Item/Operations/OperationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a connectionOperation object. + * Read the properties and relationships of a connectionOperation object. This API is supported in the following national cloud deployments. */ class OperationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/External/Connections/Item/Schema/SchemaRequestBuilder.php b/src/Generated/External/Connections/Item/Schema/SchemaRequestBuilder.php index 42fa0efba13..7698c269004 100644 --- a/src/Generated/External/Connections/Item/Schema/SchemaRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Schema/SchemaRequestBuilder.php @@ -32,25 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete navigation property schema for external - * @param SchemaRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return Promise - */ - public function delete(?SchemaRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { - $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); - try { - $errorMappings = [ - '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], - '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], - ]; - return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); - } catch(Exception $ex) { - return new RejectedPromise($ex); - } - } - - /** - * Read the properties and relationships of a schema object. + * Read the properties and relationships of a schema object. This API is supported in the following national cloud deployments. * @param SchemaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/externalconnectors-schema-get?view=graph-rest-1.0 Find more info here @@ -88,24 +70,7 @@ public function patch(Schema $body, ?SchemaRequestBuilderPatchRequestConfigurati } /** - * Delete navigation property schema for external - * @param SchemaRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return RequestInformation - */ - public function toDeleteRequestInformation(?SchemaRequestBuilderDeleteRequestConfiguration $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); - } - return $requestInfo; - } - - /** - * Read the properties and relationships of a schema object. + * Read the properties and relationships of a schema object. This API is supported in the following national cloud deployments. * @param SchemaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/External/Connections/Item/Schema/SchemaRequestBuilderDeleteRequestConfiguration.php b/src/Generated/External/Connections/Item/Schema/SchemaRequestBuilderDeleteRequestConfiguration.php deleted file mode 100644 index 5bc9353b920..00000000000 --- a/src/Generated/External/Connections/Item/Schema/SchemaRequestBuilderDeleteRequestConfiguration.php +++ /dev/null @@ -1,22 +0,0 @@ -|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/External/Connections/Item/Schema/SchemaRequestBuilderGetQueryParameters.php b/src/Generated/External/Connections/Item/Schema/SchemaRequestBuilderGetQueryParameters.php index 6bbd2a04937..f8d2c8b0e9d 100644 --- a/src/Generated/External/Connections/Item/Schema/SchemaRequestBuilderGetQueryParameters.php +++ b/src/Generated/External/Connections/Item/Schema/SchemaRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a schema object. + * Read the properties and relationships of a schema object. This API is supported in the following national cloud deployments. */ class SchemaRequestBuilderGetQueryParameters { diff --git a/src/Generated/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.php b/src/Generated/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.php index c7f361fd78d..bdead84bc5c 100644 --- a/src/Generated/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.php +++ b/src/Generated/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List all the groupLifecyclePolicies. + * List all the groupLifecyclePolicies. This API is supported in the following national cloud deployments. * @param GroupLifecyclePoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/grouplifecyclepolicy-list?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?GroupLifecyclePoliciesRequestBuilderGetRequestConfiguration } /** - * Creates a new groupLifecyclePolicy. + * Creates a new groupLifecyclePolicy. This API is supported in the following national cloud deployments. * @param GroupLifecyclePolicy $body The request body * @param GroupLifecyclePoliciesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(GroupLifecyclePolicy $body, ?GroupLifecyclePoliciesRequestB } /** - * List all the groupLifecyclePolicies. + * List all the groupLifecyclePolicies. This API is supported in the following national cloud deployments. * @param GroupLifecyclePoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?GroupLifecyclePoliciesRequestBuilderGet } /** - * Creates a new groupLifecyclePolicy. + * Creates a new groupLifecyclePolicy. This API is supported in the following national cloud deployments. * @param GroupLifecyclePolicy $body The request body * @param GroupLifecyclePoliciesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilderGetQueryParameters.php b/src/Generated/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilderGetQueryParameters.php index 94447b551f3..9bee53e1fc9 100644 --- a/src/Generated/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilderGetQueryParameters.php +++ b/src/Generated/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List all the groupLifecyclePolicies. + * List all the groupLifecyclePolicies. This API is supported in the following national cloud deployments. */ class GroupLifecyclePoliciesRequestBuilderGetQueryParameters { diff --git a/src/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.php b/src/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.php new file mode 100644 index 00000000000..b03483e369f --- /dev/null +++ b/src/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.php @@ -0,0 +1,114 @@ +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 AddGroupPostResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): AddGroupPostResponse { + return new AddGroupPostResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return bool|null + */ + public function getValue(): ?bool { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_bool($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 { + $writer->writeBooleanValue('value', $this->getValue()); + $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 value property value. The value property + * @param bool|null $value Value to set for the value property. + */ + public function setValue(?bool $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.php b/src/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.php index 4a2d3e0e753..bb4d3399c7b 100644 --- a/src/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.php +++ b/src/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. + * Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. This API is supported in the following national cloud deployments. * @param AddGroupPostRequestBody $body The request body * @param AddGroupRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(AddGroupPostRequestBody $body, ?AddGroupRequestBuilderPostR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [AddGroupResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [AddGroupPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. + * Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. This API is supported in the following national cloud deployments. * @param AddGroupPostRequestBody $body The request body * @param AddGroupRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupResponse.php b/src/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupResponse.php deleted file mode 100644 index a2cbf39618b..00000000000 --- a/src/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 AddGroupResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): AddGroupResponse { - return new AddGroupResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return bool|null - */ - public function getValue(): ?bool { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_bool($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 { - $writer->writeBooleanValue('value', $this->getValue()); - $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 value property value. The value property - * @param bool|null $value Value to set for the value property. - */ - public function setValue(?bool $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.php b/src/Generated/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.php index da10664e575..9468b4762ab 100644 --- a/src/Generated/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.php +++ b/src/Generated/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.php @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a groupLifecyclePolicy. + * Delete a groupLifecyclePolicy. This API is supported in the following national cloud deployments. * @param GroupLifecyclePolicyItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/grouplifecyclepolicy-delete?view=graph-rest-1.0 Find more info here @@ -67,7 +67,7 @@ public function delete(?GroupLifecyclePolicyItemRequestBuilderDeleteRequestConfi } /** - * Retrieve the properties and relationships of a groupLifecyclePolicies object. + * Retrieve the properties and relationships of a groupLifecyclePolicies object. This API is supported in the following national cloud deployments. * @param GroupLifecyclePolicyItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/grouplifecyclepolicy-get?view=graph-rest-1.0 Find more info here @@ -86,7 +86,7 @@ public function get(?GroupLifecyclePolicyItemRequestBuilderGetRequestConfigurati } /** - * Update the properties of a groupLifecyclePolicygroupLifecyclePolicy resource type object. + * Update the properties of a groupLifecyclePolicygroupLifecyclePolicy resource type object. This API is supported in the following national cloud deployments. * @param GroupLifecyclePolicy $body The request body * @param GroupLifecyclePolicyItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -106,7 +106,7 @@ public function patch(GroupLifecyclePolicy $body, ?GroupLifecyclePolicyItemReque } /** - * Delete a groupLifecyclePolicy. + * Delete a groupLifecyclePolicy. This API is supported in the following national cloud deployments. * @param GroupLifecyclePolicyItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -123,7 +123,7 @@ public function toDeleteRequestInformation(?GroupLifecyclePolicyItemRequestBuild } /** - * Retrieve the properties and relationships of a groupLifecyclePolicies object. + * Retrieve the properties and relationships of a groupLifecyclePolicies object. This API is supported in the following national cloud deployments. * @param GroupLifecyclePolicyItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -144,7 +144,7 @@ public function toGetRequestInformation(?GroupLifecyclePolicyItemRequestBuilderG } /** - * Update the properties of a groupLifecyclePolicygroupLifecyclePolicy resource type object. + * Update the properties of a groupLifecyclePolicygroupLifecyclePolicy resource type object. This API is supported in the following national cloud deployments. * @param GroupLifecyclePolicy $body The request body * @param GroupLifecyclePolicyItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilderGetQueryParameters.php b/src/Generated/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilderGetQueryParameters.php index 54c67cbea6e..1e4d791148a 100644 --- a/src/Generated/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a groupLifecyclePolicies object. + * Retrieve the properties and relationships of a groupLifecyclePolicies object. This API is supported in the following national cloud deployments. */ class GroupLifecyclePolicyItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.php b/src/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.php new file mode 100644 index 00000000000..1f9405acdf2 --- /dev/null +++ b/src/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.php @@ -0,0 +1,114 @@ +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 RemoveGroupPostResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): RemoveGroupPostResponse { + return new RemoveGroupPostResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return bool|null + */ + public function getValue(): ?bool { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_bool($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 { + $writer->writeBooleanValue('value', $this->getValue()); + $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 value property value. The value property + * @param bool|null $value Value to set for the value property. + */ + public function setValue(?bool $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.php b/src/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.php index 2d14db2ec48..cb6cc8941e1 100644 --- a/src/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.php +++ b/src/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Removes a group from a lifecycle policy. + * Removes a group from a lifecycle policy. This API is supported in the following national cloud deployments. * @param RemoveGroupPostRequestBody $body The request body * @param RemoveGroupRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(RemoveGroupPostRequestBody $body, ?RemoveGroupRequestBuilde '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [RemoveGroupResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [RemoveGroupPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Removes a group from a lifecycle policy. + * Removes a group from a lifecycle policy. This API is supported in the following national cloud deployments. * @param RemoveGroupPostRequestBody $body The request body * @param RemoveGroupRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupResponse.php b/src/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupResponse.php deleted file mode 100644 index caab853ba56..00000000000 --- a/src/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 RemoveGroupResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): RemoveGroupResponse { - return new RemoveGroupResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return bool|null - */ - public function getValue(): ?bool { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_bool($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 { - $writer->writeBooleanValue('value', $this->getValue()); - $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 value property value. The value property - * @param bool|null $value Value to set for the value property. - */ - public function setValue(?bool $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/GroupSettingTemplates/Delta/DeltaGetResponse.php b/src/Generated/GroupSettingTemplates/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..4128767321a --- /dev/null +++ b/src/Generated/GroupSettingTemplates/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([DirectoryObject::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, DirectoryObject::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/GroupSettingTemplates/Delta/DeltaRequestBuilder.php b/src/Generated/GroupSettingTemplates/Delta/DeltaRequestBuilder.php index 307029bc13f..2df112ef3bb 100644 --- a/src/Generated/GroupSettingTemplates/Delta/DeltaRequestBuilder.php +++ b/src/Generated/GroupSettingTemplates/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/GroupSettingTemplates/Delta/DeltaResponse.php b/src/Generated/GroupSettingTemplates/Delta/DeltaResponse.php deleted file mode 100644 index a578fad800a..00000000000 --- a/src/Generated/GroupSettingTemplates/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php b/src/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php new file mode 100644 index 00000000000..6ee671de0eb --- /dev/null +++ b/src/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index 9e27fe3d0d6..976e4721c85 100644 --- a/src/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetAvailableExtensionPropertiesPostRequestBody $body, ?GetA '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php b/src/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php deleted file mode 100644 index 931214d0c72..00000000000 --- a/src/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/GroupSettingTemplates/GetByIds/GetByIdsPostResponse.php b/src/Generated/GroupSettingTemplates/GetByIds/GetByIdsPostResponse.php new file mode 100644 index 00000000000..045e9491f95 --- /dev/null +++ b/src/Generated/GroupSettingTemplates/GetByIds/GetByIdsPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/GroupSettingTemplates/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/GroupSettingTemplates/GetByIds/GetByIdsRequestBuilder.php index ad97a880968..faece675745 100644 --- a/src/Generated/GroupSettingTemplates/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/GroupSettingTemplates/GetByIds/GetByIdsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetByIdsPostRequestBody $body, ?GetByIdsRequestBuilderPostR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/GroupSettingTemplates/GetByIds/GetByIdsResponse.php b/src/Generated/GroupSettingTemplates/GetByIds/GetByIdsResponse.php deleted file mode 100644 index bfe2323cac5..00000000000 --- a/src/Generated/GroupSettingTemplates/GetByIds/GetByIdsResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/GroupSettingTemplates/GroupSettingTemplatesRequestBuilder.php b/src/Generated/GroupSettingTemplates/GroupSettingTemplatesRequestBuilder.php index fbaaa6e545b..999d12d080e 100644 --- a/src/Generated/GroupSettingTemplates/GroupSettingTemplatesRequestBuilder.php +++ b/src/Generated/GroupSettingTemplates/GroupSettingTemplatesRequestBuilder.php @@ -85,7 +85,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Group setting templates represents a set of templates from which group settings may be created and used within a tenant. This operation retrieves the list of available groupSettingTemplates objects. + * Group setting templates represents a set of templates from which group settings may be created and used within a tenant. This operation retrieves the list of available groupSettingTemplates objects. This API is supported in the following national cloud deployments. * @param GroupSettingTemplatesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/groupsettingtemplate-list?view=graph-rest-1.0 Find more info here @@ -123,7 +123,7 @@ public function post(GroupSettingTemplate $body, ?GroupSettingTemplatesRequestBu } /** - * Group setting templates represents a set of templates from which group settings may be created and used within a tenant. This operation retrieves the list of available groupSettingTemplates objects. + * Group setting templates represents a set of templates from which group settings may be created and used within a tenant. This operation retrieves the list of available groupSettingTemplates objects. This API is supported in the following national cloud deployments. * @param GroupSettingTemplatesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/GroupSettingTemplates/GroupSettingTemplatesRequestBuilderGetQueryParameters.php b/src/Generated/GroupSettingTemplates/GroupSettingTemplatesRequestBuilderGetQueryParameters.php index 097e2e92b38..b494f591043 100644 --- a/src/Generated/GroupSettingTemplates/GroupSettingTemplatesRequestBuilderGetQueryParameters.php +++ b/src/Generated/GroupSettingTemplates/GroupSettingTemplatesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Group setting templates represents a set of templates from which group settings may be created and used within a tenant. This operation retrieves the list of available groupSettingTemplates objects. + * Group setting templates represents a set of templates from which group settings may be created and used within a tenant. This operation retrieves the list of available groupSettingTemplates objects. This API is supported in the following national cloud deployments. */ class GroupSettingTemplatesRequestBuilderGetQueryParameters { diff --git a/src/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php b/src/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php new file mode 100644 index 00000000000..4d1d414f6b0 --- /dev/null +++ b/src/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php b/src/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php index b1430f6007e..5cffe222c78 100644 --- a/src/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php +++ b/src/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. * @param CheckMemberGroupsPostRequestBody $body The request body * @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberGroupsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberGroupsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. * @param CheckMemberGroupsPostRequestBody $body The request body * @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsResponse.php b/src/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsResponse.php deleted file mode 100644 index e5b34f83306..00000000000 --- a/src/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php b/src/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php new file mode 100644 index 00000000000..09ef3a57c47 --- /dev/null +++ b/src/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php b/src/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php index f42530ae20b..112b74f64a3 100644 --- a/src/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php +++ b/src/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php @@ -43,7 +43,7 @@ public function post(CheckMemberObjectsPostRequestBody $body, ?CheckMemberObject '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberObjectsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberObjectsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsResponse.php b/src/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsResponse.php deleted file mode 100644 index 47d42dbba8d..00000000000 --- a/src/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.php b/src/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.php new file mode 100644 index 00000000000..58d0feb0ede --- /dev/null +++ b/src/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index 3ae043079d7..b9444b84f16 100644 --- a/src/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsReque '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetMemberGroupsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetMemberGroupsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsResponse.php b/src/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsResponse.php deleted file mode 100644 index c962f7ccd6e..00000000000 --- a/src/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.php b/src/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.php new file mode 100644 index 00000000000..45ba48d0316 --- /dev/null +++ b/src/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php b/src/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php index c3e45f65912..15fc005b587 100644 --- a/src/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php +++ b/src/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. * @param GetMemberObjectsPostRequestBody $body The request body * @param GetMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetMemberObjectsPostRequestBody $body, ?GetMemberObjectsReq '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetMemberObjectsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetMemberObjectsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. * @param GetMemberObjectsPostRequestBody $body The request body * @param GetMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsResponse.php b/src/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsResponse.php deleted file mode 100644 index 7e228078ef8..00000000000 --- a/src/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/GroupSettingTemplates/Item/GroupSettingTemplateItemRequestBuilder.php b/src/Generated/GroupSettingTemplates/Item/GroupSettingTemplateItemRequestBuilder.php index 5168e2d9ee8..80c5356ef5b 100644 --- a/src/Generated/GroupSettingTemplates/Item/GroupSettingTemplateItemRequestBuilder.php +++ b/src/Generated/GroupSettingTemplates/Item/GroupSettingTemplateItemRequestBuilder.php @@ -90,7 +90,7 @@ public function delete(?GroupSettingTemplateItemRequestBuilderDeleteRequestConfi } /** - * A group setting template represents a template of settings from which settings may be created within a tenant. This operation allows retrieval of the properties of the groupSettingTemplate object, including the available settings and their defaults. + * A group setting template represents a template of settings from which settings may be created within a tenant. This operation allows retrieval of the properties of the groupSettingTemplate object, including the available settings and their defaults. This API is supported in the following national cloud deployments. * @param GroupSettingTemplateItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/groupsettingtemplate-get?view=graph-rest-1.0 Find more info here @@ -145,7 +145,7 @@ public function toDeleteRequestInformation(?GroupSettingTemplateItemRequestBuild } /** - * A group setting template represents a template of settings from which settings may be created within a tenant. This operation allows retrieval of the properties of the groupSettingTemplate object, including the available settings and their defaults. + * A group setting template represents a template of settings from which settings may be created within a tenant. This operation allows retrieval of the properties of the groupSettingTemplate object, including the available settings and their defaults. This API is supported in the following national cloud deployments. * @param GroupSettingTemplateItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/GroupSettingTemplates/Item/GroupSettingTemplateItemRequestBuilderGetQueryParameters.php b/src/Generated/GroupSettingTemplates/Item/GroupSettingTemplateItemRequestBuilderGetQueryParameters.php index 61a96b04b75..89b7ecc8856 100644 --- a/src/Generated/GroupSettingTemplates/Item/GroupSettingTemplateItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/GroupSettingTemplates/Item/GroupSettingTemplateItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * A group setting template represents a template of settings from which settings may be created within a tenant. This operation allows retrieval of the properties of the groupSettingTemplate object, including the available settings and their defaults. + * A group setting template represents a template of settings from which settings may be created within a tenant. This operation allows retrieval of the properties of the groupSettingTemplate object, including the available settings and their defaults. This API is supported in the following national cloud deployments. */ class GroupSettingTemplateItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.php b/src/Generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.php index f21fd023bbc..f0733fa9466 100644 --- a/src/Generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/GroupSettingTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/GroupSettingTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.php index a5b6cee8fa4..b2f41c6c3c9 100644 --- a/src/Generated/GroupSettingTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/GroupSettingTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ValidatePropertiesPostRequestBody $body, ?ValidatePropertie } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/GroupSettings/GroupSettingsRequestBuilder.php b/src/Generated/GroupSettings/GroupSettingsRequestBuilder.php index 7afa5af64a6..0d1468c18d5 100644 --- a/src/Generated/GroupSettings/GroupSettingsRequestBuilder.php +++ b/src/Generated/GroupSettings/GroupSettingsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of tenant-level or group-specific group settings objects. + * Retrieve a list of tenant-level or group-specific group settings objects. This API is supported in the following national cloud deployments. * @param GroupSettingsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/group-list-settings?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?GroupSettingsRequestBuilderGetRequestConfiguration $request } /** - * Create a new setting based on the templates available in groupSettingTemplates. These settings can be at the tenant-level or at the group level. Group settings apply to only Microsoft 365 groups. The template named Group.Unified can be used to configure tenant-wide Microsoft 365 group settings, while the template named Group.Unified.Guest can be used to configure group-specific settings. + * Create a new setting based on the templates available in groupSettingTemplates. These settings can be at the tenant-level or at the group level. Group settings apply to only Microsoft 365 groups. The template named Group.Unified can be used to configure tenant-wide Microsoft 365 group settings, while the template named Group.Unified.Guest can be used to configure group-specific settings. This API is supported in the following national cloud deployments. * @param GroupSetting $body The request body * @param GroupSettingsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(GroupSetting $body, ?GroupSettingsRequestBuilderPostRequest } /** - * Retrieve a list of tenant-level or group-specific group settings objects. + * Retrieve a list of tenant-level or group-specific group settings objects. This API is supported in the following national cloud deployments. * @param GroupSettingsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?GroupSettingsRequestBuilderGetRequestCo } /** - * Create a new setting based on the templates available in groupSettingTemplates. These settings can be at the tenant-level or at the group level. Group settings apply to only Microsoft 365 groups. The template named Group.Unified can be used to configure tenant-wide Microsoft 365 group settings, while the template named Group.Unified.Guest can be used to configure group-specific settings. + * Create a new setting based on the templates available in groupSettingTemplates. These settings can be at the tenant-level or at the group level. Group settings apply to only Microsoft 365 groups. The template named Group.Unified can be used to configure tenant-wide Microsoft 365 group settings, while the template named Group.Unified.Guest can be used to configure group-specific settings. This API is supported in the following national cloud deployments. * @param GroupSetting $body The request body * @param GroupSettingsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/GroupSettings/GroupSettingsRequestBuilderGetQueryParameters.php b/src/Generated/GroupSettings/GroupSettingsRequestBuilderGetQueryParameters.php index 602f23b7cb2..b7295a985ea 100644 --- a/src/Generated/GroupSettings/GroupSettingsRequestBuilderGetQueryParameters.php +++ b/src/Generated/GroupSettings/GroupSettingsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of tenant-level or group-specific group settings objects. + * Retrieve a list of tenant-level or group-specific group settings objects. This API is supported in the following national cloud deployments. */ class GroupSettingsRequestBuilderGetQueryParameters { diff --git a/src/Generated/GroupSettings/Item/GroupSettingItemRequestBuilder.php b/src/Generated/GroupSettings/Item/GroupSettingItemRequestBuilder.php index f43b1a022a6..287fdd11112 100644 --- a/src/Generated/GroupSettings/Item/GroupSettingItemRequestBuilder.php +++ b/src/Generated/GroupSettings/Item/GroupSettingItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a tenant-level or group-specific groupSetting object. + * Delete a tenant-level or group-specific groupSetting object. This API is supported in the following national cloud deployments. * @param GroupSettingItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/groupsetting-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?GroupSettingItemRequestBuilderDeleteRequestConfiguration } /** - * Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. + * Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. This API is supported in the following national cloud deployments. * @param GroupSettingItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/groupsetting-get?view=graph-rest-1.0 Find more info here @@ -70,7 +70,7 @@ public function get(?GroupSettingItemRequestBuilderGetRequestConfiguration $requ } /** - * Update the properties of a groupSetting object for tenant-wide group settings or a specific group setting. + * Update the properties of a groupSetting object for tenant-wide group settings or a specific group setting. This API is supported in the following national cloud deployments. * @param GroupSetting $body The request body * @param GroupSettingItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -90,7 +90,7 @@ public function patch(GroupSetting $body, ?GroupSettingItemRequestBuilderPatchRe } /** - * Delete a tenant-level or group-specific groupSetting object. + * Delete a tenant-level or group-specific groupSetting object. This API is supported in the following national cloud deployments. * @param GroupSettingItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?GroupSettingItemRequestBuilderDelete } /** - * Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. + * Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. This API is supported in the following national cloud deployments. * @param GroupSettingItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -128,7 +128,7 @@ public function toGetRequestInformation(?GroupSettingItemRequestBuilderGetReques } /** - * Update the properties of a groupSetting object for tenant-wide group settings or a specific group setting. + * Update the properties of a groupSetting object for tenant-wide group settings or a specific group setting. This API is supported in the following national cloud deployments. * @param GroupSetting $body The request body * @param GroupSettingItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/GroupSettings/Item/GroupSettingItemRequestBuilderGetQueryParameters.php b/src/Generated/GroupSettings/Item/GroupSettingItemRequestBuilderGetQueryParameters.php index 4e0191dd390..1ae15718988 100644 --- a/src/Generated/GroupSettings/Item/GroupSettingItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/GroupSettings/Item/GroupSettingItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. + * Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. This API is supported in the following national cloud deployments. */ class GroupSettingItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Delta/DeltaGetResponse.php b/src/Generated/Groups/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..70cc898ec8e --- /dev/null +++ b/src/Generated/Groups/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([Group::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, Group::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/Groups/Delta/DeltaRequestBuilder.php b/src/Generated/Groups/Delta/DeltaRequestBuilder.php index a51150c56e0..db36b2a8871 100644 --- a/src/Generated/Groups/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Groups/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Delta/DeltaResponse.php b/src/Generated/Groups/Delta/DeltaResponse.php deleted file mode 100644 index 5c08eccc534..00000000000 --- a/src/Generated/Groups/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Group::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, Group::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/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php b/src/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php new file mode 100644 index 00000000000..4d1631973e5 --- /dev/null +++ b/src/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index c275e3d28cd..64fcbae7d03 100644 --- a/src/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetAvailableExtensionPropertiesPostRequestBody $body, ?GetA '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php b/src/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php deleted file mode 100644 index 79926215eb0..00000000000 --- a/src/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/Groups/GetByIds/GetByIdsPostResponse.php b/src/Generated/Groups/GetByIds/GetByIdsPostResponse.php new file mode 100644 index 00000000000..3824a12287d --- /dev/null +++ b/src/Generated/Groups/GetByIds/GetByIdsPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/Groups/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/Groups/GetByIds/GetByIdsRequestBuilder.php index 72b19283295..e412527c81b 100644 --- a/src/Generated/Groups/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/Groups/GetByIds/GetByIdsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetByIdsPostRequestBody $body, ?GetByIdsRequestBuilderPostR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/GetByIds/GetByIdsResponse.php b/src/Generated/Groups/GetByIds/GetByIdsResponse.php deleted file mode 100644 index b5d8d7ab92d..00000000000 --- a/src/Generated/Groups/GetByIds/GetByIdsResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/Groups/GroupsRequestBuilder.php b/src/Generated/Groups/GroupsRequestBuilder.php index 257fe13bc10..fadae0f2181 100644 --- a/src/Generated/Groups/GroupsRequestBuilder.php +++ b/src/Generated/Groups/GroupsRequestBuilder.php @@ -85,7 +85,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List all the groups available in an organization, excluding dynamic distribution groups. To retrieve dynamic distribution groups, use the Exchange admin center. This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the group and specify the properties in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. + * List all the groups available in an organization, excluding dynamic distribution groups. To retrieve dynamic distribution groups, use the Exchange admin center. This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the group and specify the properties in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. This API is supported in the following national cloud deployments. * @param GroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/group-list?view=graph-rest-1.0 Find more info here @@ -104,7 +104,7 @@ public function get(?GroupsRequestBuilderGetRequestConfiguration $requestConfigu } /** - * Create a new group as specified in the request body. You can create the following types of groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + * Create a new group as specified in the request body. You can create the following types of groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. This API is supported in the following national cloud deployments. * @param Group $body The request body * @param GroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -124,7 +124,7 @@ public function post(Group $body, ?GroupsRequestBuilderPostRequestConfiguration } /** - * List all the groups available in an organization, excluding dynamic distribution groups. To retrieve dynamic distribution groups, use the Exchange admin center. This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the group and specify the properties in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. + * List all the groups available in an organization, excluding dynamic distribution groups. To retrieve dynamic distribution groups, use the Exchange admin center. This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the group and specify the properties in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. This API is supported in the following national cloud deployments. * @param GroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -145,7 +145,7 @@ public function toGetRequestInformation(?GroupsRequestBuilderGetRequestConfigura } /** - * Create a new group as specified in the request body. You can create the following types of groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + * Create a new group as specified in the request body. You can create the following types of groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. This API is supported in the following national cloud deployments. * @param Group $body The request body * @param GroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/GroupsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/GroupsRequestBuilderGetQueryParameters.php index 737209059e5..34b520e98fa 100644 --- a/src/Generated/Groups/GroupsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/GroupsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List all the groups available in an organization, excluding dynamic distribution groups. To retrieve dynamic distribution groups, use the Exchange admin center. This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the group and specify the properties in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. + * List all the groups available in an organization, excluding dynamic distribution groups. To retrieve dynamic distribution groups, use the Exchange admin center. This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the group and specify the properties in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. This API is supported in the following national cloud deployments. */ class GroupsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/AcceptedSenders/AcceptedSendersRequestBuilder.php b/src/Generated/Groups/Item/AcceptedSenders/AcceptedSendersRequestBuilder.php index 069090355d1..9a22aeb4c9a 100644 --- a/src/Generated/Groups/Item/AcceptedSenders/AcceptedSendersRequestBuilder.php +++ b/src/Generated/Groups/Item/AcceptedSenders/AcceptedSendersRequestBuilder.php @@ -60,7 +60,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. + * Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. This API is supported in the following national cloud deployments. * @param AcceptedSendersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/group-list-acceptedsenders?view=graph-rest-1.0 Find more info here @@ -79,7 +79,7 @@ public function get(?AcceptedSendersRequestBuilderGetRequestConfiguration $reque } /** - * Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. + * Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. This API is supported in the following national cloud deployments. * @param AcceptedSendersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/AcceptedSenders/AcceptedSendersRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/AcceptedSenders/AcceptedSendersRequestBuilderGetQueryParameters.php index 58ea5743306..20f28ff05e9 100644 --- a/src/Generated/Groups/Item/AcceptedSenders/AcceptedSendersRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/AcceptedSenders/AcceptedSendersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. + * Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. This API is supported in the following national cloud deployments. */ class AcceptedSendersRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.php b/src/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.php index 1c3413e6570..bbbf8aab331 100644 --- a/src/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.php +++ b/src/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.php @@ -33,7 +33,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. + * Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/group-list-acceptedsenders?view=graph-rest-1.0 Find more info here @@ -52,7 +52,7 @@ public function get(?RefRequestBuilderGetRequestConfiguration $requestConfigurat } /** - * Specify the user or group in @odata.id in the request body. Users in the accepted senders list can post to conversations of the group. Make sure you don't specify the same user or group in the accepted senders and rejected senders lists, otherwise you'll get an error. + * Specify the user or group in @odata.id in the request body. Users in the accepted senders list can post to conversations of the group. Make sure you don't specify the same user or group in the accepted senders and rejected senders lists, otherwise you'll get an error. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -72,7 +72,7 @@ public function post(ReferenceCreate $body, ?RefRequestBuilderPostRequestConfigu } /** - * Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. + * Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -93,7 +93,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } /** - * Specify the user or group in @odata.id in the request body. Users in the accepted senders list can post to conversations of the group. Make sure you don't specify the same user or group in the accepted senders and rejected senders lists, otherwise you'll get an error. + * Specify the user or group in @odata.id in the request body. Users in the accepted senders list can post to conversations of the group. Make sure you don't specify the same user or group in the accepted senders and rejected senders lists, otherwise you'll get an error. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilderGetQueryParameters.php index 3cef59c13fd..4be1917bc33 100644 --- a/src/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. + * Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. This API is supported in the following national cloud deployments. */ class RefRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/AddFavorite/AddFavoriteRequestBuilder.php b/src/Generated/Groups/Item/AddFavorite/AddFavoriteRequestBuilder.php index 06e81548b7d..d4f607f1e25 100644 --- a/src/Generated/Groups/Item/AddFavorite/AddFavoriteRequestBuilder.php +++ b/src/Generated/Groups/Item/AddFavorite/AddFavoriteRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only. + * Add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only. This API is supported in the following national cloud deployments. * @param AddFavoriteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/group-addfavorite?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?AddFavoriteRequestBuilderPostRequestConfiguration $request } /** - * Add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only. + * Add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only. This API is supported in the following national cloud deployments. * @param AddFavoriteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.php b/src/Generated/Groups/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.php index 03246ce54cf..93141968cb5 100644 --- a/src/Generated/Groups/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.php +++ b/src/Generated/Groups/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.php @@ -72,7 +72,7 @@ public function get(?AppRoleAssignmentsRequestBuilderGetRequestConfiguration $re } /** - * Use this API to assign an app role to a security group. All direct members of the group will be considered assigned. Security groups with dynamic memberships are supported. To grant an app role assignment to a group, you need three identifiers: Additional licenses might be required to use a group to manage access to applications. + * Use this API to assign an app role to a security group. All direct members of the group will be considered assigned. Security groups with dynamic memberships are supported. To grant an app role assignment to a group, you need three identifiers: Additional licenses might be required to use a group to manage access to applications. This API is supported in the following national cloud deployments. * @param AppRoleAssignment $body The request body * @param AppRoleAssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -113,7 +113,7 @@ public function toGetRequestInformation(?AppRoleAssignmentsRequestBuilderGetRequ } /** - * Use this API to assign an app role to a security group. All direct members of the group will be considered assigned. Security groups with dynamic memberships are supported. To grant an app role assignment to a group, you need three identifiers: Additional licenses might be required to use a group to manage access to applications. + * Use this API to assign an app role to a security group. All direct members of the group will be considered assigned. Security groups with dynamic memberships are supported. To grant an app role assignment to a group, you need three identifiers: Additional licenses might be required to use a group to manage access to applications. This API is supported in the following national cloud deployments. * @param AppRoleAssignment $body The request body * @param AppRoleAssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.php b/src/Generated/Groups/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.php index 6892779db22..91cef4b38e7 100644 --- a/src/Generated/Groups/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.php +++ b/src/Generated/Groups/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Deletes an appRoleAssignment that a group has been granted. + * Deletes an appRoleAssignment that a group has been granted. This API is supported in the following national cloud deployments. * @param AppRoleAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/group-delete-approleassignments?view=graph-rest-1.0 Find more info here @@ -88,7 +88,7 @@ public function patch(AppRoleAssignment $body, ?AppRoleAssignmentItemRequestBuil } /** - * Deletes an appRoleAssignment that a group has been granted. + * Deletes an appRoleAssignment that a group has been granted. This API is supported in the following national cloud deployments. * @param AppRoleAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/AssignLicense/AssignLicenseRequestBuilder.php b/src/Generated/Groups/Item/AssignLicense/AssignLicenseRequestBuilder.php index b1a31837a18..2cb204d867b 100644 --- a/src/Generated/Groups/Item/AssignLicense/AssignLicenseRequestBuilder.php +++ b/src/Generated/Groups/Item/AssignLicense/AssignLicenseRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Add or remove licenses on the group. Licenses assigned to the group will be assigned to all users in the group. To learn more about group-based licensing, see What is group-based licensing in Azure Active Directory. To get the subscriptions available in the directory, perform a GET subscribedSkus request. + * Add or remove licenses on the group. Licenses assigned to the group will be assigned to all users in the group. To learn more about group-based licensing, see What is group-based licensing in Azure Active Directory. To get the subscriptions available in the directory, perform a GET subscribedSkus request. This API is supported in the following national cloud deployments. * @param AssignLicensePostRequestBody $body The request body * @param AssignLicenseRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(AssignLicensePostRequestBody $body, ?AssignLicenseRequestBu } /** - * Add or remove licenses on the group. Licenses assigned to the group will be assigned to all users in the group. To learn more about group-based licensing, see What is group-based licensing in Azure Active Directory. To get the subscriptions available in the directory, perform a GET subscribedSkus request. + * Add or remove licenses on the group. Licenses assigned to the group will be assigned to all users in the group. To learn more about group-based licensing, see What is group-based licensing in Azure Active Directory. To get the subscriptions available in the directory, perform a GET subscribedSkus request. This API is supported in the following national cloud deployments. * @param AssignLicensePostRequestBody $body The request body * @param AssignLicenseRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.php b/src/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.php new file mode 100644 index 00000000000..7a5aafd8555 --- /dev/null +++ b/src/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfEnumValues(CalendarRoleType::class)), + ]); + } + + /** + * 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, CalendarRoleType::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->writeCollectionOfEnumValues('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/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.php b/src/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.php index cab0a12b0b6..f2f9ab41d6d 100644 --- a/src/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.php @@ -45,7 +45,7 @@ public function get(?AllowedCalendarSharingRolesWithUserRequestBuilderGetRequest '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [AllowedCalendarSharingRolesWithUserResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [AllowedCalendarSharingRolesWithUserGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.php b/src/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.php deleted file mode 100644 index b6df9a1034a..00000000000 --- a/src/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfEnumValues(CalendarRoleType::class)), - ]); - } - - /** - * 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, CalendarRoleType::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->writeCollectionOfEnumValues('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/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.php index 2119446fba9..b92e28da3a0 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. + * Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. This API is supported in the following national cloud deployments. * @param CalendarPermissionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/calendar-list-calendarpermissions?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?CalendarPermissionsRequestBuilderGetRequestConfiguration $r } /** - * Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. + * Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. This API is supported in the following national cloud deployments. * @param CalendarPermission $body The request body * @param CalendarPermissionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(CalendarPermission $body, ?CalendarPermissionsRequestBuilde } /** - * Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. + * Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. This API is supported in the following national cloud deployments. * @param CalendarPermissionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?CalendarPermissionsRequestBuilderGetReq } /** - * Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. + * Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. This API is supported in the following national cloud deployments. * @param CalendarPermission $body The request body * @param CalendarPermissionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilderGetQueryParameters.php index 5a4fc6ae417..416af35bcc8 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. + * Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. This API is supported in the following national cloud deployments. */ class CalendarPermissionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.php index 3b981111d1a..7f8d9436160 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete calendarPermission. + * Delete calendarPermission. This API is supported in the following national cloud deployments. * @param CalendarPermissionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/calendarpermission-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?CalendarPermissionItemRequestBuilderDeleteRequestConfigu } /** - * Get the specified permissions object of a user or group calendar that has been shared. + * Get the specified permissions object of a user or group calendar that has been shared. This API is supported in the following national cloud deployments. * @param CalendarPermissionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/calendarpermission-get?view=graph-rest-1.0 Find more info here @@ -70,7 +70,7 @@ public function get(?CalendarPermissionItemRequestBuilderGetRequestConfiguration } /** - * Update the permissions assigned to an existing sharee or delegate, through the corresponding calendarPermission object for a calendar. + * Update the permissions assigned to an existing share recipient or delegate, through the corresponding calendarPermission object for a calendar. This API is supported in the following national cloud deployments. * @param CalendarPermission $body The request body * @param CalendarPermissionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -90,7 +90,7 @@ public function patch(CalendarPermission $body, ?CalendarPermissionItemRequestBu } /** - * Delete calendarPermission. + * Delete calendarPermission. This API is supported in the following national cloud deployments. * @param CalendarPermissionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?CalendarPermissionItemRequestBuilder } /** - * Get the specified permissions object of a user or group calendar that has been shared. + * Get the specified permissions object of a user or group calendar that has been shared. This API is supported in the following national cloud deployments. * @param CalendarPermissionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -128,7 +128,7 @@ public function toGetRequestInformation(?CalendarPermissionItemRequestBuilderGet } /** - * Update the permissions assigned to an existing sharee or delegate, through the corresponding calendarPermission object for a calendar. + * Update the permissions assigned to an existing share recipient or delegate, through the corresponding calendarPermission object for a calendar. This API is supported in the following national cloud deployments. * @param CalendarPermission $body The request body * @param CalendarPermissionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilderGetQueryParameters.php index d093b884cc9..49201bb103b 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the specified permissions object of a user or group calendar that has been shared. + * Get the specified permissions object of a user or group calendar that has been shared. This API is supported in the following national cloud deployments. */ class CalendarPermissionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaGetResponse.php b/src/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..98ae652976b --- /dev/null +++ b/src/Generated/Groups/Item/Calendar/CalendarView/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([Event::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, Event::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/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.php index 42f6e378a04..8279d3d37be 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. * @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0 Find more info here @@ -43,14 +43,14 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. * @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilderGetQueryParameters.php index 17c0e798af8..56c63b558c0 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. */ class DeltaRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaResponse.php b/src/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaResponse.php deleted file mode 100644 index a79aa816bb0..00000000000 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Event::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, Event::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/Groups/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.php index f08e3aebc79..f3439f8d0d7 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Accept the specified event in a user calendar. + * Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. * @param AcceptPostRequestBody $body The request body * @param AcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(AcceptPostRequestBody $body, ?AcceptRequestBuilderPostReque } /** - * Accept the specified event in a user calendar. + * Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. * @param AcceptPostRequestBody $body The request body * @param AcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php index aee5479909b..1e6f45a6d65 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of attachment objects attached to an event. + * Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. * @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/event-list-attachments?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?AttachmentsRequestBuilderGetRequestConfiguration $requestCo } /** - * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. * @param Attachment $body The request body * @param AttachmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConf } /** - * Retrieve a list of attachment objects attached to an event. + * Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. * @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } /** - * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. * @param Attachment $body The request body * @param AttachmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php index 631c74d10bc..7aa580e9223 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of attachment objects attached to an event. + * Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. */ class AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index 5c7aa5a46d7..0f64ce7d225 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CreateUploadSessionPostRequestBody $body, ?CreateUploadSess } /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.php index 1f0e9ada2d8..34956508664 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an attachment from a user calendar event, mail message, or group post. + * Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. * @param AttachmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/attachment-delete?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?AttachmentItemRequestBuilderGetRequestConfiguration $reques } /** - * Delete an attachment from a user calendar event, mail message, or group post. + * Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. * @param AttachmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.php index ebf1c0ac8c9..0dcfb62ec3b 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. * @param CancelPostRequestBody $body The request body * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(CancelPostRequestBody $body, ?CancelRequestBuilderPostReque } /** - * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. * @param CancelPostRequestBody $body The request body * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.php index 5e3e4eb08ea..0308bee3c48 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param DeclinePostRequestBody $body The request body * @param DeclineRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(DeclinePostRequestBody $body, ?DeclineRequestBuilderPostReq } /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param DeclinePostRequestBody $body The request body * @param DeclineRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php index ef6ee7fe1fc..be06b66d251 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Dismiss a reminder that has been triggered for an event in a user calendar. + * Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. * @param DismissReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/event-dismissreminder?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?DismissReminderRequestBuilderPostRequestConfiguration $req } /** - * Dismiss a reminder that has been triggered for an event in a user calendar. + * Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. * @param DismissReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php index b741d019a12..8d5f92dd05c 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -71,7 +71,7 @@ public function get(?ExtensionsRequestBuilderGetRequestConfiguration $requestCon } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. * @param Extension $body The request body * @param ExtensionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -91,7 +91,7 @@ public function post(Extension $body, ?ExtensionsRequestBuilderPostRequestConfig } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -112,7 +112,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. * @param Extension $body The request body * @param ExtensionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php index 00b16218446..778210be311 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. */ class ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.php index 4136b4875d3..7b4daaa294c 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?ExtensionItemRequestBuilderDeleteRequestConfiguration $r } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php index d4ba6fcbedf..21d7284877a 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. */ class ExtensionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.php index fb82bb4b825..8d9d6162bf8 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. * @param ForwardPostRequestBody $body The request body * @param ForwardRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ForwardPostRequestBody $body, ?ForwardRequestBuilderPostReq } /** - * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. * @param ForwardPostRequestBody $body The request body * @param ForwardRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaGetResponse.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..8c1561fbb47 --- /dev/null +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/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([Event::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, Event::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/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.php index 23ee824c3ae..7ea70801787 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. * @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0 Find more info here @@ -43,14 +43,14 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. * @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilderGetQueryParameters.php index bc0cc95491c..0c913d460cd 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. */ class DeltaRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaResponse.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaResponse.php deleted file mode 100644 index b61535f3482..00000000000 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Event::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, Event::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/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.php index dbf6f0da0c9..33a58b49ce0 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Accept the specified event in a user calendar. + * Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. * @param AcceptPostRequestBody $body The request body * @param AcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(AcceptPostRequestBody $body, ?AcceptRequestBuilderPostReque } /** - * Accept the specified event in a user calendar. + * Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. * @param AcceptPostRequestBody $body The request body * @param AcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php index c5095a33a29..bd2d86376cf 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of attachment objects attached to an event. + * Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. * @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/event-list-attachments?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?AttachmentsRequestBuilderGetRequestConfiguration $requestCo } /** - * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. * @param Attachment $body The request body * @param AttachmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConf } /** - * Retrieve a list of attachment objects attached to an event. + * Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. * @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } /** - * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. * @param Attachment $body The request body * @param AttachmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php index 8b1b64df16c..6b04c44e83d 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of attachment objects attached to an event. + * Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. */ class AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index aed8c7c2011..36fe2577b0a 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CreateUploadSessionPostRequestBody $body, ?CreateUploadSess } /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php index 1ae2fd73a81..804eea2fe63 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an attachment from a user calendar event, mail message, or group post. + * Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. * @param AttachmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/attachment-delete?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?AttachmentItemRequestBuilderGetRequestConfiguration $reques } /** - * Delete an attachment from a user calendar event, mail message, or group post. + * Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. * @param AttachmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.php index afd3665e1b2..c133b1f79ca 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. * @param CancelPostRequestBody $body The request body * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(CancelPostRequestBody $body, ?CancelRequestBuilderPostReque } /** - * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. * @param CancelPostRequestBody $body The request body * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.php index 8e131057aef..4cca6c3461c 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param DeclinePostRequestBody $body The request body * @param DeclineRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(DeclinePostRequestBody $body, ?DeclineRequestBuilderPostReq } /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param DeclinePostRequestBody $body The request body * @param DeclineRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php index 17dbc214c82..0164368005a 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Dismiss a reminder that has been triggered for an event in a user calendar. + * Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. * @param DismissReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/event-dismissreminder?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?DismissReminderRequestBuilderPostRequestConfiguration $req } /** - * Dismiss a reminder that has been triggered for an event in a user calendar. + * Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. * @param DismissReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php index 55f4d931c76..b7744c0ced8 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -71,7 +71,7 @@ public function get(?ExtensionsRequestBuilderGetRequestConfiguration $requestCon } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. * @param Extension $body The request body * @param ExtensionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -91,7 +91,7 @@ public function post(Extension $body, ?ExtensionsRequestBuilderPostRequestConfig } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -112,7 +112,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. * @param Extension $body The request body * @param ExtensionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php index e63147ce90f..155f4a9df83 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. */ class ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php index 35679b287d1..2131410ffc7 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?ExtensionItemRequestBuilderDeleteRequestConfiguration $r } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php index 2f6f90d7900..f62f70df70c 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. */ class ExtensionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.php index ee51866a365..37f804b9e6c 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. * @param ForwardPostRequestBody $body The request body * @param ForwardRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ForwardPostRequestBody $body, ?ForwardRequestBuilderPostReq } /** - * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. * @param ForwardPostRequestBody $body The request body * @param ForwardRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php index 53c3b2df412..5e830b158d2 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Postpone a reminder for an event in a user calendar until a new time. + * Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. * @param SnoozeReminderPostRequestBody $body The request body * @param SnoozeReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(SnoozeReminderPostRequestBody $body, ?SnoozeReminderRequest } /** - * Postpone a reminder for an event in a user calendar until a new time. + * Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. * @param SnoozeReminderPostRequestBody $body The request body * @param SnoozeReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php index fd55bf71512..5188372cc90 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param TentativelyAcceptPostRequestBody $body The request body * @param TentativelyAcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(TentativelyAcceptPostRequestBody $body, ?TentativelyAcceptR } /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param TentativelyAcceptPostRequestBody $body The request body * @param TentativelyAcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php index 4d99a837923..f8f3d1fee6f 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Postpone a reminder for an event in a user calendar until a new time. + * Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. * @param SnoozeReminderPostRequestBody $body The request body * @param SnoozeReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(SnoozeReminderPostRequestBody $body, ?SnoozeReminderRequest } /** - * Postpone a reminder for an event in a user calendar until a new time. + * Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. * @param SnoozeReminderPostRequestBody $body The request body * @param SnoozeReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php index 8654f9f60bf..81fc2a29a72 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param TentativelyAcceptPostRequestBody $body The request body * @param TentativelyAcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(TentativelyAcceptPostRequestBody $body, ?TentativelyAcceptR } /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param TentativelyAcceptPostRequestBody $body The request body * @param TentativelyAcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/Events/Delta/DeltaGetResponse.php b/src/Generated/Groups/Item/Calendar/Events/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..31d112b96d3 --- /dev/null +++ b/src/Generated/Groups/Item/Calendar/Events/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([Event::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, Event::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/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilder.php index 56fbd18cc09..b7f738b05e8 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. * @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0 Find more info here @@ -43,14 +43,14 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. * @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilderGetQueryParameters.php index 0e108ac6bb1..6aab7a40536 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. */ class DeltaRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Calendar/Events/Delta/DeltaResponse.php b/src/Generated/Groups/Item/Calendar/Events/Delta/DeltaResponse.php deleted file mode 100644 index d43b7bbc072..00000000000 --- a/src/Generated/Groups/Item/Calendar/Events/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Event::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, Event::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/Groups/Item/Calendar/Events/EventsRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/EventsRequestBuilder.php index ba63eb94de2..4849af061ce 100644 --- a/src/Generated/Groups/Item/Calendar/Events/EventsRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/EventsRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. + * Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. This API is supported in the following national cloud deployments. * @param EventsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/calendar-list-events?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?EventsRequestBuilderGetRequestConfiguration $requestConfigu } /** - * Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. + * Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. This API is supported in the following national cloud deployments. * @param Event $body The request body * @param EventsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(Event $body, ?EventsRequestBuilderPostRequestConfiguration } /** - * Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. + * Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. This API is supported in the following national cloud deployments. * @param EventsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?EventsRequestBuilderGetRequestConfigura } /** - * Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. + * Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. This API is supported in the following national cloud deployments. * @param Event $body The request body * @param EventsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/Events/EventsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Calendar/Events/EventsRequestBuilderGetQueryParameters.php index d2852dcfe98..5161ea282a5 100644 --- a/src/Generated/Groups/Item/Calendar/Events/EventsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Calendar/Events/EventsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. + * Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. This API is supported in the following national cloud deployments. */ class EventsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.php index a3134ef1226..58f4451d66d 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Accept the specified event in a user calendar. + * Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. * @param AcceptPostRequestBody $body The request body * @param AcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(AcceptPostRequestBody $body, ?AcceptRequestBuilderPostReque } /** - * Accept the specified event in a user calendar. + * Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. * @param AcceptPostRequestBody $body The request body * @param AcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.php index 35579593dc2..592758d5935 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of attachment objects attached to an event. + * Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. * @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/event-list-attachments?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?AttachmentsRequestBuilderGetRequestConfiguration $requestCo } /** - * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. * @param Attachment $body The request body * @param AttachmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConf } /** - * Retrieve a list of attachment objects attached to an event. + * Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. * @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } /** - * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. * @param Attachment $body The request body * @param AttachmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php index ab69b60e4dc..3aedef7a3d0 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of attachment objects attached to an event. + * Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. */ class AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index 8d20750a70a..d9eb9ea3230 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CreateUploadSessionPostRequestBody $body, ?CreateUploadSess } /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.php index 71078e66991..1a5ed067599 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an attachment from a user calendar event, mail message, or group post. + * Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. * @param AttachmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/attachment-delete?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?AttachmentItemRequestBuilderGetRequestConfiguration $reques } /** - * Delete an attachment from a user calendar event, mail message, or group post. + * Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. * @param AttachmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.php index c2a9eb027a2..1355857632a 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. * @param CancelPostRequestBody $body The request body * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(CancelPostRequestBody $body, ?CancelRequestBuilderPostReque } /** - * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. * @param CancelPostRequestBody $body The request body * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.php index 63d191b4a4b..5881191380a 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param DeclinePostRequestBody $body The request body * @param DeclineRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(DeclinePostRequestBody $body, ?DeclineRequestBuilderPostReq } /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param DeclinePostRequestBody $body The request body * @param DeclineRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.php index 3a8e455f68a..48c080c4908 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Dismiss a reminder that has been triggered for an event in a user calendar. + * Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. * @param DismissReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/event-dismissreminder?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?DismissReminderRequestBuilderPostRequestConfiguration $req } /** - * Dismiss a reminder that has been triggered for an event in a user calendar. + * Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. * @param DismissReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/EventItemRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/EventItemRequestBuilder.php index fc63e25a75b..18b9b2b29d7 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/EventItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/EventItemRequestBuilder.php @@ -156,7 +156,7 @@ public function get(?EventItemRequestBuilderGetRequestConfiguration $requestConf } /** - * Update an event object. + * Update an event object. This API is supported in the following national cloud deployments. * @param Event $body The request body * @param EventItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -214,7 +214,7 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig } /** - * Update an event object. + * Update an event object. This API is supported in the following national cloud deployments. * @param Event $body The request body * @param EventItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.php index 398a40c68b9..fc508f91a69 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -71,7 +71,7 @@ public function get(?ExtensionsRequestBuilderGetRequestConfiguration $requestCon } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. * @param Extension $body The request body * @param ExtensionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -91,7 +91,7 @@ public function post(Extension $body, ?ExtensionsRequestBuilderPostRequestConfig } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -112,7 +112,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. * @param Extension $body The request body * @param ExtensionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php index 8f4642bc381..8ce7696fb07 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. */ class ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.php index 790846b26fe..78b2ffa8fbd 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?ExtensionItemRequestBuilderDeleteRequestConfiguration $r } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php index bd65c6954a5..b24d7256454 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. */ class ExtensionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.php index e4438b386c5..e915bd04ea6 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. * @param ForwardPostRequestBody $body The request body * @param ForwardRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ForwardPostRequestBody $body, ?ForwardRequestBuilderPostReq } /** - * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. * @param ForwardPostRequestBody $body The request body * @param ForwardRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.php b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..f3405690514 --- /dev/null +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/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([Event::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, Event::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/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.php index 110b9c2d876..31c330724b1 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. * @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0 Find more info here @@ -43,14 +43,14 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. * @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilderGetQueryParameters.php index 2ef2805e46e..79cf566d037 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. */ class DeltaRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaResponse.php b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaResponse.php deleted file mode 100644 index cd07e7605a0..00000000000 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Event::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, Event::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/Groups/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.php index ae547c70ece..180f5735e7e 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Accept the specified event in a user calendar. + * Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. * @param AcceptPostRequestBody $body The request body * @param AcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(AcceptPostRequestBody $body, ?AcceptRequestBuilderPostReque } /** - * Accept the specified event in a user calendar. + * Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. * @param AcceptPostRequestBody $body The request body * @param AcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php index f51192c57b2..77ba6b3c29c 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of attachment objects attached to an event. + * Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. * @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/event-list-attachments?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?AttachmentsRequestBuilderGetRequestConfiguration $requestCo } /** - * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. * @param Attachment $body The request body * @param AttachmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConf } /** - * Retrieve a list of attachment objects attached to an event. + * Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. * @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } /** - * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. * @param Attachment $body The request body * @param AttachmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php index 03fe02ad629..e2549e0db07 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of attachment objects attached to an event. + * Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. */ class AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index 18419352e36..f7d02f9c3b5 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CreateUploadSessionPostRequestBody $body, ?CreateUploadSess } /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php index 643b6608c56..f9c93fc0786 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an attachment from a user calendar event, mail message, or group post. + * Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. * @param AttachmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/attachment-delete?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?AttachmentItemRequestBuilderGetRequestConfiguration $reques } /** - * Delete an attachment from a user calendar event, mail message, or group post. + * Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. * @param AttachmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.php index d2916351ec6..d9b80b60f5d 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. * @param CancelPostRequestBody $body The request body * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(CancelPostRequestBody $body, ?CancelRequestBuilderPostReque } /** - * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. * @param CancelPostRequestBody $body The request body * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.php index 0e05c8451f0..485f5cba86e 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param DeclinePostRequestBody $body The request body * @param DeclineRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(DeclinePostRequestBody $body, ?DeclineRequestBuilderPostReq } /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param DeclinePostRequestBody $body The request body * @param DeclineRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php index 6e8d731fb60..e14fbf8c480 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Dismiss a reminder that has been triggered for an event in a user calendar. + * Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. * @param DismissReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/event-dismissreminder?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?DismissReminderRequestBuilderPostRequestConfiguration $req } /** - * Dismiss a reminder that has been triggered for an event in a user calendar. + * Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. * @param DismissReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php index 1079d44088f..7a6e3bed9b5 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -71,7 +71,7 @@ public function get(?ExtensionsRequestBuilderGetRequestConfiguration $requestCon } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. * @param Extension $body The request body * @param ExtensionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -91,7 +91,7 @@ public function post(Extension $body, ?ExtensionsRequestBuilderPostRequestConfig } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -112,7 +112,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. * @param Extension $body The request body * @param ExtensionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php index eb94fdbe94e..631d21a619e 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. */ class ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php index 31ec729b122..8d27adfe4a7 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?ExtensionItemRequestBuilderDeleteRequestConfiguration $r } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php index 96d05d9fa69..1d2aa878d4b 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. */ class ExtensionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.php index 3ce37c8a3a0..2361046ca92 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. * @param ForwardPostRequestBody $body The request body * @param ForwardRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ForwardPostRequestBody $body, ?ForwardRequestBuilderPostReq } /** - * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. * @param ForwardPostRequestBody $body The request body * @param ForwardRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php index b13ef700e68..88507b05e65 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Postpone a reminder for an event in a user calendar until a new time. + * Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. * @param SnoozeReminderPostRequestBody $body The request body * @param SnoozeReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(SnoozeReminderPostRequestBody $body, ?SnoozeReminderRequest } /** - * Postpone a reminder for an event in a user calendar until a new time. + * Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. * @param SnoozeReminderPostRequestBody $body The request body * @param SnoozeReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php index 90f7e63d7a6..9f45a02ee0f 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param TentativelyAcceptPostRequestBody $body The request body * @param TentativelyAcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(TentativelyAcceptPostRequestBody $body, ?TentativelyAcceptR } /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param TentativelyAcceptPostRequestBody $body The request body * @param TentativelyAcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php index 24d6dadb5c6..9c2ddf9de7e 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Postpone a reminder for an event in a user calendar until a new time. + * Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. * @param SnoozeReminderPostRequestBody $body The request body * @param SnoozeReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(SnoozeReminderPostRequestBody $body, ?SnoozeReminderRequest } /** - * Postpone a reminder for an event in a user calendar until a new time. + * Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. * @param SnoozeReminderPostRequestBody $body The request body * @param SnoozeReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php index fd29d8e355e..d1686959435 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param TentativelyAcceptPostRequestBody $body The request body * @param TentativelyAcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(TentativelyAcceptPostRequestBody $body, ?TentativelyAcceptR } /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param TentativelyAcceptPostRequestBody $body The request body * @param TentativelyAcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/GetSchedule/GetSchedulePostResponse.php b/src/Generated/Groups/Item/Calendar/GetSchedule/GetSchedulePostResponse.php new file mode 100644 index 00000000000..db5c9abc87d --- /dev/null +++ b/src/Generated/Groups/Item/Calendar/GetSchedule/GetSchedulePostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ScheduleInformation::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, ScheduleInformation::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/Groups/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.php b/src/Generated/Groups/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.php index a3bc99d3761..b61f11b8476 100644 --- a/src/Generated/Groups/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + * Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. This API is supported in the following national cloud deployments. * @param GetSchedulePostRequestBody $body The request body * @param GetScheduleRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetSchedulePostRequestBody $body, ?GetScheduleRequestBuilde '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetScheduleResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetSchedulePostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + * Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. This API is supported in the following national cloud deployments. * @param GetSchedulePostRequestBody $body The request body * @param GetScheduleRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Calendar/GetSchedule/GetScheduleResponse.php b/src/Generated/Groups/Item/Calendar/GetSchedule/GetScheduleResponse.php deleted file mode 100644 index 284b3b96bd1..00000000000 --- a/src/Generated/Groups/Item/Calendar/GetSchedule/GetScheduleResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ScheduleInformation::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, ScheduleInformation::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/Groups/Item/CalendarView/Delta/DeltaGetResponse.php b/src/Generated/Groups/Item/CalendarView/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..2d99a67532b --- /dev/null +++ b/src/Generated/Groups/Item/CalendarView/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([Event::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, Event::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/Groups/Item/CalendarView/Delta/DeltaRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Delta/DeltaRequestBuilder.php index ef47b9c94a8..0eccca7113a 100644 --- a/src/Generated/Groups/Item/CalendarView/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Delta/DeltaRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. * @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0 Find more info here @@ -43,14 +43,14 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. * @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/CalendarView/Delta/DeltaRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/CalendarView/Delta/DeltaRequestBuilderGetQueryParameters.php index b29dbbb2c03..51bc2594651 100644 --- a/src/Generated/Groups/Item/CalendarView/Delta/DeltaRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/CalendarView/Delta/DeltaRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. */ class DeltaRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/CalendarView/Delta/DeltaResponse.php b/src/Generated/Groups/Item/CalendarView/Delta/DeltaResponse.php deleted file mode 100644 index ba581820496..00000000000 --- a/src/Generated/Groups/Item/CalendarView/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Event::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, Event::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/Groups/Item/CalendarView/Item/Accept/AcceptRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Accept/AcceptRequestBuilder.php index f755e6bb164..fef0a5ad85d 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Accept/AcceptRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Accept the specified event in a user calendar. + * Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. * @param AcceptPostRequestBody $body The request body * @param AcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(AcceptPostRequestBody $body, ?AcceptRequestBuilderPostReque } /** - * Accept the specified event in a user calendar. + * Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. * @param AcceptPostRequestBody $body The request body * @param AcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php index 7db6e8570fc..55ff09b3fa1 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of attachment objects attached to an event. + * Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. * @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/event-list-attachments?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?AttachmentsRequestBuilderGetRequestConfiguration $requestCo } /** - * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. * @param Attachment $body The request body * @param AttachmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConf } /** - * Retrieve a list of attachment objects attached to an event. + * Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. * @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } /** - * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. * @param Attachment $body The request body * @param AttachmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php index 6302d9202d3..c20859c56cb 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of attachment objects attached to an event. + * Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. */ class AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index cef3f0455c0..1142aad6226 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CreateUploadSessionPostRequestBody $body, ?CreateUploadSess } /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.php index be1e59b13b9..03c5719f11c 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an attachment from a user calendar event, mail message, or group post. + * Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. * @param AttachmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/attachment-delete?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?AttachmentItemRequestBuilderGetRequestConfiguration $reques } /** - * Delete an attachment from a user calendar event, mail message, or group post. + * Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. * @param AttachmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/CalendarView/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Cancel/CancelRequestBuilder.php index bb1205999e7..733d9f88c91 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Cancel/CancelRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. * @param CancelPostRequestBody $body The request body * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(CancelPostRequestBody $body, ?CancelRequestBuilderPostReque } /** - * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. * @param CancelPostRequestBody $body The request body * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/CalendarView/Item/Decline/DeclineRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Decline/DeclineRequestBuilder.php index f848670fd6b..1cfb438e15d 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Decline/DeclineRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param DeclinePostRequestBody $body The request body * @param DeclineRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(DeclinePostRequestBody $body, ?DeclineRequestBuilderPostReq } /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param DeclinePostRequestBody $body The request body * @param DeclineRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php index ab294adbe19..1a67ee223c3 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Dismiss a reminder that has been triggered for an event in a user calendar. + * Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. * @param DismissReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/event-dismissreminder?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?DismissReminderRequestBuilderPostRequestConfiguration $req } /** - * Dismiss a reminder that has been triggered for an event in a user calendar. + * Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. * @param DismissReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php index edec3c3702b..7bb4dc46eff 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -71,7 +71,7 @@ public function get(?ExtensionsRequestBuilderGetRequestConfiguration $requestCon } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. * @param Extension $body The request body * @param ExtensionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -91,7 +91,7 @@ public function post(Extension $body, ?ExtensionsRequestBuilderPostRequestConfig } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -112,7 +112,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. * @param Extension $body The request body * @param ExtensionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php index eb7f0e3df49..9d01a25d801 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. */ class ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.php index 01b2e09e676..a21fe438beb 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?ExtensionItemRequestBuilderDeleteRequestConfiguration $r } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php index f500032fb21..7a26618d07d 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. */ class ExtensionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/CalendarView/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Forward/ForwardRequestBuilder.php index da67f7c6b34..c879a1ed242 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Forward/ForwardRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. * @param ForwardPostRequestBody $body The request body * @param ForwardRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ForwardPostRequestBody $body, ?ForwardRequestBuilderPostReq } /** - * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. * @param ForwardPostRequestBody $body The request body * @param ForwardRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.php b/src/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..961ec3d1a76 --- /dev/null +++ b/src/Generated/Groups/Item/CalendarView/Item/Instances/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([Event::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, Event::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/Groups/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.php index 222833c52cb..6166c7da58e 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. * @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0 Find more info here @@ -43,14 +43,14 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. * @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilderGetQueryParameters.php index 6fa2d29ae86..f9f604cc820 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. */ class DeltaRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaResponse.php b/src/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaResponse.php deleted file mode 100644 index 4c5324b8773..00000000000 --- a/src/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Event::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, Event::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/Groups/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.php index 687be2202e2..bfdbebe271c 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Accept the specified event in a user calendar. + * Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. * @param AcceptPostRequestBody $body The request body * @param AcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(AcceptPostRequestBody $body, ?AcceptRequestBuilderPostReque } /** - * Accept the specified event in a user calendar. + * Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. * @param AcceptPostRequestBody $body The request body * @param AcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php index eecaeca8475..af62d70f409 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of attachment objects attached to an event. + * Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. * @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/event-list-attachments?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?AttachmentsRequestBuilderGetRequestConfiguration $requestCo } /** - * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. * @param Attachment $body The request body * @param AttachmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConf } /** - * Retrieve a list of attachment objects attached to an event. + * Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. * @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } /** - * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. * @param Attachment $body The request body * @param AttachmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php index d0d855bdb29..f0738c4f9f6 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of attachment objects attached to an event. + * Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. */ class AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index b653c99603c..372710ac3b7 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CreateUploadSessionPostRequestBody $body, ?CreateUploadSess } /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php index 8570f351e96..f8b24ae0525 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an attachment from a user calendar event, mail message, or group post. + * Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. * @param AttachmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/attachment-delete?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?AttachmentItemRequestBuilderGetRequestConfiguration $reques } /** - * Delete an attachment from a user calendar event, mail message, or group post. + * Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. * @param AttachmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.php index 9d68ceb207c..9e7d56a53b9 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. * @param CancelPostRequestBody $body The request body * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(CancelPostRequestBody $body, ?CancelRequestBuilderPostReque } /** - * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. * @param CancelPostRequestBody $body The request body * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.php index f2949d4332f..0793c1b5b16 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param DeclinePostRequestBody $body The request body * @param DeclineRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(DeclinePostRequestBody $body, ?DeclineRequestBuilderPostReq } /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param DeclinePostRequestBody $body The request body * @param DeclineRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php index 37b3d6f700c..bd76d30c95d 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Dismiss a reminder that has been triggered for an event in a user calendar. + * Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. * @param DismissReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/event-dismissreminder?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?DismissReminderRequestBuilderPostRequestConfiguration $req } /** - * Dismiss a reminder that has been triggered for an event in a user calendar. + * Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. * @param DismissReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php index 9ce005940b7..3b7c7fcb948 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -71,7 +71,7 @@ public function get(?ExtensionsRequestBuilderGetRequestConfiguration $requestCon } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. * @param Extension $body The request body * @param ExtensionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -91,7 +91,7 @@ public function post(Extension $body, ?ExtensionsRequestBuilderPostRequestConfig } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -112,7 +112,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. * @param Extension $body The request body * @param ExtensionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php index 6ec72d9bdb2..72fa10723aa 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. */ class ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php index d34e1946b59..78bc4d66b37 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?ExtensionItemRequestBuilderDeleteRequestConfiguration $r } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php index 222ebb73b76..288897df194 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. */ class ExtensionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.php index f46279ce8b9..c4ffb7919d6 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. * @param ForwardPostRequestBody $body The request body * @param ForwardRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ForwardPostRequestBody $body, ?ForwardRequestBuilderPostReq } /** - * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. * @param ForwardPostRequestBody $body The request body * @param ForwardRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php index 491839bc5a6..bbec16d7c70 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Postpone a reminder for an event in a user calendar until a new time. + * Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. * @param SnoozeReminderPostRequestBody $body The request body * @param SnoozeReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(SnoozeReminderPostRequestBody $body, ?SnoozeReminderRequest } /** - * Postpone a reminder for an event in a user calendar until a new time. + * Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. * @param SnoozeReminderPostRequestBody $body The request body * @param SnoozeReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php index f0e75b3aa1a..184e7895f7c 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param TentativelyAcceptPostRequestBody $body The request body * @param TentativelyAcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(TentativelyAcceptPostRequestBody $body, ?TentativelyAcceptR } /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param TentativelyAcceptPostRequestBody $body The request body * @param TentativelyAcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php index 42cd7b073f3..42a4a156b31 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Postpone a reminder for an event in a user calendar until a new time. + * Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. * @param SnoozeReminderPostRequestBody $body The request body * @param SnoozeReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(SnoozeReminderPostRequestBody $body, ?SnoozeReminderRequest } /** - * Postpone a reminder for an event in a user calendar until a new time. + * Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. * @param SnoozeReminderPostRequestBody $body The request body * @param SnoozeReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php index f49d5c7347b..3623ecbb823 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param TentativelyAcceptPostRequestBody $body The request body * @param TentativelyAcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(TentativelyAcceptPostRequestBody $body, ?TentativelyAcceptR } /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param TentativelyAcceptPostRequestBody $body The request body * @param TentativelyAcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppPostResponse.php b/src/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppPostResponse.php new file mode 100644 index 00000000000..e00d69bc940 --- /dev/null +++ b/src/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ResourceSpecificPermissionGrant::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, ResourceSpecificPermissionGrant::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/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppRequestBuilder.php b/src/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppRequestBuilder.php index 445bbc1ebba..5f8ee2c2648 100644 --- a/src/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppRequestBuilder.php +++ b/src/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppRequestBuilder.php @@ -42,7 +42,7 @@ public function post(?CheckGrantedPermissionsForAppRequestBuilderPostRequestConf '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CheckGrantedPermissionsForAppResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CheckGrantedPermissionsForAppPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppResponse.php b/src/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppResponse.php deleted file mode 100644 index 3d23491d384..00000000000 --- a/src/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ResourceSpecificPermissionGrant::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, ResourceSpecificPermissionGrant::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/Groups/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php b/src/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php new file mode 100644 index 00000000000..6ec621625ed --- /dev/null +++ b/src/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Groups/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php b/src/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php index d9d9fc78d2b..db76d3b61c5 100644 --- a/src/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php +++ b/src/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. * @param CheckMemberGroupsPostRequestBody $body The request body * @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberGroupsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberGroupsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. * @param CheckMemberGroupsPostRequestBody $body The request body * @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsResponse.php b/src/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsResponse.php deleted file mode 100644 index ddf9c76feb4..00000000000 --- a/src/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Groups/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php b/src/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php new file mode 100644 index 00000000000..da9deb8f395 --- /dev/null +++ b/src/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Groups/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php b/src/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php index f3060d93210..3953de218fd 100644 --- a/src/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php +++ b/src/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php @@ -43,7 +43,7 @@ public function post(CheckMemberObjectsPostRequestBody $body, ?CheckMemberObject '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberObjectsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberObjectsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsResponse.php b/src/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsResponse.php deleted file mode 100644 index d08abe73c7c..00000000000 --- a/src/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Groups/Item/Conversations/ConversationsRequestBuilder.php b/src/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.php index 17df5f7c1fc..4e096d727dd 100644 --- a/src/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the list of conversations in this group. + * Retrieve the list of conversations in this group. This API is supported in the following national cloud deployments. * @param ConversationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/group-list-conversations?view=graph-rest-1.0 Find more info here @@ -72,11 +72,11 @@ public function get(?ConversationsRequestBuilderGetRequestConfiguration $request } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Use reply thread or reply post to further post to that conversation. This API is supported in the following national cloud deployments. * @param Conversation $body The request body * @param ConversationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/group-post-conversations?view=graph-rest-1.0 Find more info here */ public function post(Conversation $body, ?ConversationsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -92,7 +92,7 @@ public function post(Conversation $body, ?ConversationsRequestBuilderPostRequest } /** - * Retrieve the list of conversations in this group. + * Retrieve the list of conversations in this group. This API is supported in the following national cloud deployments. * @param ConversationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ConversationsRequestBuilderGetRequestCo } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Use reply thread or reply post to further post to that conversation. This API is supported in the following national cloud deployments. * @param Conversation $body The request body * @param ConversationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Conversations/ConversationsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Conversations/ConversationsRequestBuilderGetQueryParameters.php index 105784ac834..fc50a94cce3 100644 --- a/src/Generated/Groups/Item/Conversations/ConversationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Conversations/ConversationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the list of conversations in this group. + * Retrieve the list of conversations in this group. This API is supported in the following national cloud deployments. */ class ConversationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.php index 84f63e44cb4..b0eebbeabf1 100644 --- a/src/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.php @@ -40,10 +40,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete conversation. + * This API is supported in the following national cloud deployments. * @param ConversationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/conversation-delete?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/group-delete-conversation?view=graph-rest-1.0 Find more info here */ public function delete(?ConversationItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -59,7 +59,7 @@ public function delete(?ConversationItemRequestBuilderDeleteRequestConfiguration } /** - * The group's conversations. + * This API is supported in the following national cloud deployments. * @param ConversationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/group-get-conversation?view=graph-rest-1.0 Find more info here @@ -78,7 +78,7 @@ public function get(?ConversationItemRequestBuilderGetRequestConfiguration $requ } /** - * Delete conversation. + * This API is supported in the following national cloud deployments. * @param ConversationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -95,7 +95,7 @@ public function toDeleteRequestInformation(?ConversationItemRequestBuilderDelete } /** - * The group's conversations. + * This API is supported in the following national cloud deployments. * @param ConversationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilderGetQueryParameters.php index f564a792d29..fd5404b6157 100644 --- a/src/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The group's conversations. + * This API is supported in the following national cloud deployments. */ class ConversationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.php index ece2a733d33..a9c1bf913bf 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of attachment objects attached to a post. + * Retrieve a list of attachment objects attached to a post. This API is supported in the following national cloud deployments. * @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/post-list-attachments?view=graph-rest-1.0 Find more info here @@ -99,7 +99,7 @@ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConf } /** - * Retrieve a list of attachment objects attached to a post. + * Retrieve a list of attachment objects attached to a post. This API is supported in the following national cloud deployments. * @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php index bc56fe3c55a..092c2a1b5a3 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of attachment objects attached to a post. + * Retrieve a list of attachment objects attached to a post. This API is supported in the following national cloud deployments. */ class AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index e46bee106d2..11efb77eb0e 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CreateUploadSessionPostRequestBody $body, ?CreateUploadSess } /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.php index 6a82248be3f..e4f112778d2 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(Extension $body, ?ExtensionsRequestBuilderPostRequestConfig } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php index 4465d4e355b..c5a856d5505 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. */ class ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.php index 5cd831e5f9e..8125d76a0b5 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?ExtensionItemRequestBuilderDeleteRequestConfiguration $r } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?ExtensionItemRequestBuilderGetRequestConfiguration $request } /** - * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. This API is supported in the following national cloud deployments. * @param Extension $body The request body * @param ExtensionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -127,7 +127,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } /** - * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. This API is supported in the following national cloud deployments. * @param Extension $body The request body * @param ExtensionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php index 9f3b67a0dbf..20873d2f9fc 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. */ class ExtensionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.php index 4ce43db6b89..0ca4cece0b2 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + * Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. * @param ForwardPostRequestBody $body The request body * @param ForwardRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ForwardPostRequestBody $body, ?ForwardRequestBuilderPostReq } /** - * Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + * Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. * @param ForwardPostRequestBody $body The request body * @param ForwardRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.php index 2bd027006c9..7751f477828 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of attachment objects attached to a post. + * Retrieve a list of attachment objects attached to a post. This API is supported in the following national cloud deployments. * @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/post-list-attachments?view=graph-rest-1.0 Find more info here @@ -99,7 +99,7 @@ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConf } /** - * Retrieve a list of attachment objects attached to a post. + * Retrieve a list of attachment objects attached to a post. This API is supported in the following national cloud deployments. * @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilderGetQueryParameters.php index 6c8668c06f6..33df379bc0c 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of attachment objects attached to a post. + * Retrieve a list of attachment objects attached to a post. This API is supported in the following national cloud deployments. */ class AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index fbbe2febd9c..cd3e294e9ce 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CreateUploadSessionPostRequestBody $body, ?CreateUploadSess } /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.php index 6aa8edde989..e903b9e88d1 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(Extension $body, ?ExtensionsRequestBuilderPostRequestConfig } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilderGetQueryParameters.php index c170a900a12..fe2611c5d98 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. */ class ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.php index 9c7cca723e0..86b1157afe2 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?ExtensionItemRequestBuilderDeleteRequestConfiguration $r } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?ExtensionItemRequestBuilderGetRequestConfiguration $request } /** - * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. This API is supported in the following national cloud deployments. * @param Extension $body The request body * @param ExtensionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -127,7 +127,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } /** - * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. This API is supported in the following national cloud deployments. * @param Extension $body The request body * @param ExtensionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php index 49fadfcc9e4..354c20301de 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. */ class ExtensionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.php index 40d130280b8..6f61dc9db6a 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + * Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. * @param ForwardPostRequestBody $body The request body * @param ForwardRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ForwardPostRequestBody $body, ?ForwardRequestBuilderPostReq } /** - * Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + * Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. * @param ForwardPostRequestBody $body The request body * @param ForwardRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.php index 56fa76bc9f4..7357662494b 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.php @@ -31,11 +31,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. * @param ReplyPostRequestBody $body The request body * @param ReplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/post-reply?view=graph-rest-1.0 Find more info here */ public function post(ReplyPostRequestBody $body, ?ReplyRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -51,7 +51,7 @@ public function post(ReplyPostRequestBody $body, ?ReplyRequestBuilderPostRequest } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. * @param ReplyPostRequestBody $body The request body * @param ReplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.php index 42930038ca4..01857f04182 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.php @@ -31,11 +31,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. * @param ReplyPostRequestBody $body The request body * @param ReplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/post-reply?view=graph-rest-1.0 Find more info here */ public function post(ReplyPostRequestBody $body, ?ReplyRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -51,7 +51,7 @@ public function post(ReplyPostRequestBody $body, ?ReplyRequestBuilderPostRequest } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. * @param ReplyPostRequestBody $body The request body * @param ReplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.php index 8958f0e5ab1..711bd6eee2e 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.php @@ -52,10 +52,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. This API is supported in the following national cloud deployments. * @param PostsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/conversationthread-list-posts?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/post-get?view=graph-rest-1.0 Find more info here */ public function get(?PostsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -71,7 +71,7 @@ public function get(?PostsRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. This API is supported in the following national cloud deployments. * @param PostsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilderGetQueryParameters.php index 29feeb1465f..c8633c15153 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. This API is supported in the following national cloud deployments. */ class PostsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.php index ed59c4ca83e..d499851be9f 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.php @@ -31,11 +31,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. This API is supported in the following national cloud deployments. * @param ReplyPostRequestBody $body The request body * @param ReplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/post-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/conversationthread-reply?view=graph-rest-1.0 Find more info here */ public function post(ReplyPostRequestBody $body, ?ReplyRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -51,7 +51,7 @@ public function post(ReplyPostRequestBody $body, ?ReplyRequestBuilderPostRequest } /** - * Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. This API is supported in the following national cloud deployments. * @param ReplyPostRequestBody $body The request body * @param ReplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/ThreadsRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/ThreadsRequestBuilder.php index 02c6b9adc54..db00ecee426 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/ThreadsRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/ThreadsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get all the threads in a group conversation. Note: You can also get all the threads of a group. + * Get all the threads in a group conversation. Note: You can also get all the threads of a group. This API is supported in the following national cloud deployments. * @param ThreadsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/conversation-list-threads?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ThreadsRequestBuilderGetRequestConfiguration $requestConfig } /** - * Create a new thread in the specified conversation. A thread and post are created as specified. Use reply thread to further post to that thread. Or, if you get the post ID, you can also reply to that post in that thread. Note: You can also start a new conversation by first creating a thread. + * Create a new thread in the specified conversation. A thread and post are created as specified. Use reply thread to further post to that thread. Or, if you get the post ID, you can also reply to that post in that thread. Note: You can also start a new conversation by first creating a thread. This API is supported in the following national cloud deployments. * @param ConversationThread $body The request body * @param ThreadsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(ConversationThread $body, ?ThreadsRequestBuilderPostRequest } /** - * Get all the threads in a group conversation. Note: You can also get all the threads of a group. + * Get all the threads in a group conversation. Note: You can also get all the threads of a group. This API is supported in the following national cloud deployments. * @param ThreadsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ThreadsRequestBuilderGetRequestConfigur } /** - * Create a new thread in the specified conversation. A thread and post are created as specified. Use reply thread to further post to that thread. Or, if you get the post ID, you can also reply to that post in that thread. Note: You can also start a new conversation by first creating a thread. + * Create a new thread in the specified conversation. A thread and post are created as specified. Use reply thread to further post to that thread. Or, if you get the post ID, you can also reply to that post in that thread. Note: You can also start a new conversation by first creating a thread. This API is supported in the following national cloud deployments. * @param ConversationThread $body The request body * @param ThreadsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/ThreadsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Conversations/Item/Threads/ThreadsRequestBuilderGetQueryParameters.php index b4817777b11..72b0bcd9a40 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/ThreadsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/ThreadsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get all the threads in a group conversation. Note: You can also get all the threads of a group. + * Get all the threads in a group conversation. Note: You can also get all the threads of a group. This API is supported in the following national cloud deployments. */ class ThreadsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Events/Delta/DeltaGetResponse.php b/src/Generated/Groups/Item/Events/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..3fc7c714468 --- /dev/null +++ b/src/Generated/Groups/Item/Events/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([Event::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, Event::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/Groups/Item/Events/Delta/DeltaRequestBuilder.php b/src/Generated/Groups/Item/Events/Delta/DeltaRequestBuilder.php index bd44539b07a..facfdfcdaec 100644 --- a/src/Generated/Groups/Item/Events/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Delta/DeltaRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. * @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0 Find more info here @@ -43,14 +43,14 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. * @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Events/Delta/DeltaRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Events/Delta/DeltaRequestBuilderGetQueryParameters.php index 2b2d7314f9c..0e7d9efd3a6 100644 --- a/src/Generated/Groups/Item/Events/Delta/DeltaRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Events/Delta/DeltaRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. */ class DeltaRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Events/Delta/DeltaResponse.php b/src/Generated/Groups/Item/Events/Delta/DeltaResponse.php deleted file mode 100644 index a5ba01ee3a4..00000000000 --- a/src/Generated/Groups/Item/Events/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Event::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, Event::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/Groups/Item/Events/EventsRequestBuilder.php b/src/Generated/Groups/Item/Events/EventsRequestBuilder.php index 269f3faa3dc..fa17fc90b6b 100644 --- a/src/Generated/Groups/Item/Events/EventsRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/EventsRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of event objects. + * Retrieve a list of event objects. This API is supported in the following national cloud deployments. * @param EventsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/group-list-events?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?EventsRequestBuilderGetRequestConfiguration $requestConfigu } /** - * Use this API to create a new event. + * Use this API to create a new event. This API is supported in the following national cloud deployments. * @param Event $body The request body * @param EventsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(Event $body, ?EventsRequestBuilderPostRequestConfiguration } /** - * Retrieve a list of event objects. + * Retrieve a list of event objects. This API is supported in the following national cloud deployments. * @param EventsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?EventsRequestBuilderGetRequestConfigura } /** - * Use this API to create a new event. + * Use this API to create a new event. This API is supported in the following national cloud deployments. * @param Event $body The request body * @param EventsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Events/EventsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Events/EventsRequestBuilderGetQueryParameters.php index 2cf17ee0e95..21fecb030bf 100644 --- a/src/Generated/Groups/Item/Events/EventsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Events/EventsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of event objects. + * Retrieve a list of event objects. This API is supported in the following national cloud deployments. */ class EventsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Events/Item/Accept/AcceptRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Accept/AcceptRequestBuilder.php index 0f09ecc99a2..0480ead3863 100644 --- a/src/Generated/Groups/Item/Events/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Accept/AcceptRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Accept the specified event in a user calendar. + * Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. * @param AcceptPostRequestBody $body The request body * @param AcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(AcceptPostRequestBody $body, ?AcceptRequestBuilderPostReque } /** - * Accept the specified event in a user calendar. + * Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. * @param AcceptPostRequestBody $body The request body * @param AcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.php index 59e9a24a014..3a90392c7ec 100644 --- a/src/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of attachment objects attached to an event. + * Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. * @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/event-list-attachments?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?AttachmentsRequestBuilderGetRequestConfiguration $requestCo } /** - * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. * @param Attachment $body The request body * @param AttachmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConf } /** - * Retrieve a list of attachment objects attached to an event. + * Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. * @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } /** - * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. * @param Attachment $body The request body * @param AttachmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php index 8f50fec1d88..a00768cba47 100644 --- a/src/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of attachment objects attached to an event. + * Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. */ class AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index 9aa430258ee..2e7e6bc05cf 100644 --- a/src/Generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CreateUploadSessionPostRequestBody $body, ?CreateUploadSess } /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.php index c21cd929a51..2c6f0d49a38 100644 --- a/src/Generated/Groups/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an attachment from a user calendar event, mail message, or group post. + * Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. * @param AttachmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/attachment-delete?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?AttachmentItemRequestBuilderGetRequestConfiguration $reques } /** - * Delete an attachment from a user calendar event, mail message, or group post. + * Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. * @param AttachmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Events/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Cancel/CancelRequestBuilder.php index b937f83fe74..f203e2be706 100644 --- a/src/Generated/Groups/Item/Events/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Cancel/CancelRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. * @param CancelPostRequestBody $body The request body * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(CancelPostRequestBody $body, ?CancelRequestBuilderPostReque } /** - * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. * @param CancelPostRequestBody $body The request body * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Events/Item/Decline/DeclineRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Decline/DeclineRequestBuilder.php index 43af6fe1b99..d5164fa4242 100644 --- a/src/Generated/Groups/Item/Events/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Decline/DeclineRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param DeclinePostRequestBody $body The request body * @param DeclineRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(DeclinePostRequestBody $body, ?DeclineRequestBuilderPostReq } /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param DeclinePostRequestBody $body The request body * @param DeclineRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.php index 6b3d3078b71..4750acd92e1 100644 --- a/src/Generated/Groups/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Dismiss a reminder that has been triggered for an event in a user calendar. + * Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. * @param DismissReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/event-dismissreminder?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?DismissReminderRequestBuilderPostRequestConfiguration $req } /** - * Dismiss a reminder that has been triggered for an event in a user calendar. + * Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. * @param DismissReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Events/Item/EventItemRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/EventItemRequestBuilder.php index 3bd191e4d63..5eeac1d75fa 100644 --- a/src/Generated/Groups/Item/Events/Item/EventItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/EventItemRequestBuilder.php @@ -120,7 +120,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an event object. + * Delete an event object. This API is supported in the following national cloud deployments. * @param EventItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/group-delete-event?view=graph-rest-1.0 Find more info here @@ -139,7 +139,7 @@ public function delete(?EventItemRequestBuilderDeleteRequestConfiguration $reque } /** - * Get an event object. + * Get an event object. This API is supported in the following national cloud deployments. * @param EventItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/group-get-event?view=graph-rest-1.0 Find more info here @@ -177,7 +177,7 @@ public function patch(Event $body, ?EventItemRequestBuilderPatchRequestConfigura } /** - * Delete an event object. + * Delete an event object. This API is supported in the following national cloud deployments. * @param EventItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -194,7 +194,7 @@ public function toDeleteRequestInformation(?EventItemRequestBuilderDeleteRequest } /** - * Get an event object. + * Get an event object. This API is supported in the following national cloud deployments. * @param EventItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Events/Item/EventItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Events/Item/EventItemRequestBuilderGetQueryParameters.php index d5f1231710c..f874f92e9d6 100644 --- a/src/Generated/Groups/Item/Events/Item/EventItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Events/Item/EventItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an event object. + * Get an event object. This API is supported in the following national cloud deployments. */ class EventItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilder.php index cc2d8c77727..7864021a435 100644 --- a/src/Generated/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -71,7 +71,7 @@ public function get(?ExtensionsRequestBuilderGetRequestConfiguration $requestCon } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. * @param Extension $body The request body * @param ExtensionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -91,7 +91,7 @@ public function post(Extension $body, ?ExtensionsRequestBuilderPostRequestConfig } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -112,7 +112,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. * @param Extension $body The request body * @param ExtensionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php index b84eb9e6077..245a30dccc0 100644 --- a/src/Generated/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. */ class ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.php index 69d961af795..7a7810a6f7a 100644 --- a/src/Generated/Groups/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?ExtensionItemRequestBuilderDeleteRequestConfiguration $r } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php index 8e0f43e45fc..f97991fb74c 100644 --- a/src/Generated/Groups/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. */ class ExtensionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Events/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Forward/ForwardRequestBuilder.php index 0a7a89e2823..437c6939888 100644 --- a/src/Generated/Groups/Item/Events/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Forward/ForwardRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. * @param ForwardPostRequestBody $body The request body * @param ForwardRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ForwardPostRequestBody $body, ?ForwardRequestBuilderPostReq } /** - * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. * @param ForwardPostRequestBody $body The request body * @param ForwardRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaGetResponse.php b/src/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..8dea2cb4144 --- /dev/null +++ b/src/Generated/Groups/Item/Events/Item/Instances/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([Event::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, Event::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/Groups/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.php index 7ce86866779..c61d97f88be 100644 --- a/src/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. * @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0 Find more info here @@ -43,14 +43,14 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. * @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaRequestBuilderGetQueryParameters.php index 86a09080827..20219f2a2d6 100644 --- a/src/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. */ class DeltaRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaResponse.php b/src/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaResponse.php deleted file mode 100644 index 8dae98c0a84..00000000000 --- a/src/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Event::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, Event::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/Groups/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.php index ca7e729cda8..3d771afd240 100644 --- a/src/Generated/Groups/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Accept the specified event in a user calendar. + * Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. * @param AcceptPostRequestBody $body The request body * @param AcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(AcceptPostRequestBody $body, ?AcceptRequestBuilderPostReque } /** - * Accept the specified event in a user calendar. + * Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. * @param AcceptPostRequestBody $body The request body * @param AcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php index f073269d83b..cb014f4f9e7 100644 --- a/src/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of attachment objects attached to an event. + * Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. * @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/event-list-attachments?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?AttachmentsRequestBuilderGetRequestConfiguration $requestCo } /** - * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. * @param Attachment $body The request body * @param AttachmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConf } /** - * Retrieve a list of attachment objects attached to an event. + * Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. * @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } /** - * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. * @param Attachment $body The request body * @param AttachmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php index 26638bae8c7..e7ecf1b31e9 100644 --- a/src/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of attachment objects attached to an event. + * Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. */ class AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index ee1b999dd61..4de007e6ead 100644 --- a/src/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CreateUploadSessionPostRequestBody $body, ?CreateUploadSess } /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php index 82c1a69f9b4..e98636ecf4f 100644 --- a/src/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an attachment from a user calendar event, mail message, or group post. + * Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. * @param AttachmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/attachment-delete?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?AttachmentItemRequestBuilderGetRequestConfiguration $reques } /** - * Delete an attachment from a user calendar event, mail message, or group post. + * Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. * @param AttachmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.php index af302763cb7..f0e8a99243d 100644 --- a/src/Generated/Groups/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. * @param CancelPostRequestBody $body The request body * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(CancelPostRequestBody $body, ?CancelRequestBuilderPostReque } /** - * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + * This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. * @param CancelPostRequestBody $body The request body * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.php index f0f8ae70503..807394863ec 100644 --- a/src/Generated/Groups/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param DeclinePostRequestBody $body The request body * @param DeclineRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(DeclinePostRequestBody $body, ?DeclineRequestBuilderPostReq } /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param DeclinePostRequestBody $body The request body * @param DeclineRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php index 08015c5a34c..b09bbd6429d 100644 --- a/src/Generated/Groups/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Dismiss a reminder that has been triggered for an event in a user calendar. + * Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. * @param DismissReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/event-dismissreminder?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?DismissReminderRequestBuilderPostRequestConfiguration $req } /** - * Dismiss a reminder that has been triggered for an event in a user calendar. + * Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. * @param DismissReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php index ed11a854586..c6581fd6b6a 100644 --- a/src/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -71,7 +71,7 @@ public function get(?ExtensionsRequestBuilderGetRequestConfiguration $requestCon } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. * @param Extension $body The request body * @param ExtensionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -91,7 +91,7 @@ public function post(Extension $body, ?ExtensionsRequestBuilderPostRequestConfig } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -112,7 +112,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. * @param Extension $body The request body * @param ExtensionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php index db33369b88f..533ab7701dc 100644 --- a/src/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. */ class ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php index 29214b83586..a234a719324 100644 --- a/src/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?ExtensionItemRequestBuilderDeleteRequestConfiguration $r } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php index 8666d94dda8..10543dcfa87 100644 --- a/src/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. */ class ExtensionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.php index f74572a42ae..2162a2dd689 100644 --- a/src/Generated/Groups/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. * @param ForwardPostRequestBody $body The request body * @param ForwardRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ForwardPostRequestBody $body, ?ForwardRequestBuilderPostReq } /** - * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + * This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. * @param ForwardPostRequestBody $body The request body * @param ForwardRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php index 017279f68ca..cc4e4b783c3 100644 --- a/src/Generated/Groups/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Postpone a reminder for an event in a user calendar until a new time. + * Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. * @param SnoozeReminderPostRequestBody $body The request body * @param SnoozeReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(SnoozeReminderPostRequestBody $body, ?SnoozeReminderRequest } /** - * Postpone a reminder for an event in a user calendar until a new time. + * Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. * @param SnoozeReminderPostRequestBody $body The request body * @param SnoozeReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php index d3779c9a9bb..44a25d3266c 100644 --- a/src/Generated/Groups/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param TentativelyAcceptPostRequestBody $body The request body * @param TentativelyAcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(TentativelyAcceptPostRequestBody $body, ?TentativelyAcceptR } /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param TentativelyAcceptPostRequestBody $body The request body * @param TentativelyAcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php index 854c8113ce0..c8869ebae71 100644 --- a/src/Generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Postpone a reminder for an event in a user calendar until a new time. + * Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. * @param SnoozeReminderPostRequestBody $body The request body * @param SnoozeReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(SnoozeReminderPostRequestBody $body, ?SnoozeReminderRequest } /** - * Postpone a reminder for an event in a user calendar until a new time. + * Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. * @param SnoozeReminderPostRequestBody $body The request body * @param SnoozeReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php index 5c09e93bdc9..99664da7b1e 100644 --- a/src/Generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param TentativelyAcceptPostRequestBody $body The request body * @param TentativelyAcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(TentativelyAcceptPostRequestBody $body, ?TentativelyAcceptR } /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. * @param TentativelyAcceptPostRequestBody $body The request body * @param TentativelyAcceptRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsPostResponse.php b/src/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsPostResponse.php new file mode 100644 index 00000000000..40b695d2076 --- /dev/null +++ b/src/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Groups/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index b83a1b3f2df..64ce0fecf45 100644 --- a/src/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsReque '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetMemberGroupsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetMemberGroupsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsResponse.php b/src/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsResponse.php deleted file mode 100644 index 54db460dc34..00000000000 --- a/src/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Groups/Item/GetMemberObjects/GetMemberObjectsPostResponse.php b/src/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsPostResponse.php new file mode 100644 index 00000000000..c6b0ed7a6e1 --- /dev/null +++ b/src/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Groups/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php b/src/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php index 28df5802c5b..1dbc9891588 100644 --- a/src/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php +++ b/src/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. * @param GetMemberObjectsPostRequestBody $body The request body * @param GetMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetMemberObjectsPostRequestBody $body, ?GetMemberObjectsReq '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetMemberObjectsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetMemberObjectsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. * @param GetMemberObjectsPostRequestBody $body The request body * @param GetMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsResponse.php b/src/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsResponse.php deleted file mode 100644 index 997a6f91e95..00000000000 --- a/src/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Groups/Item/GroupItemRequestBuilder.php b/src/Generated/Groups/Item/GroupItemRequestBuilder.php index 40f3ebb3d37..171c3346bed 100644 --- a/src/Generated/Groups/Item/GroupItemRequestBuilder.php +++ b/src/Generated/Groups/Item/GroupItemRequestBuilder.php @@ -38,6 +38,7 @@ use Microsoft\Graph\Generated\Groups\Item\ResetUnseenCount\ResetUnseenCountRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Restore\RestoreRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\RetryServiceProvisioning\RetryServiceProvisioningRequestBuilder; +use Microsoft\Graph\Generated\Groups\Item\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Settings\SettingsRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Sites\SitesRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\SubscribeByMail\SubscribeByMailRequestBuilder; @@ -290,6 +291,13 @@ public function retryServiceProvisioning(): RetryServiceProvisioningRequestBuild return new RetryServiceProvisioningRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the settings property of the microsoft.graph.group entity. */ @@ -368,7 +376,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems. + * Delete group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems. This API is supported in the following national cloud deployments. * @param GroupItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/group-delete?view=graph-rest-1.0 Find more info here @@ -387,7 +395,7 @@ public function delete(?GroupItemRequestBuilderDeleteRequestConfiguration $reque } /** - * Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that are not returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. + * Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that aren't_ returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and aren't returned in the $select query. This API is supported in the following national cloud deployments. * @param GroupItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/group-get?view=graph-rest-1.0 Find more info here @@ -406,11 +414,11 @@ public function get(?GroupItemRequestBuilderGetRequestConfiguration $requestConf } /** - * Update the properties of a group object. + * Add a member to a security or Microsoft 365 group through the members navigation property. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. This API is supported in the following national cloud deployments. * @param Group $body The request body * @param GroupItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/group-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/group-post-members?view=graph-rest-1.0 Find more info here */ public function patch(Group $body, ?GroupItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -426,7 +434,7 @@ public function patch(Group $body, ?GroupItemRequestBuilderPatchRequestConfigura } /** - * Delete group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems. + * Delete group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems. This API is supported in the following national cloud deployments. * @param GroupItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -443,7 +451,7 @@ public function toDeleteRequestInformation(?GroupItemRequestBuilderDeleteRequest } /** - * Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that are not returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. + * Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that aren't_ returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and aren't returned in the $select query. This API is supported in the following national cloud deployments. * @param GroupItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -464,7 +472,7 @@ public function toGetRequestInformation(?GroupItemRequestBuilderGetRequestConfig } /** - * Update the properties of a group object. + * Add a member to a security or Microsoft 365 group through the members navigation property. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. This API is supported in the following national cloud deployments. * @param Group $body The request body * @param GroupItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/GroupItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/GroupItemRequestBuilderGetQueryParameters.php index 4978ea5063b..8d322517355 100644 --- a/src/Generated/Groups/Item/GroupItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/GroupItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that are not returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. + * Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that aren't_ returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and aren't returned in the $select query. This API is supported in the following national cloud deployments. */ class GroupItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.php b/src/Generated/Groups/Item/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.php index c09cc5f007f..825941e799e 100644 --- a/src/Generated/Groups/Item/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.php +++ b/src/Generated/Groups/Item/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieves a list of groupLifecyclePolicy objects to which a group belongs. + * Retrieves a list of groupLifecyclePolicy objects to which a group belongs. This API is supported in the following national cloud deployments. * @param GroupLifecyclePoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/group-list-grouplifecyclepolicies?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(GroupLifecyclePolicy $body, ?GroupLifecyclePoliciesRequestB } /** - * Retrieves a list of groupLifecyclePolicy objects to which a group belongs. + * Retrieves a list of groupLifecyclePolicy objects to which a group belongs. This API is supported in the following national cloud deployments. * @param GroupLifecyclePoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilderGetQueryParameters.php index c5adba35fb7..67e93741eea 100644 --- a/src/Generated/Groups/Item/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieves a list of groupLifecyclePolicy objects to which a group belongs. + * Retrieves a list of groupLifecyclePolicy objects to which a group belongs. This API is supported in the following national cloud deployments. */ class GroupLifecyclePoliciesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.php b/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.php new file mode 100644 index 00000000000..29fa59d232c --- /dev/null +++ b/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.php @@ -0,0 +1,114 @@ +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 AddGroupPostResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): AddGroupPostResponse { + return new AddGroupPostResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return bool|null + */ + public function getValue(): ?bool { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_bool($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 { + $writer->writeBooleanValue('value', $this->getValue()); + $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 value property value. The value property + * @param bool|null $value Value to set for the value property. + */ + public function setValue(?bool $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.php b/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.php index 31e357605f6..de16a57a928 100644 --- a/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. + * Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. This API is supported in the following national cloud deployments. * @param AddGroupPostRequestBody $body The request body * @param AddGroupRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(AddGroupPostRequestBody $body, ?AddGroupRequestBuilderPostR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [AddGroupResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [AddGroupPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. + * Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. This API is supported in the following national cloud deployments. * @param AddGroupPostRequestBody $body The request body * @param AddGroupRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupResponse.php b/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupResponse.php deleted file mode 100644 index da93882581a..00000000000 --- a/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 AddGroupResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): AddGroupResponse { - return new AddGroupResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return bool|null - */ - public function getValue(): ?bool { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_bool($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 { - $writer->writeBooleanValue('value', $this->getValue()); - $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 value property value. The value property - * @param bool|null $value Value to set for the value property. - */ - public function setValue(?bool $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.php b/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.php new file mode 100644 index 00000000000..9cb7cc5b8c4 --- /dev/null +++ b/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.php @@ -0,0 +1,114 @@ +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 RemoveGroupPostResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): RemoveGroupPostResponse { + return new RemoveGroupPostResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return bool|null + */ + public function getValue(): ?bool { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_bool($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 { + $writer->writeBooleanValue('value', $this->getValue()); + $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 value property value. The value property + * @param bool|null $value Value to set for the value property. + */ + public function setValue(?bool $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.php b/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.php index bf81d853e6e..dd318c5f6fb 100644 --- a/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Removes a group from a lifecycle policy. + * Removes a group from a lifecycle policy. This API is supported in the following national cloud deployments. * @param RemoveGroupPostRequestBody $body The request body * @param RemoveGroupRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(RemoveGroupPostRequestBody $body, ?RemoveGroupRequestBuilde '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [RemoveGroupResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [RemoveGroupPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Removes a group from a lifecycle policy. + * Removes a group from a lifecycle policy. This API is supported in the following national cloud deployments. * @param RemoveGroupPostRequestBody $body The request body * @param RemoveGroupRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupResponse.php b/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupResponse.php deleted file mode 100644 index f9b4332e3cf..00000000000 --- a/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 RemoveGroupResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): RemoveGroupResponse { - return new RemoveGroupResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return bool|null - */ - public function getValue(): ?bool { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_bool($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 { - $writer->writeBooleanValue('value', $this->getValue()); - $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 value property value. The value property - * @param bool|null $value Value to set for the value property. - */ - public function setValue(?bool $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Groups/Item/Members/Item/Ref/RefRequestBuilder.php b/src/Generated/Groups/Item/Members/Item/Ref/RefRequestBuilder.php index 96d4ab1a148..6f5b34ccc1d 100644 --- a/src/Generated/Groups/Item/Members/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Groups/Item/Members/Item/Ref/RefRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. + * Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/group-delete-members?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function delete(?RefRequestBuilderDeleteRequestConfiguration $requestConf } /** - * Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. + * Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Members/Item/Ref/RefRequestBuilderDeleteQueryParameters.php b/src/Generated/Groups/Item/Members/Item/Ref/RefRequestBuilderDeleteQueryParameters.php index 224729a7cb7..734de37f125 100644 --- a/src/Generated/Groups/Item/Members/Item/Ref/RefRequestBuilderDeleteQueryParameters.php +++ b/src/Generated/Groups/Item/Members/Item/Ref/RefRequestBuilderDeleteQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. + * Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. This API is supported in the following national cloud deployments. */ class RefRequestBuilderDeleteQueryParameters { diff --git a/src/Generated/Groups/Item/Members/Ref/RefRequestBuilder.php b/src/Generated/Groups/Item/Members/Ref/RefRequestBuilder.php index 48f66fd711e..31ed9a9f8b2 100644 --- a/src/Generated/Groups/Item/Members/Ref/RefRequestBuilder.php +++ b/src/Generated/Groups/Item/Members/Ref/RefRequestBuilder.php @@ -52,7 +52,7 @@ public function get(?RefRequestBuilderGetRequestConfiguration $requestConfigurat } /** - * Add a member to a security or Microsoft 365 group through the members navigation property. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. + * Add a member to a security or Microsoft 365 group through the members navigation property. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -93,7 +93,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } /** - * Add a member to a security or Microsoft 365 group through the members navigation property. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. + * Add a member to a security or Microsoft 365 group through the members navigation property. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.php index 70ad8dfcfb7..17d7c849982 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. + * Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. This API is supported in the following national cloud deployments. * @param GetNotebookFromWebUrlPostRequestBody $body The request body * @param GetNotebookFromWebUrlRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(GetNotebookFromWebUrlPostRequestBody $body, ?GetNotebookFro } /** - * Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. + * Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. This API is supported in the following national cloud deployments. * @param GetNotebookFromWebUrlPostRequestBody $body The request body * @param GetNotebookFromWebUrlRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.php b/src/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.php new file mode 100644 index 00000000000..3a5fe995048 --- /dev/null +++ b/src/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([RecentNotebook::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, RecentNotebook::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/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.php index f4f5f3273e7..efa3f985dbb 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.php @@ -45,7 +45,7 @@ public function get(?GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilde '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetRecentNotebooksWithIncludePersonalNotebooksResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetRecentNotebooksWithIncludePersonalNotebooksGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.php b/src/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.php deleted file mode 100644 index 17e52d5c696..00000000000 --- a/src/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([RecentNotebook::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, RecentNotebook::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/Groups/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.php index 1c4f164b52e..aeb695669c3 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyNotebookPostRequestBody $body The request body * @param CopyNotebookRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyNotebookPostRequestBody $body, ?CopyNotebookRequestBuil } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyNotebookPostRequestBody $body The request body * @param CopyNotebookRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.php index 499319eb693..192ba3e07b5 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.php @@ -74,7 +74,7 @@ public function delete(?NotebookItemRequestBuilderDeleteRequestConfiguration $re } /** - * Retrieve the properties and relationships of a notebook object. + * Retrieve the properties and relationships of a notebook object. This API is supported in the following national cloud deployments. * @param NotebookItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/notebook-get?view=graph-rest-1.0 Find more info here @@ -129,7 +129,7 @@ public function toDeleteRequestInformation(?NotebookItemRequestBuilderDeleteRequ } /** - * Retrieve the properties and relationships of a notebook object. + * Retrieve the properties and relationships of a notebook object. This API is supported in the following national cloud deployments. * @param NotebookItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilderGetQueryParameters.php index 0e279bcfc18..419381ce33c 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a notebook object. + * Retrieve the properties and relationships of a notebook object. This API is supported in the following national cloud deployments. */ class NotebookItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php index a2eb27e56af..ea8a5c9b815 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of section groups from the specified section group. + * Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. * @param SectionGroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/sectiongroup-list-sectiongroups?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?SectionGroupsRequestBuilderGetRequestConfiguration $request } /** - * Retrieve a list of section groups from the specified section group. + * Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. * @param SectionGroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php index f529bac6fe7..41a2939bdcf 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of section groups from the specified section group. + * Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. */ class SectionGroupsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php index 4ccbcf9b8d6..7ea87277b57 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToNotebookPostRequestBody $body The request body * @param CopyToNotebookRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyToNotebookPostRequestBody $body, ?CopyToNotebookRequest } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToNotebookPostRequestBody $body The request body * @param CopyToNotebookRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php index 92acc005ccd..6c3c2cf4f3b 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionGroupPostRequestBody $body The request body * @param CopyToSectionGroupRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyToSectionGroupPostRequestBody $body, ?CopyToSectionGrou } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionGroupPostRequestBody $body The request body * @param CopyToSectionGroupRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php index 9ea560f8e11..e0478696623 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionPostRequestBody $body The request body * @param CopyToSectionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyToSectionPostRequestBody $body, ?CopyToSectionRequestBu } /** - * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionPostRequestBody $body The request body * @param CopyToSectionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php index 65657e6df9f..7768c152a01 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of page objects from the specified section. + * Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. * @param PagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/section-list-pages?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?PagesRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Create a new page in the specified section. + * Create a new page in the specified section. This API is supported in the following national cloud deployments. * @param OnenotePage $body The request body * @param PagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(OnenotePage $body, ?PagesRequestBuilderPostRequestConfigura } /** - * Retrieve a list of page objects from the specified section. + * Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. * @param PagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } /** - * Create a new page in the specified section. + * Create a new page in the specified section. This API is supported in the following national cloud deployments. * @param OnenotePage $body The request body * @param PagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php index 60005a97fc7..96b033954d7 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of page objects from the specified section. + * Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. */ class PagesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.php index 48c333dc2ae..d79648a0d23 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of onenoteSection objects from the specified section group. + * Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. * @param SectionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/sectiongroup-list-sections?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?SectionsRequestBuilderGetRequestConfiguration $requestConfi } /** - * Create a new onenoteSection in the specified section group. + * Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. * @param OnenoteSection $body The request body * @param SectionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(OnenoteSection $body, ?SectionsRequestBuilderPostRequestCon } /** - * Retrieve a list of onenoteSection objects from the specified section group. + * Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. * @param SectionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu } /** - * Create a new onenoteSection in the specified section group. + * Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. * @param OnenoteSection $body The request body * @param SectionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilderGetQueryParameters.php index 6db0b27189a..54f541876b4 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of onenoteSection objects from the specified section group. + * Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. */ class SectionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.php index 07e9caf2053..aae59f71313 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of section groups from the specified notebook. + * Retrieve a list of section groups from the specified notebook. This API is supported in the following national cloud deployments. * @param SectionGroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/notebook-list-sectiongroups?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?SectionGroupsRequestBuilderGetRequestConfiguration $request } /** - * Create a new section group in the specified notebook. + * Create a new section group in the specified notebook. This API is supported in the following national cloud deployments. * @param SectionGroup $body The request body * @param SectionGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(SectionGroup $body, ?SectionGroupsRequestBuilderPostRequest } /** - * Retrieve a list of section groups from the specified notebook. + * Retrieve a list of section groups from the specified notebook. This API is supported in the following national cloud deployments. * @param SectionGroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo } /** - * Create a new section group in the specified notebook. + * Create a new section group in the specified notebook. This API is supported in the following national cloud deployments. * @param SectionGroup $body The request body * @param SectionGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php index 471f5d1d4ac..9be8e4e2edb 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of section groups from the specified notebook. + * Retrieve a list of section groups from the specified notebook. This API is supported in the following national cloud deployments. */ class SectionGroupsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php index 8ddbcf2e353..dbad8458425 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToNotebookPostRequestBody $body The request body * @param CopyToNotebookRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyToNotebookPostRequestBody $body, ?CopyToNotebookRequest } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToNotebookPostRequestBody $body The request body * @param CopyToNotebookRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php index 7a9d26039b1..de59c22511b 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionGroupPostRequestBody $body The request body * @param CopyToSectionGroupRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyToSectionGroupPostRequestBody $body, ?CopyToSectionGrou } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionGroupPostRequestBody $body The request body * @param CopyToSectionGroupRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php index 653ba52dbc9..613a1f08faa 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionPostRequestBody $body The request body * @param CopyToSectionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyToSectionPostRequestBody $body, ?CopyToSectionRequestBu } /** - * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionPostRequestBody $body The request body * @param CopyToSectionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.php index 4b2bf1dd4cc..095eeffae2d 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of page objects from the specified section. + * Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. * @param PagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/section-list-pages?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?PagesRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Create a new page in the specified section. + * Create a new page in the specified section. This API is supported in the following national cloud deployments. * @param OnenotePage $body The request body * @param PagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(OnenotePage $body, ?PagesRequestBuilderPostRequestConfigura } /** - * Retrieve a list of page objects from the specified section. + * Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. * @param PagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } /** - * Create a new page in the specified section. + * Create a new page in the specified section. This API is supported in the following national cloud deployments. * @param OnenotePage $body The request body * @param PagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php index 5be18057cdf..c929d0aaea5 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of page objects from the specified section. + * Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. */ class PagesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.php index 03496c41b5e..a13cdedceb8 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of onenoteSection objects from the specified notebook. + * Retrieve a list of onenoteSection objects from the specified notebook. This API is supported in the following national cloud deployments. * @param SectionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/notebook-list-sections?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?SectionsRequestBuilderGetRequestConfiguration $requestConfi } /** - * Create a new onenoteSection in the specified notebook. + * Create a new onenoteSection in the specified notebook. This API is supported in the following national cloud deployments. * @param OnenoteSection $body The request body * @param SectionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(OnenoteSection $body, ?SectionsRequestBuilderPostRequestCon } /** - * Retrieve a list of onenoteSection objects from the specified notebook. + * Retrieve a list of onenoteSection objects from the specified notebook. This API is supported in the following national cloud deployments. * @param SectionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu } /** - * Create a new onenoteSection in the specified notebook. + * Create a new onenoteSection in the specified notebook. This API is supported in the following national cloud deployments. * @param OnenoteSection $body The request body * @param SectionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilderGetQueryParameters.php index 4ba95b2c4d4..923d2668cb4 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of onenoteSection objects from the specified notebook. + * Retrieve a list of onenoteSection objects from the specified notebook. This API is supported in the following national cloud deployments. */ class SectionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/NotebooksRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/NotebooksRequestBuilder.php index 9a56d90b943..f89ef72f187 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/NotebooksRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/NotebooksRequestBuilder.php @@ -62,7 +62,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of notebook objects. + * Retrieve a list of notebook objects. This API is supported in the following national cloud deployments. * @param NotebooksRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/onenote-list-notebooks?view=graph-rest-1.0 Find more info here @@ -90,7 +90,7 @@ public function getRecentNotebooksWithIncludePersonalNotebooks(bool $includePers } /** - * Create a new OneNote notebook. + * Create a new OneNote notebook. This API is supported in the following national cloud deployments. * @param Notebook $body The request body * @param NotebooksRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -110,7 +110,7 @@ public function post(Notebook $body, ?NotebooksRequestBuilderPostRequestConfigur } /** - * Retrieve a list of notebook objects. + * Retrieve a list of notebook objects. This API is supported in the following national cloud deployments. * @param NotebooksRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -131,7 +131,7 @@ public function toGetRequestInformation(?NotebooksRequestBuilderGetRequestConfig } /** - * Create a new OneNote notebook. + * Create a new OneNote notebook. This API is supported in the following national cloud deployments. * @param Notebook $body The request body * @param NotebooksRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/NotebooksRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Onenote/Notebooks/NotebooksRequestBuilderGetQueryParameters.php index 71e5d36838f..0c0e27451d4 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/NotebooksRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/NotebooksRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of notebook objects. + * Retrieve a list of notebook objects. This API is supported in the following national cloud deployments. */ class NotebooksRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.php index d1b6585b5c1..4ad275b09fa 100644 --- a/src/Generated/Groups/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?OnenoteOperationItemRequestBuilderDeleteRequestConfigura } /** - * Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + * Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. * @param OnenoteOperationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/onenoteoperation-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?OnenoteOperationItemRequestBuilderDe } /** - * Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + * Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. * @param OnenoteOperationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilderGetQueryParameters.php index a5aad877adf..95733a7de02 100644 --- a/src/Generated/Groups/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + * Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. */ class OnenoteOperationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Onenote/Operations/OperationsRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Operations/OperationsRequestBuilder.php index de0b3b71dcc..02d2bc80102 100644 --- a/src/Generated/Groups/Item/Onenote/Operations/OperationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Operations/OperationsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + * Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. * @param OperationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(OnenoteOperation $body, ?OperationsRequestBuilderPostReques } /** - * Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + * Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. * @param OperationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Onenote/Operations/OperationsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Onenote/Operations/OperationsRequestBuilderGetQueryParameters.php index 7a5af2cd018..33bcdbff918 100644 --- a/src/Generated/Groups/Item/Onenote/Operations/OperationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Onenote/Operations/OperationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + * Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. */ class OperationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php index 94ba381b40e..605408bca5d 100644 --- a/src/Generated/Groups/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionPostRequestBody $body The request body * @param CopyToSectionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyToSectionPostRequestBody $body, ?CopyToSectionRequestBu } /** - * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionPostRequestBody $body The request body * @param CopyToSectionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.php index 531e80fcca9..32c002314d7 100644 --- a/src/Generated/Groups/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.php @@ -80,7 +80,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a OneNote page. + * Delete a OneNote page. This API is supported in the following national cloud deployments. * @param OnenotePageItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/page-delete?view=graph-rest-1.0 Find more info here @@ -99,7 +99,7 @@ public function delete(?OnenotePageItemRequestBuilderDeleteRequestConfiguration } /** - * Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. + * Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. This API is supported in the following national cloud deployments. * @param OnenotePageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/page-get?view=graph-rest-1.0 Find more info here @@ -137,7 +137,7 @@ public function patch(OnenotePage $body, ?OnenotePageItemRequestBuilderPatchRequ } /** - * Delete a OneNote page. + * Delete a OneNote page. This API is supported in the following national cloud deployments. * @param OnenotePageItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -154,7 +154,7 @@ public function toDeleteRequestInformation(?OnenotePageItemRequestBuilderDeleteR } /** - * Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. + * Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. This API is supported in the following national cloud deployments. * @param OnenotePageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilderGetQueryParameters.php index 2e675328c69..b9f4fe35557 100644 --- a/src/Generated/Groups/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. + * Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. This API is supported in the following national cloud deployments. */ class OnenotePageItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Onenote/Pages/PagesRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Pages/PagesRequestBuilder.php index 5e41626e822..6bbddfb3c33 100644 --- a/src/Generated/Groups/Item/Onenote/Pages/PagesRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Pages/PagesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of page objects. + * Retrieve a list of page objects. This API is supported in the following national cloud deployments. * @param PagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/onenote-list-pages?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?PagesRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. + * Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. This API is supported in the following national cloud deployments. * @param OnenotePage $body The request body * @param PagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(OnenotePage $body, ?PagesRequestBuilderPostRequestConfigura } /** - * Retrieve a list of page objects. + * Retrieve a list of page objects. This API is supported in the following national cloud deployments. * @param PagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } /** - * Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. + * Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. This API is supported in the following national cloud deployments. * @param OnenotePage $body The request body * @param PagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Onenote/Pages/PagesRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Onenote/Pages/PagesRequestBuilderGetQueryParameters.php index d947287d045..8ede57a5e16 100644 --- a/src/Generated/Groups/Item/Onenote/Pages/PagesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Onenote/Pages/PagesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of page objects. + * Retrieve a list of page objects. This API is supported in the following national cloud deployments. */ class PagesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.php index bc7d9b9929f..8a2e2f588d6 100644 --- a/src/Generated/Groups/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?OnenoteResourceItemRequestBuilderDeleteRequestConfigurat } /** - * The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + * The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. * @param OnenoteResourceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -112,7 +112,7 @@ public function toDeleteRequestInformation(?OnenoteResourceItemRequestBuilderDel } /** - * The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + * The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. * @param OnenoteResourceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilderGetQueryParameters.php index bd9c52be63d..e2cd2f9846e 100644 --- a/src/Generated/Groups/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + * The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. */ class OnenoteResourceItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Onenote/Resources/ResourcesRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Resources/ResourcesRequestBuilder.php index 819dd3334bd..04d151ae69e 100644 --- a/src/Generated/Groups/Item/Onenote/Resources/ResourcesRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Resources/ResourcesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + * The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. * @param ResourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(OnenoteResource $body, ?ResourcesRequestBuilderPostRequestC } /** - * The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + * The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. * @param ResourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Onenote/Resources/ResourcesRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Onenote/Resources/ResourcesRequestBuilderGetQueryParameters.php index 6a5d3f5f101..4a6b6401e81 100644 --- a/src/Generated/Groups/Item/Onenote/Resources/ResourcesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Onenote/Resources/ResourcesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + * The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. */ class ResourcesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.php index 050e7e57e46..eea6852ea9c 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.php @@ -82,7 +82,7 @@ public function delete(?SectionGroupItemRequestBuilderDeleteRequestConfiguration } /** - * Retrieve the properties and relationships of a sectionGroup object. + * Retrieve the properties and relationships of a sectionGroup object. This API is supported in the following national cloud deployments. * @param SectionGroupItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/sectiongroup-get?view=graph-rest-1.0 Find more info here @@ -137,7 +137,7 @@ public function toDeleteRequestInformation(?SectionGroupItemRequestBuilderDelete } /** - * Retrieve the properties and relationships of a sectionGroup object. + * Retrieve the properties and relationships of a sectionGroup object. This API is supported in the following national cloud deployments. * @param SectionGroupItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilderGetQueryParameters.php index 72221ded83d..a45a10eb92e 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a sectionGroup object. + * Retrieve the properties and relationships of a sectionGroup object. This API is supported in the following national cloud deployments. */ class SectionGroupItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php index ed26442bdcd..a420934c0c6 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of section groups from the specified section group. + * Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. * @param SectionGroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/sectiongroup-list-sectiongroups?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?SectionGroupsRequestBuilderGetRequestConfiguration $request } /** - * Retrieve a list of section groups from the specified section group. + * Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. * @param SectionGroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php index 5779fe261dd..c5dd3693877 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of section groups from the specified section group. + * Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. */ class SectionGroupsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php index 942263e0786..2c5a33d1369 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToNotebookPostRequestBody $body The request body * @param CopyToNotebookRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyToNotebookPostRequestBody $body, ?CopyToNotebookRequest } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToNotebookPostRequestBody $body The request body * @param CopyToNotebookRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php index ca988af2787..7441ea91680 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionGroupPostRequestBody $body The request body * @param CopyToSectionGroupRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyToSectionGroupPostRequestBody $body, ?CopyToSectionGrou } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionGroupPostRequestBody $body The request body * @param CopyToSectionGroupRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php index ef5805def76..e24b1eded44 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionPostRequestBody $body The request body * @param CopyToSectionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyToSectionPostRequestBody $body, ?CopyToSectionRequestBu } /** - * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionPostRequestBody $body The request body * @param CopyToSectionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php index efbb81aff40..cebf2d00600 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of page objects from the specified section. + * Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. * @param PagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/section-list-pages?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?PagesRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Create a new page in the specified section. + * Create a new page in the specified section. This API is supported in the following national cloud deployments. * @param OnenotePage $body The request body * @param PagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(OnenotePage $body, ?PagesRequestBuilderPostRequestConfigura } /** - * Retrieve a list of page objects from the specified section. + * Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. * @param PagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } /** - * Create a new page in the specified section. + * Create a new page in the specified section. This API is supported in the following national cloud deployments. * @param OnenotePage $body The request body * @param PagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php index cf931f7536e..f8a59dbe311 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of page objects from the specified section. + * Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. */ class PagesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.php index e148222aeca..a0a16f3e101 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of onenoteSection objects from the specified section group. + * Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. * @param SectionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/sectiongroup-list-sections?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?SectionsRequestBuilderGetRequestConfiguration $requestConfi } /** - * Create a new onenoteSection in the specified section group. + * Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. * @param OnenoteSection $body The request body * @param SectionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(OnenoteSection $body, ?SectionsRequestBuilderPostRequestCon } /** - * Retrieve a list of onenoteSection objects from the specified section group. + * Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. * @param SectionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu } /** - * Create a new onenoteSection in the specified section group. + * Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. * @param OnenoteSection $body The request body * @param SectionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilderGetQueryParameters.php index 625575715ea..c471b7efd62 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of onenoteSection objects from the specified section group. + * Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. */ class SectionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.php b/src/Generated/Groups/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.php index 56e7af10356..389b7a7bb13 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of sectionGroup objects. + * Retrieve a list of sectionGroup objects. This API is supported in the following national cloud deployments. * @param SectionGroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/onenote-list-sectiongroups?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(SectionGroup $body, ?SectionGroupsRequestBuilderPostRequest } /** - * Retrieve a list of sectionGroup objects. + * Retrieve a list of sectionGroup objects. This API is supported in the following national cloud deployments. * @param SectionGroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Onenote/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php index 393d50371e0..7158d88f78c 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of sectionGroup objects. + * Retrieve a list of sectionGroup objects. This API is supported in the following national cloud deployments. */ class SectionGroupsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php index fc3a2817d48..266076ea979 100644 --- a/src/Generated/Groups/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToNotebookPostRequestBody $body The request body * @param CopyToNotebookRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyToNotebookPostRequestBody $body, ?CopyToNotebookRequest } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToNotebookPostRequestBody $body The request body * @param CopyToNotebookRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php index e931f6c7c5b..f0e1ac987f4 100644 --- a/src/Generated/Groups/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionGroupPostRequestBody $body The request body * @param CopyToSectionGroupRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyToSectionGroupPostRequestBody $body, ?CopyToSectionGrou } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionGroupPostRequestBody $body The request body * @param CopyToSectionGroupRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.php index 467ed3cb6ec..cbacaf919ab 100644 --- a/src/Generated/Groups/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.php @@ -90,7 +90,7 @@ public function delete(?OnenoteSectionItemRequestBuilderDeleteRequestConfigurati } /** - * Retrieve the properties and relationships of a onenoteSection object. + * Retrieve the properties and relationships of a onenoteSection object. This API is supported in the following national cloud deployments. * @param OnenoteSectionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/section-get?view=graph-rest-1.0 Find more info here @@ -145,7 +145,7 @@ public function toDeleteRequestInformation(?OnenoteSectionItemRequestBuilderDele } /** - * Retrieve the properties and relationships of a onenoteSection object. + * Retrieve the properties and relationships of a onenoteSection object. This API is supported in the following national cloud deployments. * @param OnenoteSectionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilderGetQueryParameters.php index 067b0929a67..7cfe9b984e5 100644 --- a/src/Generated/Groups/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a onenoteSection object. + * Retrieve the properties and relationships of a onenoteSection object. This API is supported in the following national cloud deployments. */ class OnenoteSectionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php index 2fcc05307d3..3ea45289581 100644 --- a/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionPostRequestBody $body The request body * @param CopyToSectionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyToSectionPostRequestBody $body, ?CopyToSectionRequestBu } /** - * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionPostRequestBody $body The request body * @param CopyToSectionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.php index 1ef2df15a6b..d1276765156 100644 --- a/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of page objects from the specified section. + * Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. * @param PagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/section-list-pages?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?PagesRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Create a new page in the specified section. + * Create a new page in the specified section. This API is supported in the following national cloud deployments. * @param OnenotePage $body The request body * @param PagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(OnenotePage $body, ?PagesRequestBuilderPostRequestConfigura } /** - * Retrieve a list of page objects from the specified section. + * Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. * @param PagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } /** - * Create a new page in the specified section. + * Create a new page in the specified section. This API is supported in the following national cloud deployments. * @param OnenotePage $body The request body * @param PagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php index 4ae3eea9a1e..2e07da1f230 100644 --- a/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of page objects from the specified section. + * Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. */ class PagesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Onenote/Sections/SectionsRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Sections/SectionsRequestBuilder.php index 0e0efba8f57..7954229a61d 100644 --- a/src/Generated/Groups/Item/Onenote/Sections/SectionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Sections/SectionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of onenoteSection objects. + * Retrieve a list of onenoteSection objects. This API is supported in the following national cloud deployments. * @param SectionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/onenote-list-sections?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(OnenoteSection $body, ?SectionsRequestBuilderPostRequestCon } /** - * Retrieve a list of onenoteSection objects. + * Retrieve a list of onenoteSection objects. This API is supported in the following national cloud deployments. * @param SectionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Onenote/Sections/SectionsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Onenote/Sections/SectionsRequestBuilderGetQueryParameters.php index 7188b18370d..6246e1d6d34 100644 --- a/src/Generated/Groups/Item/Onenote/Sections/SectionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Onenote/Sections/SectionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of onenoteSection objects. + * Retrieve a list of onenoteSection objects. This API is supported in the following national cloud deployments. */ class SectionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.php b/src/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.php index 6c94c219ce2..31a5ac8681d 100644 --- a/src/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove an owner from a Microsoft 365 group or a security group through the owners navigation property. Once owners are assigned to a group, the last owner (a user object) of the group cannot be removed. + * Remove an owner from a Microsoft 365 group or a security group through the owners navigation property. Once owners are assigned to a group, the last owner (a user object) of the group cannot be removed. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/group-delete-owners?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function delete(?RefRequestBuilderDeleteRequestConfiguration $requestConf } /** - * Remove an owner from a Microsoft 365 group or a security group through the owners navigation property. Once owners are assigned to a group, the last owner (a user object) of the group cannot be removed. + * Remove an owner from a Microsoft 365 group or a security group through the owners navigation property. Once owners are assigned to a group, the last owner (a user object) of the group cannot be removed. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilderDeleteQueryParameters.php b/src/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilderDeleteQueryParameters.php index c7018b20788..09dfdce80ff 100644 --- a/src/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilderDeleteQueryParameters.php +++ b/src/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilderDeleteQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Remove an owner from a Microsoft 365 group or a security group through the owners navigation property. Once owners are assigned to a group, the last owner (a user object) of the group cannot be removed. + * Remove an owner from a Microsoft 365 group or a security group through the owners navigation property. Once owners are assigned to a group, the last owner (a user object) of the group cannot be removed. This API is supported in the following national cloud deployments. */ class RefRequestBuilderDeleteQueryParameters { diff --git a/src/Generated/Groups/Item/Owners/Ref/RefRequestBuilder.php b/src/Generated/Groups/Item/Owners/Ref/RefRequestBuilder.php index 8ce0d615fb8..6ad318f9a10 100644 --- a/src/Generated/Groups/Item/Owners/Ref/RefRequestBuilder.php +++ b/src/Generated/Groups/Item/Owners/Ref/RefRequestBuilder.php @@ -52,7 +52,7 @@ public function get(?RefRequestBuilderGetRequestConfiguration $requestConfigurat } /** - * Add a user or service principal to a Microsoft 365 or security group's owners. The owners are a set of users or service principals who are allowed to modify the group object. + * Add a user or service principal to a Microsoft 365 or security group's owners. The owners are a set of users or service principals who are allowed to modify the group object. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -93,7 +93,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } /** - * Add a user or service principal to a Microsoft 365 or security group's owners. The owners are a set of users or service principals who are allowed to modify the group object. + * Add a user or service principal to a Microsoft 365 or security group's owners. The owners are a set of users or service principals who are allowed to modify the group object. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/PermissionGrants/Delta/DeltaGetResponse.php b/src/Generated/Groups/Item/PermissionGrants/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..dbffb8096eb --- /dev/null +++ b/src/Generated/Groups/Item/PermissionGrants/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([DirectoryObject::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, DirectoryObject::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/Groups/Item/PermissionGrants/Delta/DeltaRequestBuilder.php b/src/Generated/Groups/Item/PermissionGrants/Delta/DeltaRequestBuilder.php index 6a051d77885..c7dd62d14df 100644 --- a/src/Generated/Groups/Item/PermissionGrants/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Groups/Item/PermissionGrants/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/PermissionGrants/Delta/DeltaResponse.php b/src/Generated/Groups/Item/PermissionGrants/Delta/DeltaResponse.php deleted file mode 100644 index f11b402ab42..00000000000 --- a/src/Generated/Groups/Item/PermissionGrants/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/Groups/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php b/src/Generated/Groups/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php new file mode 100644 index 00000000000..177e924192b --- /dev/null +++ b/src/Generated/Groups/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/Groups/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/Groups/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index cdcbc6d9cfe..7c4a5d5d2db 100644 --- a/src/Generated/Groups/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/Groups/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetAvailableExtensionPropertiesPostRequestBody $body, ?GetA '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php b/src/Generated/Groups/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php deleted file mode 100644 index 6f5225e7172..00000000000 --- a/src/Generated/Groups/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/Groups/Item/PermissionGrants/GetByIds/GetByIdsPostResponse.php b/src/Generated/Groups/Item/PermissionGrants/GetByIds/GetByIdsPostResponse.php new file mode 100644 index 00000000000..df2be05c7cb --- /dev/null +++ b/src/Generated/Groups/Item/PermissionGrants/GetByIds/GetByIdsPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/Groups/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/Groups/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.php index ae6df115641..7897525132e 100644 --- a/src/Generated/Groups/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/Groups/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetByIdsPostRequestBody $body, ?GetByIdsRequestBuilderPostR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/PermissionGrants/GetByIds/GetByIdsResponse.php b/src/Generated/Groups/Item/PermissionGrants/GetByIds/GetByIdsResponse.php deleted file mode 100644 index ecfcadf090a..00000000000 --- a/src/Generated/Groups/Item/PermissionGrants/GetByIds/GetByIdsResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/Groups/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php b/src/Generated/Groups/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php new file mode 100644 index 00000000000..14463524b25 --- /dev/null +++ b/src/Generated/Groups/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Groups/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php b/src/Generated/Groups/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php index fd4708289e2..27796b2b68d 100644 --- a/src/Generated/Groups/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php +++ b/src/Generated/Groups/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. * @param CheckMemberGroupsPostRequestBody $body The request body * @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberGroupsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberGroupsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. * @param CheckMemberGroupsPostRequestBody $body The request body * @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.php b/src/Generated/Groups/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.php deleted file mode 100644 index a12dc4e5ec6..00000000000 --- a/src/Generated/Groups/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Groups/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php b/src/Generated/Groups/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php new file mode 100644 index 00000000000..f443a510706 --- /dev/null +++ b/src/Generated/Groups/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Groups/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php b/src/Generated/Groups/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php index a6f5ae68425..c36bd0a9033 100644 --- a/src/Generated/Groups/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php +++ b/src/Generated/Groups/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php @@ -43,7 +43,7 @@ public function post(CheckMemberObjectsPostRequestBody $body, ?CheckMemberObject '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberObjectsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberObjectsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.php b/src/Generated/Groups/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.php deleted file mode 100644 index e0b7f083d89..00000000000 --- a/src/Generated/Groups/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Groups/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.php b/src/Generated/Groups/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.php new file mode 100644 index 00000000000..5a2d7ef9cad --- /dev/null +++ b/src/Generated/Groups/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Groups/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/Groups/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index 91c39bd6fe6..6a59c64a01d 100644 --- a/src/Generated/Groups/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/Groups/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsReque '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetMemberGroupsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetMemberGroupsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.php b/src/Generated/Groups/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.php deleted file mode 100644 index 6ded25773cb..00000000000 --- a/src/Generated/Groups/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Groups/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.php b/src/Generated/Groups/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.php new file mode 100644 index 00000000000..d243fc25eb0 --- /dev/null +++ b/src/Generated/Groups/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Groups/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php b/src/Generated/Groups/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php index 0be752c0767..d25cd2acce8 100644 --- a/src/Generated/Groups/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php +++ b/src/Generated/Groups/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. * @param GetMemberObjectsPostRequestBody $body The request body * @param GetMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetMemberObjectsPostRequestBody $body, ?GetMemberObjectsReq '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetMemberObjectsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetMemberObjectsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. * @param GetMemberObjectsPostRequestBody $body The request body * @param GetMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.php b/src/Generated/Groups/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.php deleted file mode 100644 index dad4548f406..00000000000 --- a/src/Generated/Groups/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Groups/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Groups/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.php index 5326cfdd703..42d0f49d7af 100644 --- a/src/Generated/Groups/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Groups/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. * @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/PermissionGrants/PermissionGrantsRequestBuilder.php b/src/Generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilder.php index 67ad70f543f..e3794faabf3 100644 --- a/src/Generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilder.php +++ b/src/Generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilder.php @@ -85,7 +85,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List all resource-specific permission grants on the group. This list specifies the Azure AD apps that have access to the group, along with the corresponding kind of resource-specific access that each app has. + * List all resource-specific permission grants on the group. This list specifies the Azure AD apps that have access to the group, along with the corresponding kind of resource-specific access that each app has. This API is supported in the following national cloud deployments. * @param PermissionGrantsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/group-list-permissiongrants?view=graph-rest-1.0 Find more info here @@ -123,7 +123,7 @@ public function post(ResourceSpecificPermissionGrant $body, ?PermissionGrantsReq } /** - * List all resource-specific permission grants on the group. This list specifies the Azure AD apps that have access to the group, along with the corresponding kind of resource-specific access that each app has. + * List all resource-specific permission grants on the group. This list specifies the Azure AD apps that have access to the group, along with the corresponding kind of resource-specific access that each app has. This API is supported in the following national cloud deployments. * @param PermissionGrantsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilderGetQueryParameters.php index 77c8ec8fb3d..1cd02aaae6f 100644 --- a/src/Generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List all resource-specific permission grants on the group. This list specifies the Azure AD apps that have access to the group, along with the corresponding kind of resource-specific access that each app has. + * List all resource-specific permission grants on the group. This list specifies the Azure AD apps that have access to the group, along with the corresponding kind of resource-specific access that each app has. This API is supported in the following national cloud deployments. */ class PermissionGrantsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/Groups/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.php index 5b8b961e84c..1684c82e44a 100644 --- a/src/Generated/Groups/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/Groups/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ValidatePropertiesPostRequestBody $body, ?ValidatePropertie } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Photos/PhotosRequestBuilder.php b/src/Generated/Groups/Item/Photos/PhotosRequestBuilder.php index 6b9bfffd6f3..0a047be4195 100644 --- a/src/Generated/Groups/Item/Photos/PhotosRequestBuilder.php +++ b/src/Generated/Groups/Item/Photos/PhotosRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of profilePhoto objects. + * Retrieve a list of profilePhoto objects. This API is supported in the following national cloud deployments. * @param PhotosRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/group-list-photos?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?PhotosRequestBuilderGetRequestConfiguration $requestConfigu } /** - * Retrieve a list of profilePhoto objects. + * Retrieve a list of profilePhoto objects. This API is supported in the following national cloud deployments. * @param PhotosRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Photos/PhotosRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Photos/PhotosRequestBuilderGetQueryParameters.php index dcdd2a85328..150d4b6c381 100644 --- a/src/Generated/Groups/Item/Photos/PhotosRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Photos/PhotosRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of profilePhoto objects. + * Retrieve a list of profilePhoto objects. This API is supported in the following national cloud deployments. */ class PhotosRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.php b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.php index bc4ef1363b4..4ab8f311891 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of plannerBucket objects contained by a plannerPlan object. + * Retrieve a list of plannerBucket objects contained by a plannerPlan object. This API is supported in the following national cloud deployments. * @param BucketsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/plannerplan-list-buckets?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(PlannerBucket $body, ?BucketsRequestBuilderPostRequestConfi } /** - * Retrieve a list of plannerBucket objects contained by a plannerPlan object. + * Retrieve a list of plannerBucket objects contained by a plannerPlan object. This API is supported in the following national cloud deployments. * @param BucketsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilderGetQueryParameters.php index e045bad7ede..f38aabeade1 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of plannerBucket objects contained by a plannerPlan object. + * Retrieve a list of plannerBucket objects contained by a plannerPlan object. This API is supported in the following national cloud deployments. */ class BucketsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php index c91c2c5f53c..9a1c41c67e3 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?AssignedToTaskBoardFormatRequestBuilderDeleteRequestConf } /** - * Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + * Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. * @param AssignedToTaskBoardFormatRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/plannerassignedtotaskboardtaskformat-get?view=graph-rest-1.0 Find more info here @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?AssignedToTaskBoardFormatRequestBuil } /** - * Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + * Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. * @param AssignedToTaskBoardFormatRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilderGetQueryParameters.php index 7d78dda312a..d1d9ec84698 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + * Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. */ class AssignedToTaskBoardFormatRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php index 77dfeb18e47..efc2699f08a 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?BucketTaskBoardFormatRequestBuilderDeleteRequestConfigur } /** - * Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + * Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. * @param BucketTaskBoardFormatRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/plannerbuckettaskboardtaskformat-get?view=graph-rest-1.0 Find more info here @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?BucketTaskBoardFormatRequestBuilderD } /** - * Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + * Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. * @param BucketTaskBoardFormatRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilderGetQueryParameters.php index bc6ea93c1d8..c8084b647b6 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + * Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. */ class BucketTaskBoardFormatRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.php b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.php index e80ad5ef61f..eaefb9c632f 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?DetailsRequestBuilderDeleteRequestConfiguration $request } /** - * Retrieve the properties and relationships of a plannerTaskDetails object. + * Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. * @param DetailsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/plannertaskdetails-get?view=graph-rest-1.0 Find more info here @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?DetailsRequestBuilderDeleteRequestCo } /** - * Retrieve the properties and relationships of a plannerTaskDetails object. + * Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. * @param DetailsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilderGetQueryParameters.php index c6a733fccbd..82509a395cf 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a plannerTaskDetails object. + * Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. */ class DetailsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php index c53db4d95a6..1e2a3c3b54b 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?ProgressTaskBoardFormatRequestBuilderDeleteRequestConfig } /** - * Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + * Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. * @param ProgressTaskBoardFormatRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/plannerprogresstaskboardtaskformat-get?view=graph-rest-1.0 Find more info here @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?ProgressTaskBoardFormatRequestBuilde } /** - * Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + * Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. * @param ProgressTaskBoardFormatRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilderGetQueryParameters.php index d4591c9d2dc..6ded1c99515 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + * Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. */ class ProgressTaskBoardFormatRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.php b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.php index 72ff65e404a..efee758fd36 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of plannerTask objects associated to a plannerBucket object. + * Retrieve a list of plannerTask objects associated to a plannerBucket object. This API is supported in the following national cloud deployments. * @param TasksRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/plannerbucket-list-tasks?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(PlannerTask $body, ?TasksRequestBuilderPostRequestConfigura } /** - * Retrieve a list of plannerTask objects associated to a plannerBucket object. + * Retrieve a list of plannerTask objects associated to a plannerBucket object. This API is supported in the following national cloud deployments. * @param TasksRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilderGetQueryParameters.php index c6fa00a79e9..e628940e22a 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of plannerTask objects associated to a plannerBucket object. + * Retrieve a list of plannerTask objects associated to a plannerBucket object. This API is supported in the following national cloud deployments. */ class TasksRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.php b/src/Generated/Groups/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.php index 75eb6e6d794..6324df4b0c1 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?DetailsRequestBuilderDeleteRequestConfiguration $request } /** - * Retrieve the properties and relationships of a plannerPlanDetails object. + * Retrieve the properties and relationships of a plannerPlanDetails object. This API is supported in the following national cloud deployments. * @param DetailsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/plannerplandetails-get?view=graph-rest-1.0 Find more info here @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?DetailsRequestBuilderDeleteRequestCo } /** - * Retrieve the properties and relationships of a plannerPlanDetails object. + * Retrieve the properties and relationships of a plannerPlanDetails object. This API is supported in the following national cloud deployments. * @param DetailsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Details/DetailsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Planner/Plans/Item/Details/DetailsRequestBuilderGetQueryParameters.php index 01755db7023..10e4a4756a6 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Details/DetailsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Details/DetailsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a plannerPlanDetails object. + * Retrieve the properties and relationships of a plannerPlanDetails object. This API is supported in the following national cloud deployments. */ class DetailsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php b/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php index b39f554871b..3087295a7db 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?AssignedToTaskBoardFormatRequestBuilderDeleteRequestConf } /** - * Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + * Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. * @param AssignedToTaskBoardFormatRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/plannerassignedtotaskboardtaskformat-get?view=graph-rest-1.0 Find more info here @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?AssignedToTaskBoardFormatRequestBuil } /** - * Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + * Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. * @param AssignedToTaskBoardFormatRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilderGetQueryParameters.php index cbeb797d3e4..cc6f7d05b7a 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + * Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. */ class AssignedToTaskBoardFormatRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php b/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php index f989c9279e0..cf79bfb4b32 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?BucketTaskBoardFormatRequestBuilderDeleteRequestConfigur } /** - * Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + * Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. * @param BucketTaskBoardFormatRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/plannerbuckettaskboardtaskformat-get?view=graph-rest-1.0 Find more info here @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?BucketTaskBoardFormatRequestBuilderD } /** - * Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + * Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. * @param BucketTaskBoardFormatRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilderGetQueryParameters.php index cf47d80e575..280867a7294 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + * Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. */ class BucketTaskBoardFormatRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.php b/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.php index 8f26aececc4..1a7a1f4a7e4 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?DetailsRequestBuilderDeleteRequestConfiguration $request } /** - * Retrieve the properties and relationships of a plannerTaskDetails object. + * Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. * @param DetailsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/plannertaskdetails-get?view=graph-rest-1.0 Find more info here @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?DetailsRequestBuilderDeleteRequestCo } /** - * Retrieve the properties and relationships of a plannerTaskDetails object. + * Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. * @param DetailsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilderGetQueryParameters.php index db6bd86611a..e53be86c20b 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a plannerTaskDetails object. + * Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. */ class DetailsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php b/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php index 2fb5d01e61b..21dc6a17701 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?ProgressTaskBoardFormatRequestBuilderDeleteRequestConfig } /** - * Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + * Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. * @param ProgressTaskBoardFormatRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/plannerprogresstaskboardtaskformat-get?view=graph-rest-1.0 Find more info here @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?ProgressTaskBoardFormatRequestBuilde } /** - * Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + * Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. * @param ProgressTaskBoardFormatRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilderGetQueryParameters.php index bd0bd37e65e..78069989744 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + * Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. */ class ProgressTaskBoardFormatRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.php b/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.php index 20d330ae417..269ca7cfc02 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of plannerTask objects associated with a plannerPlan object. + * Retrieve a list of plannerTask objects associated with a plannerPlan object. This API is supported in the following national cloud deployments. * @param TasksRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/plannerplan-list-tasks?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(PlannerTask $body, ?TasksRequestBuilderPostRequestConfigura } /** - * Retrieve a list of plannerTask objects associated with a plannerPlan object. + * Retrieve a list of plannerTask objects associated with a plannerPlan object. This API is supported in the following national cloud deployments. * @param TasksRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/TasksRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/TasksRequestBuilderGetQueryParameters.php index dfae3efd046..56854b51dd0 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/TasksRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/TasksRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of plannerTask objects associated with a plannerPlan object. + * Retrieve a list of plannerTask objects associated with a plannerPlan object. This API is supported in the following national cloud deployments. */ class TasksRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Planner/Plans/PlansRequestBuilder.php b/src/Generated/Groups/Item/Planner/Plans/PlansRequestBuilder.php index dce5f0e206c..a377ac1dc7c 100644 --- a/src/Generated/Groups/Item/Planner/Plans/PlansRequestBuilder.php +++ b/src/Generated/Groups/Item/Planner/Plans/PlansRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of plannerPlan objects owned by a group object. + * Retrieve a list of plannerPlan objects owned by a group object. This API is supported in the following national cloud deployments. * @param PlansRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/plannergroup-list-plans?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(PlannerPlan $body, ?PlansRequestBuilderPostRequestConfigura } /** - * Retrieve a list of plannerPlan objects owned by a group object. + * Retrieve a list of plannerPlan objects owned by a group object. This API is supported in the following national cloud deployments. * @param PlansRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Planner/Plans/PlansRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Planner/Plans/PlansRequestBuilderGetQueryParameters.php index ca51aa16eab..c3e95c97f77 100644 --- a/src/Generated/Groups/Item/Planner/Plans/PlansRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Planner/Plans/PlansRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of plannerPlan objects owned by a group object. + * Retrieve a list of plannerPlan objects owned by a group object. This API is supported in the following national cloud deployments. */ class PlansRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.php b/src/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.php index c2074f79648..308edb206c6 100644 --- a/src/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.php +++ b/src/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.php @@ -33,7 +33,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Users in the rejected senders list cannot post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the rejected senders and accepted senders lists, otherwise you will get an error. + * Users in the rejected senders list can't post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you get an error. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/group-list-rejectedsenders?view=graph-rest-1.0 Find more info here @@ -52,7 +52,7 @@ public function get(?RefRequestBuilderGetRequestConfiguration $requestConfigurat } /** - * Specify the user or group in @odata.id in the request body. Users in the rejected senders list can't post to conversations of the group (identified in the POST request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you'll get an error. + * Specify the user or group in @odata.id in the request body. Users in the rejected senders list can't post to conversations of the group (identified in the POST request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you'll get an error. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -72,7 +72,7 @@ public function post(ReferenceCreate $body, ?RefRequestBuilderPostRequestConfigu } /** - * Users in the rejected senders list cannot post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the rejected senders and accepted senders lists, otherwise you will get an error. + * Users in the rejected senders list can't post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you get an error. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -93,7 +93,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } /** - * Specify the user or group in @odata.id in the request body. Users in the rejected senders list can't post to conversations of the group (identified in the POST request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you'll get an error. + * Specify the user or group in @odata.id in the request body. Users in the rejected senders list can't post to conversations of the group (identified in the POST request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you'll get an error. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilderGetQueryParameters.php index 8e8fd7f0794..baf0a8e31f9 100644 --- a/src/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Users in the rejected senders list cannot post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the rejected senders and accepted senders lists, otherwise you will get an error. + * Users in the rejected senders list can't post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you get an error. This API is supported in the following national cloud deployments. */ class RefRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/RejectedSenders/RejectedSendersRequestBuilder.php b/src/Generated/Groups/Item/RejectedSenders/RejectedSendersRequestBuilder.php index 91b41e0ff46..8cb01b4c504 100644 --- a/src/Generated/Groups/Item/RejectedSenders/RejectedSendersRequestBuilder.php +++ b/src/Generated/Groups/Item/RejectedSenders/RejectedSendersRequestBuilder.php @@ -60,7 +60,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Users in the rejected senders list cannot post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the rejected senders and accepted senders lists, otherwise you will get an error. + * Users in the rejected senders list can't post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you get an error. This API is supported in the following national cloud deployments. * @param RejectedSendersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/group-list-rejectedsenders?view=graph-rest-1.0 Find more info here @@ -79,7 +79,7 @@ public function get(?RejectedSendersRequestBuilderGetRequestConfiguration $reque } /** - * Users in the rejected senders list cannot post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the rejected senders and accepted senders lists, otherwise you will get an error. + * Users in the rejected senders list can't post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you get an error. This API is supported in the following national cloud deployments. * @param RejectedSendersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/RejectedSenders/RejectedSendersRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/RejectedSenders/RejectedSendersRequestBuilderGetQueryParameters.php index 361ac3ca544..49f05154c7f 100644 --- a/src/Generated/Groups/Item/RejectedSenders/RejectedSendersRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/RejectedSenders/RejectedSendersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Users in the rejected senders list cannot post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the rejected senders and accepted senders lists, otherwise you will get an error. + * Users in the rejected senders list can't post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you get an error. This API is supported in the following national cloud deployments. */ class RejectedSendersRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/RemoveFavorite/RemoveFavoriteRequestBuilder.php b/src/Generated/Groups/Item/RemoveFavorite/RemoveFavoriteRequestBuilder.php index ed8e62e6ea3..f7f0c58faa5 100644 --- a/src/Generated/Groups/Item/RemoveFavorite/RemoveFavoriteRequestBuilder.php +++ b/src/Generated/Groups/Item/RemoveFavorite/RemoveFavoriteRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove the group from the list of the current user's favorite groups. Supported for Microsoft 365 groups only. + * Remove the group from the list of the current user's favorite groups. Supported for Microsoft 365 groups only. This API is supported in the following national cloud deployments. * @param RemoveFavoriteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/group-removefavorite?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?RemoveFavoriteRequestBuilderPostRequestConfiguration $requ } /** - * Remove the group from the list of the current user's favorite groups. Supported for Microsoft 365 groups only. + * Remove the group from the list of the current user's favorite groups. Supported for Microsoft 365 groups only. This API is supported in the following national cloud deployments. * @param RemoveFavoriteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Renew/RenewRequestBuilder.php b/src/Generated/Groups/Item/Renew/RenewRequestBuilder.php index a5858634f71..81501b7d3d1 100644 --- a/src/Generated/Groups/Item/Renew/RenewRequestBuilder.php +++ b/src/Generated/Groups/Item/Renew/RenewRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Renews a group's expiration. When a group is renewed, the group expiration is extended by the number of days defined in the policy. + * Renews a group's expiration. When a group is renewed, the group expiration is extended by the number of days defined in the policy. This API is supported in the following national cloud deployments. * @param RenewRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/group-renew?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?RenewRequestBuilderPostRequestConfiguration $requestConfig } /** - * Renews a group's expiration. When a group is renewed, the group expiration is extended by the number of days defined in the policy. + * Renews a group's expiration. When a group is renewed, the group expiration is extended by the number of days defined in the policy. This API is supported in the following national cloud deployments. * @param RenewRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/ResetUnseenCount/ResetUnseenCountRequestBuilder.php b/src/Generated/Groups/Item/ResetUnseenCount/ResetUnseenCountRequestBuilder.php index 15221cc343c..d93f7ca7d01 100644 --- a/src/Generated/Groups/Item/ResetUnseenCount/ResetUnseenCountRequestBuilder.php +++ b/src/Generated/Groups/Item/ResetUnseenCount/ResetUnseenCountRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Reset the unseenCount of all the posts that the current user has not seen since their last visit. Supported for Microsoft 365 groups only. + * Reset the unseenCount of all the posts that the current user hasn't seen since their last visit. Supported for Microsoft 365 groups only. This API is supported in the following national cloud deployments. * @param ResetUnseenCountRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/group-resetunseencount?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ResetUnseenCountRequestBuilderPostRequestConfiguration $re } /** - * Reset the unseenCount of all the posts that the current user has not seen since their last visit. Supported for Microsoft 365 groups only. + * Reset the unseenCount of all the posts that the current user hasn't seen since their last visit. Supported for Microsoft 365 groups only. This API is supported in the following national cloud deployments. * @param ResetUnseenCountRequestBuilderPostRequestConfiguration|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 4ff6e22004c..76d5e3bd149 100644 --- a/src/Generated/Groups/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Groups/Item/Restore/RestoreRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. * @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/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..baa0553682c --- /dev/null +++ b/src/Generated/Groups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/serviceProvisioningErrors/$count{?%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..4204af1a1c3 --- /dev/null +++ b/src/Generated/Groups/Item/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,26 @@ +filter = $filter; + } + +} diff --git a/src/Generated/Groups/Item/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Groups/Item/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..37e0e186c2b --- /dev/null +++ b/src/Generated/Groups/Item/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,38 @@ +|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 + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter); + } + +} diff --git a/src/Generated/Groups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Groups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..1711b36dfb3 --- /dev/null +++ b/src/Generated/Groups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Groups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..7957ab2eaf3 --- /dev/null +++ b/src/Generated/Groups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/Groups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e03c6ed0523 --- /dev/null +++ b/src/Generated/Groups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Groups/Item/Settings/Item/GroupSettingItemRequestBuilder.php b/src/Generated/Groups/Item/Settings/Item/GroupSettingItemRequestBuilder.php index 07ce5bb03c6..4b820a4612c 100644 --- a/src/Generated/Groups/Item/Settings/Item/GroupSettingItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Settings/Item/GroupSettingItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?GroupSettingItemRequestBuilderDeleteRequestConfiguration } /** - * Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. + * Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. This API is supported in the following national cloud deployments. * @param GroupSettingItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/groupsetting-get?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?GroupSettingItemRequestBuilderGetRequestConfiguration $requ } /** - * Update the properties of a groupSetting object for tenant-wide group settings or a specific group setting. + * Update the properties of a groupSetting object for tenant-wide group settings or a specific group setting. This API is supported in the following national cloud deployments. * @param GroupSetting $body The request body * @param GroupSettingItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?GroupSettingItemRequestBuilderDelete } /** - * Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. + * Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. This API is supported in the following national cloud deployments. * @param GroupSettingItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -127,7 +127,7 @@ public function toGetRequestInformation(?GroupSettingItemRequestBuilderGetReques } /** - * Update the properties of a groupSetting object for tenant-wide group settings or a specific group setting. + * Update the properties of a groupSetting object for tenant-wide group settings or a specific group setting. This API is supported in the following national cloud deployments. * @param GroupSetting $body The request body * @param GroupSettingItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Settings/Item/GroupSettingItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Settings/Item/GroupSettingItemRequestBuilderGetQueryParameters.php index 8e918e175ce..e3fe1f37bb6 100644 --- a/src/Generated/Groups/Item/Settings/Item/GroupSettingItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Settings/Item/GroupSettingItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. + * Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. This API is supported in the following national cloud deployments. */ class GroupSettingItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Settings/SettingsRequestBuilder.php b/src/Generated/Groups/Item/Settings/SettingsRequestBuilder.php index b937ca9637c..37f50339356 100644 --- a/src/Generated/Groups/Item/Settings/SettingsRequestBuilder.php +++ b/src/Generated/Groups/Item/Settings/SettingsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of tenant-level or group-specific group settings objects. + * Retrieve a list of tenant-level or group-specific group settings objects. This API is supported in the following national cloud deployments. * @param SettingsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/group-list-settings?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?SettingsRequestBuilderGetRequestConfiguration $requestConfi } /** - * Create a new setting based on the templates available in groupSettingTemplates. These settings can be at the tenant-level or at the group level. Group settings apply to only Microsoft 365 groups. The template named Group.Unified can be used to configure tenant-wide Microsoft 365 group settings, while the template named Group.Unified.Guest can be used to configure group-specific settings. + * Create a new setting based on the templates available in groupSettingTemplates. These settings can be at the tenant-level or at the group level. Group settings apply to only Microsoft 365 groups. The template named Group.Unified can be used to configure tenant-wide Microsoft 365 group settings, while the template named Group.Unified.Guest can be used to configure group-specific settings. This API is supported in the following national cloud deployments. * @param GroupSetting $body The request body * @param SettingsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(GroupSetting $body, ?SettingsRequestBuilderPostRequestConfi } /** - * Retrieve a list of tenant-level or group-specific group settings objects. + * Retrieve a list of tenant-level or group-specific group settings objects. This API is supported in the following national cloud deployments. * @param SettingsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?SettingsRequestBuilderGetRequestConfigu } /** - * Create a new setting based on the templates available in groupSettingTemplates. These settings can be at the tenant-level or at the group level. Group settings apply to only Microsoft 365 groups. The template named Group.Unified can be used to configure tenant-wide Microsoft 365 group settings, while the template named Group.Unified.Guest can be used to configure group-specific settings. + * Create a new setting based on the templates available in groupSettingTemplates. These settings can be at the tenant-level or at the group level. Group settings apply to only Microsoft 365 groups. The template named Group.Unified can be used to configure tenant-wide Microsoft 365 group settings, while the template named Group.Unified.Guest can be used to configure group-specific settings. This API is supported in the following national cloud deployments. * @param GroupSetting $body The request body * @param SettingsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Settings/SettingsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Settings/SettingsRequestBuilderGetQueryParameters.php index 7de407d2294..f2d22b0e183 100644 --- a/src/Generated/Groups/Item/Settings/SettingsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Settings/SettingsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of tenant-level or group-specific group settings objects. + * Retrieve a list of tenant-level or group-specific group settings objects. This API is supported in the following national cloud deployments. */ class SettingsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Add/AddPostResponse.php b/src/Generated/Groups/Item/Sites/Add/AddPostResponse.php new file mode 100644 index 00000000000..dd8bb2a7faa --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Add/AddPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Site::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, Site::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/Groups/Item/Sites/Add/AddRequestBuilder.php b/src/Generated/Groups/Item/Sites/Add/AddRequestBuilder.php index 709908fa1e4..9a00a87be1c 100644 --- a/src/Generated/Groups/Item/Sites/Add/AddRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Add/AddRequestBuilder.php @@ -44,7 +44,7 @@ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConf '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [AddResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [AddPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/Sites/Add/AddResponse.php b/src/Generated/Groups/Item/Sites/Add/AddResponse.php deleted file mode 100644 index bc8e7804af0..00000000000 --- a/src/Generated/Groups/Item/Sites/Add/AddResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Site::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, Site::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/Groups/Item/Sites/GetAllSites/GetAllSitesGetResponse.php b/src/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesGetResponse.php new file mode 100644 index 00000000000..e7abd7ecdab --- /dev/null +++ b/src/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Site::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, Site::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/Groups/Item/Sites/GetAllSites/GetAllSitesRequestBuilder.php b/src/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesRequestBuilder.php index d26fe6de0d3..a69086d8f7e 100644 --- a/src/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?GetAllSitesRequestBuilderGetRequestConfiguration $requestCo '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetAllSitesResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetAllSitesGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesResponse.php b/src/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesResponse.php deleted file mode 100644 index 965e273432a..00000000000 --- a/src/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Site::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, Site::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/Groups/Item/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.php index 75a4f0e9559..efdd98341d9 100644 --- a/src/Generated/Groups/Item/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the [getActivitiesByInterval][] API. + * Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the getActivitiesByInterval][] API. This API is supported in the following [national cloud deployments. * @param AllTimeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/itemanalytics-get?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function get(?AllTimeRequestBuilderGetRequestConfiguration $requestConfig } /** - * Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the [getActivitiesByInterval][] API. + * Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the getActivitiesByInterval][] API. This API is supported in the following [national cloud deployments. * @param AllTimeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/Analytics/AllTime/AllTimeRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Analytics/AllTime/AllTimeRequestBuilderGetQueryParameters.php index d5265d586de..1e257596390 100644 --- a/src/Generated/Groups/Item/Sites/Item/Analytics/AllTime/AllTimeRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Analytics/AllTime/AllTimeRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the [getActivitiesByInterval][] API. + * Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the getActivitiesByInterval][] API. This API is supported in the following [national cloud deployments. */ class AllTimeRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Columns/ColumnsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Columns/ColumnsRequestBuilder.php index 94f847bdc05..5c03a8503a4 100644 --- a/src/Generated/Groups/Item/Sites/Item/Columns/ColumnsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Columns/ColumnsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [site][site]. + * Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [site][site]. This API is supported in the following [national cloud deployments. * @param ColumnsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/site-list-columns?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ColumnsRequestBuilderGetRequestConfiguration $requestConfig } /** - * Create a column for a [site][site] with a request that specifies a [columnDefinition][columnDefinition]. + * Create a column for a site][site] with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. * @param ColumnDefinition $body The request body * @param ColumnsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(ColumnDefinition $body, ?ColumnsRequestBuilderPostRequestCo } /** - * Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [site][site]. + * Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [site][site]. This API is supported in the following [national cloud deployments. * @param ColumnsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur } /** - * Create a column for a [site][site] with a request that specifies a [columnDefinition][columnDefinition]. + * Create a column for a site][site] with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. * @param ColumnDefinition $body The request body * @param ColumnsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php index 87c8e084203..7e91ee603cc 100644 --- a/src/Generated/Groups/Item/Sites/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [site][site]. + * Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [site][site]. This API is supported in the following [national cloud deployments. */ class ColumnsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.php index 4897ce0ddba..842d8d9e723 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Add a copy of a [content type][contentType] from a [site][site] to a [list][list]. + * Add a copy of a content type][contentType] from a [site][site] to a [list][list]. This API is supported in the following [national cloud deployments. * @param AddCopyPostRequestBody $body The request body * @param AddCopyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(AddCopyPostRequestBody $body, ?AddCopyRequestBuilderPostReq } /** - * Add a copy of a [content type][contentType] from a [site][site] to a [list][list]. + * Add a copy of a content type][contentType] from a [site][site] to a [list][list]. This API is supported in the following [national cloud deployments. * @param AddCopyPostRequestBody $body The request body * @param AddCopyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php index 806607b785d..8accccb75a2 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. + * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. This API is supported in the following national cloud deployments. * @param AddCopyFromContentTypeHubPostRequestBody $body The request body * @param AddCopyFromContentTypeHubRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(AddCopyFromContentTypeHubPostRequestBody $body, ?AddCopyFro } /** - * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. + * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. This API is supported in the following national cloud deployments. * @param AddCopyFromContentTypeHubPostRequestBody $body The request body * @param AddCopyFromContentTypeHubRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/ContentTypesRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/ContentTypesRequestBuilder.php index 387d2299ff2..29de9438fd3 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/ContentTypesRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/ContentTypesRequestBuilder.php @@ -77,7 +77,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the collection of [contentType][contentType] resources in a [site][]. + * Get the collection of contentType][contentType] resources in a [site][]. This API is supported in the following [national cloud deployments. * @param ContentTypesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/site-list-contenttypes?view=graph-rest-1.0 Find more info here @@ -96,7 +96,7 @@ public function get(?ContentTypesRequestBuilderGetRequestConfiguration $requestC } /** - * Create a new [contentType][] in a [site][]. + * Create a new contentType][] in a [site][]. This API is supported in the following [national cloud deployments. * @param ContentType $body The request body * @param ContentTypesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -116,7 +116,7 @@ public function post(ContentType $body, ?ContentTypesRequestBuilderPostRequestCo } /** - * Get the collection of [contentType][contentType] resources in a [site][]. + * Get the collection of contentType][contentType] resources in a [site][]. This API is supported in the following [national cloud deployments. * @param ContentTypesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -137,7 +137,7 @@ public function toGetRequestInformation(?ContentTypesRequestBuilderGetRequestCon } /** - * Create a new [contentType][] in a [site][]. + * Create a new contentType][] in a [site][]. This API is supported in the following [national cloud deployments. * @param ContentType $body The request body * @param ContentTypesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/ContentTypesRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/ContentTypesRequestBuilderGetQueryParameters.php index 32e7786732e..39ad57ddc8b 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/ContentTypesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/ContentTypesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the collection of [contentType][contentType] resources in a [site][]. + * Get the collection of contentType][contentType] resources in a [site][]. This API is supported in the following [national cloud deployments. */ class ContentTypesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.php new file mode 100644 index 00000000000..a28ee3dc142 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ContentType::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, ContentType::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/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php index 0093c6ebc7b..347089858de 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?GetCompatibleHubContentTypesRequestBuilderGetRequestConfigu '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetCompatibleHubContentTypesResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetCompatibleHubContentTypesGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.php deleted file mode 100644 index 8357cd5a8cc..00000000000 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ContentType::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, ContentType::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/Groups/Item/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.php index 39b91264d68..130af2c7299 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Associate a published [content type][contentType] present in a content type hub with a list of hub sites. + * Associate a published content type][contentType] present in a content type hub with a list of hub sites. This API is supported in the following [national cloud deployments. * @param AssociateWithHubSitesPostRequestBody $body The request body * @param AssociateWithHubSitesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(AssociateWithHubSitesPostRequestBody $body, ?AssociateWithH } /** - * Associate a published [content type][contentType] present in a content type hub with a list of hub sites. + * Associate a published content type][contentType] present in a content type hub with a list of hub sites. This API is supported in the following [national cloud deployments. * @param AssociateWithHubSitesPostRequestBody $body The request body * @param AssociateWithHubSitesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.php index c39d1955972..a6c0dd0e626 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + * Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [content type][contentType]. This API is supported in the following [national cloud deployments. * @param ColumnsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/contenttype-list-columns?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ColumnsRequestBuilderGetRequestConfiguration $requestConfig } /** - * Add a column to a [content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. + * Add a column to a content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. * @param ColumnDefinition $body The request body * @param ColumnsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(ColumnDefinition $body, ?ColumnsRequestBuilderPostRequestCo } /** - * Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + * Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [content type][contentType]. This API is supported in the following [national cloud deployments. * @param ColumnsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur } /** - * Add a column to a [content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. + * Add a column to a content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. * @param ColumnDefinition $body The request body * @param ColumnsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php index 46c1fc4d233..5d86b6dd4d0 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + * Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [content type][contentType]. This API is supported in the following [national cloud deployments. */ class ColumnsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php index 53127ebb0ba..f75dacac502 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove a [column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. + * Remove a column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. This API is supported in the following [national cloud deployments. * @param ColumnDefinitionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/columndefinition-delete?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function delete(?ColumnDefinitionItemRequestBuilderDeleteRequestConfigura } /** - * Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + * Retrieve the metadata for a site][], a [list][], or a [contentType][] [column][columnDefinition]. This API is supported in the following [national cloud deployments. * @param ColumnDefinitionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/columndefinition-get?view=graph-rest-1.0 Find more info here @@ -78,7 +78,7 @@ public function get(?ColumnDefinitionItemRequestBuilderGetRequestConfiguration $ } /** - * Update a [site][], a [list][], or a [content type][contentType] [column][columnDefinition]. + * Update a site][], a [list][], or a [content type][contentType] [column][columnDefinition]. This API is supported in the following [national cloud deployments. * @param ColumnDefinition $body The request body * @param ColumnDefinitionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -98,7 +98,7 @@ public function patch(ColumnDefinition $body, ?ColumnDefinitionItemRequestBuilde } /** - * Remove a [column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. + * Remove a column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. This API is supported in the following [national cloud deployments. * @param ColumnDefinitionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -115,7 +115,7 @@ public function toDeleteRequestInformation(?ColumnDefinitionItemRequestBuilderDe } /** - * Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + * Retrieve the metadata for a site][], a [list][], or a [contentType][] [column][columnDefinition]. This API is supported in the following [national cloud deployments. * @param ColumnDefinitionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -136,7 +136,7 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe } /** - * Update a [site][], a [list][], or a [content type][contentType] [column][columnDefinition]. + * Update a site][], a [list][], or a [content type][contentType] [column][columnDefinition]. This API is supported in the following [national cloud deployments. * @param ColumnDefinition $body The request body * @param ColumnDefinitionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilderGetQueryParameters.php index e476e98cff1..873e6690042 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + * Retrieve the metadata for a site][], a [list][], or a [contentType][] [column][columnDefinition]. This API is supported in the following [national cloud deployments. */ class ColumnDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.php index 1ad087e1d2a..494eedd2979 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.php @@ -112,7 +112,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove a [content type][contentType] from a [list][] or a [site][]. + * Remove a content type][contentType] from a [list][] or a [site][]. This API is supported in the following [national cloud deployments. * @param ContentTypeItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/contenttype-delete?view=graph-rest-1.0 Find more info here @@ -131,7 +131,7 @@ public function delete(?ContentTypeItemRequestBuilderDeleteRequestConfiguration } /** - * Retrieve the metadata for a [content type][contentType] in a [site][] or a [list][]. + * Retrieve the metadata for a content type][contentType] in a [site][] or a [list][]. This API is supported in the following [national cloud deployments. * @param ContentTypeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/contenttype-get?view=graph-rest-1.0 Find more info here @@ -150,7 +150,7 @@ public function get(?ContentTypeItemRequestBuilderGetRequestConfiguration $reque } /** - * Update a [content type][contentType]. + * Update a content type][contentType]. This API is supported in the following [national cloud deployments. * @param ContentType $body The request body * @param ContentTypeItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -170,7 +170,7 @@ public function patch(ContentType $body, ?ContentTypeItemRequestBuilderPatchRequ } /** - * Remove a [content type][contentType] from a [list][] or a [site][]. + * Remove a content type][contentType] from a [list][] or a [site][]. This API is supported in the following [national cloud deployments. * @param ContentTypeItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -187,7 +187,7 @@ public function toDeleteRequestInformation(?ContentTypeItemRequestBuilderDeleteR } /** - * Retrieve the metadata for a [content type][contentType] in a [site][] or a [list][]. + * Retrieve the metadata for a content type][contentType] in a [site][] or a [list][]. This API is supported in the following [national cloud deployments. * @param ContentTypeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -208,7 +208,7 @@ public function toGetRequestInformation(?ContentTypeItemRequestBuilderGetRequest } /** - * Update a [content type][contentType]. + * Update a content type][contentType]. This API is supported in the following [national cloud deployments. * @param ContentType $body The request body * @param ContentTypeItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilderGetQueryParameters.php index d1ffa42c778..b2cbacfe578 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the metadata for a [content type][contentType] in a [site][] or a [list][]. + * Retrieve the metadata for a content type][contentType] in a [site][] or a [list][]. This API is supported in the following [national cloud deployments. */ class ContentTypeItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.php index daca9afdf64..5d18b013895 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. + * Copy a file to a default content location in a content type][contentType]. The file can then be added as a default file or template via a POST operation. This API is supported in the following [national cloud deployments. * @param CopyToDefaultContentLocationPostRequestBody $body The request body * @param CopyToDefaultContentLocationRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(CopyToDefaultContentLocationPostRequestBody $body, ?CopyToD } /** - * Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. + * Copy a file to a default content location in a content type][contentType]. The file can then be added as a default file or template via a POST operation. This API is supported in the following [national cloud deployments. * @param CopyToDefaultContentLocationPostRequestBody $body The request body * @param CopyToDefaultContentLocationRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.php new file mode 100644 index 00000000000..f24cbaeb300 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.php @@ -0,0 +1,114 @@ +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 IsPublishedGetResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IsPublishedGetResponse { + return new IsPublishedGetResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return bool|null + */ + public function getValue(): ?bool { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_bool($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 { + $writer->writeBooleanValue('value', $this->getValue()); + $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 value property value. The value property + * @param bool|null $value Value to set for the value property. + */ + public function setValue(?bool $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.php index e0de2d149c0..01783737516 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?IsPublishedRequestBuilderGetRequestConfiguration $requestCo '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [IsPublishedResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [IsPublishedGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedResponse.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedResponse.php deleted file mode 100644 index 000f99c0b12..00000000000 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 IsPublishedResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IsPublishedResponse { - return new IsPublishedResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return bool|null - */ - public function getValue(): ?bool { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_bool($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 { - $writer->writeBooleanValue('value', $this->getValue()); - $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 value property value. The value property - * @param bool|null $value Value to set for the value property. - */ - public function setValue(?bool $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Publish/PublishRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Publish/PublishRequestBuilder.php index 6c1de5157e0..b614597638d 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Publish/PublishRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Publish/PublishRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Publishes a [contentType][] present in the content type hub site. + * Publishes a contentType][] present in the content type hub site. This API is supported in the following [national cloud deployments. * @param PublishRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/contenttype-publish?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?PublishRequestBuilderPostRequestConfiguration $requestConf } /** - * Publishes a [contentType][] present in the content type hub site. + * Publishes a contentType][] present in the content type hub site. This API is supported in the following [national cloud deployments. * @param PublishRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.php index fb0466ad3be..c5ecfd3a29a 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Unpublish a [contentType][] from a content type hub site. + * Unpublish a contentType][] from a content type hub site. This API is supported in the following [national cloud deployments. * @param UnpublishRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/contenttype-unpublish?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?UnpublishRequestBuilderPostRequestConfiguration $requestCo } /** - * Unpublish a [contentType][] from a content type hub site. + * Unpublish a contentType][] from a content type hub site. This API is supported in the following [national cloud deployments. * @param UnpublishRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.php index 0a891c93bef..6af0adc667f 100644 --- a/src/Generated/Groups/Item/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\Groups\Item\Sites\Item\CreatedByUser\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\Groups\Item\Sites\Item\CreatedByUser\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new CreatedByUserRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..62277a9635a --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/sites/{site%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..0b6907bef55 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..1d6adafdade --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/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/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..bb05348a814 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/sites/{site%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..39dc62a7d50 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..ddc2011ace4 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.php b/src/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.php new file mode 100644 index 00000000000..d4c3dd6d70f --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ItemActivityStat::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, ItemActivityStat::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/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php index 58a99285e62..24e40d02c42 100644 --- a/src/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?GetActivitiesByIntervalRequestBuilderGetRequestConfiguratio '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetActivitiesByIntervalResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetActivitiesByIntervalGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.php b/src/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.php deleted file mode 100644 index 47fea9405dc..00000000000 --- a/src/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ItemActivityStat::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, ItemActivityStat::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/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.php b/src/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.php new file mode 100644 index 00000000000..feca5471ccc --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ItemActivityStat::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, ItemActivityStat::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/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php index ef5a7c519ce..490536a2721 100644 --- a/src/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php @@ -49,7 +49,7 @@ public function get(?GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWith '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.php b/src/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.php deleted file mode 100644 index 3caccb0a993..00000000000 --- a/src/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ItemActivityStat::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, ItemActivityStat::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/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdGetResponse.php b/src/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdGetResponse.php new file mode 100644 index 00000000000..4ec9d52a900 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ContentType::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, ContentType::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/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.php index 8cb89102a09..c1085b8bf9f 100644 --- a/src/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.php @@ -45,7 +45,7 @@ public function get(?GetApplicableContentTypesForListWithListIdRequestBuilderGet '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetApplicableContentTypesForListWithListIdResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetApplicableContentTypesForListWithListIdGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdResponse.php b/src/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdResponse.php deleted file mode 100644 index 65eb9d4c8c5..00000000000 --- a/src/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ContentType::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, ContentType::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/Groups/Item/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php index 46dfe962706..2947b9fde84 100644 --- a/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\Groups\Item\Sites\Item\LastModifiedByUser\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\Groups\Item\Sites\Item\LastModifiedByUser\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..7aca3543483 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/sites/{site%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..248ffaed996 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..bce8e4db23f --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/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/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..ebd5712e13d --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/sites/{site%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..dc4095849f4 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..8d83e261e3a --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.php index 49642ada658..a63fa0356b4 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [list][list]. + * Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [list][list]. This API is supported in the following [national cloud deployments. * @param ColumnsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/list-list-columns?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ColumnsRequestBuilderGetRequestConfiguration $requestConfig } /** - * Create a column for a [list][list] with a request that specifies a [columnDefinition][columnDefinition]. + * Create a column for a list][list] with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. * @param ColumnDefinition $body The request body * @param ColumnsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(ColumnDefinition $body, ?ColumnsRequestBuilderPostRequestCo } /** - * Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [list][list]. + * Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [list][list]. This API is supported in the following [national cloud deployments. * @param ColumnsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur } /** - * Create a column for a [list][list] with a request that specifies a [columnDefinition][columnDefinition]. + * Create a column for a list][list] with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. * @param ColumnDefinition $body The request body * @param ColumnsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php index a4d4f95b4bb..7ccbb342152 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [list][list]. + * Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [list][list]. This API is supported in the following [national cloud deployments. */ class ColumnsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.php index 8060611a0a5..7555b0727a5 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Add a copy of a [content type][contentType] from a [site][site] to a [list][list]. + * Add a copy of a content type][contentType] from a [site][site] to a [list][list]. This API is supported in the following [national cloud deployments. * @param AddCopyPostRequestBody $body The request body * @param AddCopyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(AddCopyPostRequestBody $body, ?AddCopyRequestBuilderPostReq } /** - * Add a copy of a [content type][contentType] from a [site][site] to a [list][list]. + * Add a copy of a content type][contentType] from a [site][site] to a [list][list]. This API is supported in the following [national cloud deployments. * @param AddCopyPostRequestBody $body The request body * @param AddCopyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php index 679ec3fda67..a5d95993141 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. + * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. This API is supported in the following national cloud deployments. * @param AddCopyFromContentTypeHubPostRequestBody $body The request body * @param AddCopyFromContentTypeHubRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(AddCopyFromContentTypeHubPostRequestBody $body, ?AddCopyFro } /** - * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. + * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. This API is supported in the following national cloud deployments. * @param AddCopyFromContentTypeHubPostRequestBody $body The request body * @param AddCopyFromContentTypeHubRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.php index 01b27026dcc..2d3527c551e 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.php @@ -77,7 +77,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the collection of [contentType][contentType] resources in a [list][]. + * Get the collection of contentType][contentType] resources in a [list][]. This API is supported in the following [national cloud deployments. * @param ContentTypesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/list-list-contenttypes?view=graph-rest-1.0 Find more info here @@ -115,7 +115,7 @@ public function post(ContentType $body, ?ContentTypesRequestBuilderPostRequestCo } /** - * Get the collection of [contentType][contentType] resources in a [list][]. + * Get the collection of contentType][contentType] resources in a [list][]. This API is supported in the following [national cloud deployments. * @param ContentTypesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilderGetQueryParameters.php index 1e5ea3cf561..d6bc0e7039a 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the collection of [contentType][contentType] resources in a [list][]. + * Get the collection of contentType][contentType] resources in a [list][]. This API is supported in the following [national cloud deployments. */ class ContentTypesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.php new file mode 100644 index 00000000000..a81e3c89987 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ContentType::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, ContentType::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/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php index 71d046e51fd..db7ebc6056c 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?GetCompatibleHubContentTypesRequestBuilderGetRequestConfigu '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetCompatibleHubContentTypesResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetCompatibleHubContentTypesGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.php deleted file mode 100644 index da9b2cfbb31..00000000000 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ContentType::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, ContentType::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/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.php index bcd5e2edeac..de1d0a6d66d 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Associate a published [content type][contentType] present in a content type hub with a list of hub sites. + * Associate a published content type][contentType] present in a content type hub with a list of hub sites. This API is supported in the following [national cloud deployments. * @param AssociateWithHubSitesPostRequestBody $body The request body * @param AssociateWithHubSitesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(AssociateWithHubSitesPostRequestBody $body, ?AssociateWithH } /** - * Associate a published [content type][contentType] present in a content type hub with a list of hub sites. + * Associate a published content type][contentType] present in a content type hub with a list of hub sites. This API is supported in the following [national cloud deployments. * @param AssociateWithHubSitesPostRequestBody $body The request body * @param AssociateWithHubSitesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.php index a66b9a60fb7..9f5c810c737 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + * Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [content type][contentType]. This API is supported in the following [national cloud deployments. * @param ColumnsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/contenttype-list-columns?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ColumnsRequestBuilderGetRequestConfiguration $requestConfig } /** - * Add a column to a [content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. + * Add a column to a content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. * @param ColumnDefinition $body The request body * @param ColumnsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(ColumnDefinition $body, ?ColumnsRequestBuilderPostRequestCo } /** - * Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + * Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [content type][contentType]. This API is supported in the following [national cloud deployments. * @param ColumnsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur } /** - * Add a column to a [content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. + * Add a column to a content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. * @param ColumnDefinition $body The request body * @param ColumnsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php index 7f010a585ee..308279147e4 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + * Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [content type][contentType]. This API is supported in the following [national cloud deployments. */ class ColumnsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php index b57f6f4acca..662dcc43fa8 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove a [column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. + * Remove a column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. This API is supported in the following [national cloud deployments. * @param ColumnDefinitionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/columndefinition-delete?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function delete(?ColumnDefinitionItemRequestBuilderDeleteRequestConfigura } /** - * Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + * Retrieve the metadata for a site][], a [list][], or a [contentType][] [column][columnDefinition]. This API is supported in the following [national cloud deployments. * @param ColumnDefinitionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/columndefinition-get?view=graph-rest-1.0 Find more info here @@ -78,7 +78,7 @@ public function get(?ColumnDefinitionItemRequestBuilderGetRequestConfiguration $ } /** - * Update a [site][], a [list][], or a [content type][contentType] [column][columnDefinition]. + * Update a site][], a [list][], or a [content type][contentType] [column][columnDefinition]. This API is supported in the following [national cloud deployments. * @param ColumnDefinition $body The request body * @param ColumnDefinitionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -98,7 +98,7 @@ public function patch(ColumnDefinition $body, ?ColumnDefinitionItemRequestBuilde } /** - * Remove a [column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. + * Remove a column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. This API is supported in the following [national cloud deployments. * @param ColumnDefinitionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -115,7 +115,7 @@ public function toDeleteRequestInformation(?ColumnDefinitionItemRequestBuilderDe } /** - * Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + * Retrieve the metadata for a site][], a [list][], or a [contentType][] [column][columnDefinition]. This API is supported in the following [national cloud deployments. * @param ColumnDefinitionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -136,7 +136,7 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe } /** - * Update a [site][], a [list][], or a [content type][contentType] [column][columnDefinition]. + * Update a site][], a [list][], or a [content type][contentType] [column][columnDefinition]. This API is supported in the following [national cloud deployments. * @param ColumnDefinition $body The request body * @param ColumnDefinitionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilderGetQueryParameters.php index 39bda591cc8..d41154b297f 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + * Retrieve the metadata for a site][], a [list][], or a [contentType][] [column][columnDefinition]. This API is supported in the following [national cloud deployments. */ class ColumnDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.php index a1f1cd21661..aa732bb1e1c 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. + * Copy a file to a default content location in a content type][contentType]. The file can then be added as a default file or template via a POST operation. This API is supported in the following [national cloud deployments. * @param CopyToDefaultContentLocationPostRequestBody $body The request body * @param CopyToDefaultContentLocationRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(CopyToDefaultContentLocationPostRequestBody $body, ?CopyToD } /** - * Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. + * Copy a file to a default content location in a content type][contentType]. The file can then be added as a default file or template via a POST operation. This API is supported in the following [national cloud deployments. * @param CopyToDefaultContentLocationPostRequestBody $body The request body * @param CopyToDefaultContentLocationRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.php new file mode 100644 index 00000000000..b41ac7403ad --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.php @@ -0,0 +1,114 @@ +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 IsPublishedGetResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IsPublishedGetResponse { + return new IsPublishedGetResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return bool|null + */ + public function getValue(): ?bool { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_bool($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 { + $writer->writeBooleanValue('value', $this->getValue()); + $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 value property value. The value property + * @param bool|null $value Value to set for the value property. + */ + public function setValue(?bool $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.php index a8b4f3b0a8b..d19cd932274 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?IsPublishedRequestBuilderGetRequestConfiguration $requestCo '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [IsPublishedResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [IsPublishedGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedResponse.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedResponse.php deleted file mode 100644 index c2083add1a5..00000000000 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 IsPublishedResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IsPublishedResponse { - return new IsPublishedResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return bool|null - */ - public function getValue(): ?bool { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_bool($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 { - $writer->writeBooleanValue('value', $this->getValue()); - $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 value property value. The value property - * @param bool|null $value Value to set for the value property. - */ - public function setValue(?bool $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Publish/PublishRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Publish/PublishRequestBuilder.php index dc8e2b8e349..512b5680d37 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Publish/PublishRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Publish/PublishRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Publishes a [contentType][] present in the content type hub site. + * Publishes a contentType][] present in the content type hub site. This API is supported in the following [national cloud deployments. * @param PublishRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/contenttype-publish?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?PublishRequestBuilderPostRequestConfiguration $requestConf } /** - * Publishes a [contentType][] present in the content type hub site. + * Publishes a contentType][] present in the content type hub site. This API is supported in the following [national cloud deployments. * @param PublishRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.php index 871ac17aad5..4d0dd260fea 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Unpublish a [contentType][] from a content type hub site. + * Unpublish a contentType][] from a content type hub site. This API is supported in the following [national cloud deployments. * @param UnpublishRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/contenttype-unpublish?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?UnpublishRequestBuilderPostRequestConfiguration $requestCo } /** - * Unpublish a [contentType][] from a content type hub site. + * Unpublish a contentType][] from a content type hub site. This API is supported in the following [national cloud deployments. * @param UnpublishRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/CreatedByUserRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/CreatedByUserRequestBuilder.php index 1dd93099fcc..536710fbb2a 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/CreatedByUserRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/CreatedByUserRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\Groups\Item\Sites\Item\Lists\Item\CreatedByUser\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\Groups\Item\Sites\Item\Lists\Item\CreatedByUser\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new CreatedByUserRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..291d6533878 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/sites/{site%2Did}/lists/{list%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..7258c07fc82 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..9fc29f90bc9 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/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/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..0e617ddacf9 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/sites/{site%2Did}/lists/{list%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..8a4efa336f0 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..bb4754d8cbc --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.php index 6a2baa7d66d..5314263b5bd 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\Groups\Item\Sites\Item\Lists\Item\Items\Item\CreatedByUser\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\Groups\Item\Sites\Item\Lists\Item\Items\Item\CreatedByUser\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new CreatedByUserRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..67188507865 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..4934e4cd79a --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..551a7c333f0 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/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/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..f659fb5cf59 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..4be474d642b --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..c789fc267ea --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.php index ffbb07c6fb6..f9bc358e633 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the versions of a document set item in a list. + * Get a list of the versions of a document set item in a list. This API is supported in the following national cloud deployments. * @param DocumentSetVersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/listitem-list-documentsetversions?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?DocumentSetVersionsRequestBuilderGetRequestConfiguration $r } /** - * Create a new version of a document set item in a list. + * Create a new version of a document set item in a list. This API is supported in the following national cloud deployments. * @param DocumentSetVersion $body The request body * @param DocumentSetVersionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(DocumentSetVersion $body, ?DocumentSetVersionsRequestBuilde } /** - * Get a list of the versions of a document set item in a list. + * Get a list of the versions of a document set item in a list. This API is supported in the following national cloud deployments. * @param DocumentSetVersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?DocumentSetVersionsRequestBuilderGetReq } /** - * Create a new version of a document set item in a list. + * Create a new version of a document set item in a list. This API is supported in the following national cloud deployments. * @param DocumentSetVersion $body The request body * @param DocumentSetVersionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilderGetQueryParameters.php index 68250b227ae..9dc216c9880 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the versions of a document set item in a list. + * Get a list of the versions of a document set item in a list. This API is supported in the following national cloud deployments. */ class DocumentSetVersionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.php index 38c024e21b8..13c94e75f29 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.php @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a version of a document set in a list. + * Delete a version of a document set in a list. This API is supported in the following national cloud deployments. * @param DocumentSetVersionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/documentsetversion-delete?view=graph-rest-1.0 Find more info here @@ -67,7 +67,7 @@ public function delete(?DocumentSetVersionItemRequestBuilderDeleteRequestConfigu } /** - * Read the properties and relationships of a documentSetVersion object. + * Read the properties and relationships of a documentSetVersion object. This API is supported in the following national cloud deployments. * @param DocumentSetVersionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/documentsetversion-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function patch(DocumentSetVersion $body, ?DocumentSetVersionItemRequestBu } /** - * Delete a version of a document set in a list. + * Delete a version of a document set in a list. This API is supported in the following national cloud deployments. * @param DocumentSetVersionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -122,7 +122,7 @@ public function toDeleteRequestInformation(?DocumentSetVersionItemRequestBuilder } /** - * Read the properties and relationships of a documentSetVersion object. + * Read the properties and relationships of a documentSetVersion object. This API is supported in the following national cloud deployments. * @param DocumentSetVersionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilderGetQueryParameters.php index d36149337d0..6346ca9b3fd 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a documentSetVersion object. + * Read the properties and relationships of a documentSetVersion object. This API is supported in the following national cloud deployments. */ class DocumentSetVersionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.php index 72f438006ff..9f6fd8c3b54 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a document set version. + * Restore a document set version. This API is supported in the following national cloud deployments. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/documentsetversion-restore?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * Restore a document set version. + * Restore a document set version. This API is supported in the following national cloud deployments. * @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/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.php index b61a10c89ec..62f1c6cef2b 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.php @@ -68,7 +68,7 @@ public function get(?FieldsRequestBuilderGetRequestConfiguration $requestConfigu } /** - * Update the properties on a [listItem][]. + * Update the properties on a listItem][]. This API is supported in the following [national cloud deployments. * @param FieldValueSet $body The request body * @param FieldsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -126,7 +126,7 @@ public function toGetRequestInformation(?FieldsRequestBuilderGetRequestConfigura } /** - * Update the properties on a [listItem][]. + * Update the properties on a listItem][]. This API is supported in the following [national cloud deployments. * @param FieldValueSet $body The request body * @param FieldsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.php new file mode 100644 index 00000000000..8dbd7a9ae60 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ItemActivityStat::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, ItemActivityStat::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/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php index 1aca7d8a163..b09cb78ed65 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?GetActivitiesByIntervalRequestBuilderGetRequestConfiguratio '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetActivitiesByIntervalResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetActivitiesByIntervalGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.php deleted file mode 100644 index e16b5744eb4..00000000000 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ItemActivityStat::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, ItemActivityStat::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/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.php new file mode 100644 index 00000000000..36b942d925a --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ItemActivityStat::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, ItemActivityStat::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/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php index fe13a6ee030..b0ba8c40c3e 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php @@ -49,7 +49,7 @@ public function get(?GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWith '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.php deleted file mode 100644 index e31d65e6fcc..00000000000 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ItemActivityStat::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, ItemActivityStat::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/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php index 18eaa51de56..952d5ca3387 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\Groups\Item\Sites\Item\Lists\Item\Items\Item\LastModifiedByUser\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\Groups\Item\Sites\Item\Lists\Item\Items\Item\LastModifiedByUser\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..654645a7782 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..a41a3e629ed --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..02ae2f56a16 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/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/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..fd3bbe49b6b --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d25ebd28912 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..2f691909e32 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.php index a6278509121..63eb132718b 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.php @@ -97,7 +97,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Removes an item from a [list][]. + * Removes an item from a list][]. This API is supported in the following [national cloud deployments. * @param ListItemItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/listitem-delete?view=graph-rest-1.0 Find more info here @@ -116,7 +116,7 @@ public function delete(?ListItemItemRequestBuilderDeleteRequestConfiguration $re } /** - * Returns the metadata for an [item][] in a [list][]. + * Returns the metadata for an item][] in a [list][]. This API is supported in the following [national cloud deployments. * @param ListItemItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/listitem-get?view=graph-rest-1.0 Find more info here @@ -165,7 +165,7 @@ public function patch(ListItem $body, ?ListItemItemRequestBuilderPatchRequestCon } /** - * Removes an item from a [list][]. + * Removes an item from a list][]. This API is supported in the following [national cloud deployments. * @param ListItemItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -182,7 +182,7 @@ public function toDeleteRequestInformation(?ListItemItemRequestBuilderDeleteRequ } /** - * Returns the metadata for an [item][] in a [list][]. + * Returns the metadata for an item][] in a [list][]. This API is supported in the following [national cloud deployments. * @param ListItemItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilderGetQueryParameters.php index 477ba6d58eb..a1b5d1614f0 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Returns the metadata for an [item][] in a [list][]. + * Returns the metadata for an item][] in a [list][]. This API is supported in the following [national cloud deployments. */ class ListItemItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.php index 4c1a6b0a9fc..edf4656b6bb 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.php @@ -66,7 +66,7 @@ public function delete(?ListItemVersionItemRequestBuilderDeleteRequestConfigurat } /** - * Retrieve the metadata for a specific version of a ListItem. + * Retrieve the metadata for a specific version of a ListItem. This API is supported in the following national cloud deployments. * @param ListItemVersionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/listitemversion-get?view=graph-rest-1.0 Find more info here @@ -121,7 +121,7 @@ public function toDeleteRequestInformation(?ListItemVersionItemRequestBuilderDel } /** - * Retrieve the metadata for a specific version of a ListItem. + * Retrieve the metadata for a specific version of a ListItem. This API is supported in the following national cloud deployments. * @param ListItemVersionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilderGetQueryParameters.php index 1fbe6655b46..42eceeab31d 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the metadata for a specific version of a ListItem. + * Retrieve the metadata for a specific version of a ListItem. This API is supported in the following national cloud deployments. */ class ListItemVersionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.php index 25af7792959..b3ee2aa52f2 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. + * Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. This API is supported in the following national cloud deployments. * @param RestoreVersionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/listitemversion-restore?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?RestoreVersionRequestBuilderPostRequestConfiguration $requ } /** - * Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. + * Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. This API is supported in the following national cloud deployments. * @param RestoreVersionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilder.php index 772fc5c5900..a5bc4fa8380 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. + * SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. This API is supported in the following national cloud deployments. * @param VersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/listitem-list-versions?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(ListItemVersion $body, ?VersionsRequestBuilderPostRequestCo } /** - * SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. + * SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. This API is supported in the following national cloud deployments. * @param VersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilderGetQueryParameters.php index 3578253da4b..18423911f8f 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. + * SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. This API is supported in the following national cloud deployments. */ class VersionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.php index 1ce384fb717..8b82c288a18 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.php @@ -45,7 +45,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the collection of [items][item] in a [list][]. + * Get the collection of items][item] in a [list][]. This API is supported in the following [national cloud deployments. * @param ItemsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/listitem-list?view=graph-rest-1.0 Find more info here @@ -64,7 +64,7 @@ public function get(?ItemsRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Create a new [listItem][] in a [list][]. + * Create a new listItem][] in a [list][]. This API is supported in the following [national cloud deployments. * @param ListItem $body The request body * @param ItemsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -84,7 +84,7 @@ public function post(ListItem $body, ?ItemsRequestBuilderPostRequestConfiguratio } /** - * Get the collection of [items][item] in a [list][]. + * Get the collection of items][item] in a [list][]. This API is supported in the following [national cloud deployments. * @param ItemsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -105,7 +105,7 @@ public function toGetRequestInformation(?ItemsRequestBuilderGetRequestConfigurat } /** - * Create a new [listItem][] in a [list][]. + * Create a new listItem][] in a [list][]. This API is supported in the following [national cloud deployments. * @param ListItem $body The request body * @param ItemsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/ItemsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/ItemsRequestBuilderGetQueryParameters.php index 01e011d4de8..ed025051900 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/ItemsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/ItemsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the collection of [items][item] in a [list][]. + * Get the collection of items][item] in a [list][]. This API is supported in the following [national cloud deployments. */ class ItemsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php index 541411d9cd0..5db653f222a 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\Groups\Item\Sites\Item\Lists\Item\LastModifiedByUser\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\Groups\Item\Sites\Item\Lists\Item\LastModifiedByUser\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..5cf87f12db8 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/sites/{site%2Did}/lists/{list%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..24313ed7ba8 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..2546406fad7 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/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/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..6ffd3ba01ed --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/sites/{site%2Did}/lists/{list%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..2c1fe1aa607 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..cbd63ee8d98 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.php index d8e2d1406ca..899fdd8e830 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.php @@ -114,7 +114,7 @@ public function delete(?ListItemRequestBuilderDeleteRequestConfiguration $reques } /** - * Get a list of rich long-running operations associated with a list. + * Get a list of rich long-running operations associated with a list. This API is supported in the following national cloud deployments. * @param ListItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/list-list-operations?view=graph-rest-1.0 Find more info here @@ -169,7 +169,7 @@ public function toDeleteRequestInformation(?ListItemRequestBuilderDeleteRequestC } /** - * Get a list of rich long-running operations associated with a list. + * Get a list of rich long-running operations associated with a list. This API is supported in the following national cloud deployments. * @param ListItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilderGetQueryParameters.php index 83726327c23..dc563484c57 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of rich long-running operations associated with a list. + * Get a list of rich long-running operations associated with a list. This API is supported in the following national cloud deployments. */ class ListItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.php index 5fa4f9036ad..dfa647dc15a 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Reauthorize a subscription when you receive a reauthorizationRequired challenge. + * Reauthorize a subscription when you receive a reauthorizationRequired challenge. This API is supported in the following national cloud deployments. * @param ReauthorizeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/subscription-reauthorize?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ReauthorizeRequestBuilderPostRequestConfiguration $request } /** - * Reauthorize a subscription when you receive a reauthorizationRequired challenge. + * Reauthorize a subscription when you receive a reauthorizationRequired challenge. This API is supported in the following national cloud deployments. * @param ReauthorizeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/ListsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/ListsRequestBuilder.php index 9da1814e8b7..377eda25e1b 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/ListsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/ListsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. + * Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. This API is supported in the following national cloud deployments. * @param ListsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/list-list?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ListsRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Create a new [list][] in a [site][]. + * Create a new list][] in a [site][]. This API is supported in the following [national cloud deployments. * @param EscapedList $body The request body * @param ListsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(EscapedList $body, ?ListsRequestBuilderPostRequestConfigura } /** - * Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. + * Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. This API is supported in the following national cloud deployments. * @param ListsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ListsRequestBuilderGetRequestConfigurat } /** - * Create a new [list][] in a [site][]. + * Create a new list][] in a [site][]. This API is supported in the following [national cloud deployments. * @param EscapedList $body The request body * @param ListsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/ListsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Lists/ListsRequestBuilderGetQueryParameters.php index 00bad4bf08b..20fb4bb83cb 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/ListsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/ListsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. + * Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. This API is supported in the following national cloud deployments. */ class ListsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.php index 664c8082e48..370b5d56922 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. + * Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. This API is supported in the following national cloud deployments. * @param GetNotebookFromWebUrlPostRequestBody $body The request body * @param GetNotebookFromWebUrlRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(GetNotebookFromWebUrlPostRequestBody $body, ?GetNotebookFro } /** - * Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. + * Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. This API is supported in the following national cloud deployments. * @param GetNotebookFromWebUrlPostRequestBody $body The request body * @param GetNotebookFromWebUrlRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.php new file mode 100644 index 00000000000..ba9cdd19162 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([RecentNotebook::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, RecentNotebook::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/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.php index c1ab65a16cc..7f5f0a135b3 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.php @@ -45,7 +45,7 @@ public function get(?GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilde '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetRecentNotebooksWithIncludePersonalNotebooksResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetRecentNotebooksWithIncludePersonalNotebooksGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.php deleted file mode 100644 index ffe8826bf5a..00000000000 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([RecentNotebook::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, RecentNotebook::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/Groups/Item/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.php index adee0df975f..fa0a444b48c 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyNotebookPostRequestBody $body The request body * @param CopyNotebookRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyNotebookPostRequestBody $body, ?CopyNotebookRequestBuil } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyNotebookPostRequestBody $body The request body * @param CopyNotebookRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.php index 2abf75a6815..af7e94b06b8 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.php @@ -74,7 +74,7 @@ public function delete(?NotebookItemRequestBuilderDeleteRequestConfiguration $re } /** - * Retrieve the properties and relationships of a notebook object. + * Retrieve the properties and relationships of a notebook object. This API is supported in the following national cloud deployments. * @param NotebookItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/notebook-get?view=graph-rest-1.0 Find more info here @@ -129,7 +129,7 @@ public function toDeleteRequestInformation(?NotebookItemRequestBuilderDeleteRequ } /** - * Retrieve the properties and relationships of a notebook object. + * Retrieve the properties and relationships of a notebook object. This API is supported in the following national cloud deployments. * @param NotebookItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilderGetQueryParameters.php index b186699c1a2..14c8c382e76 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a notebook object. + * Retrieve the properties and relationships of a notebook object. This API is supported in the following national cloud deployments. */ class NotebookItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php index 368795b4bed..d43e5b633b6 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of section groups from the specified section group. + * Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. * @param SectionGroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/sectiongroup-list-sectiongroups?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?SectionGroupsRequestBuilderGetRequestConfiguration $request } /** - * Retrieve a list of section groups from the specified section group. + * Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. * @param SectionGroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php index 355879af478..798f7a2024c 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of section groups from the specified section group. + * Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. */ class SectionGroupsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php index 092941616b9..f51f05b631b 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToNotebookPostRequestBody $body The request body * @param CopyToNotebookRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyToNotebookPostRequestBody $body, ?CopyToNotebookRequest } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToNotebookPostRequestBody $body The request body * @param CopyToNotebookRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php index de0b3bbb619..5774984cd5e 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionGroupPostRequestBody $body The request body * @param CopyToSectionGroupRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyToSectionGroupPostRequestBody $body, ?CopyToSectionGrou } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionGroupPostRequestBody $body The request body * @param CopyToSectionGroupRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php index bf85fe05838..a822d5e736a 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionPostRequestBody $body The request body * @param CopyToSectionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyToSectionPostRequestBody $body, ?CopyToSectionRequestBu } /** - * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionPostRequestBody $body The request body * @param CopyToSectionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php index 487225aa1e1..c88904e316d 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of page objects from the specified section. + * Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. * @param PagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/section-list-pages?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?PagesRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Create a new page in the specified section. + * Create a new page in the specified section. This API is supported in the following national cloud deployments. * @param OnenotePage $body The request body * @param PagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(OnenotePage $body, ?PagesRequestBuilderPostRequestConfigura } /** - * Retrieve a list of page objects from the specified section. + * Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. * @param PagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } /** - * Create a new page in the specified section. + * Create a new page in the specified section. This API is supported in the following national cloud deployments. * @param OnenotePage $body The request body * @param PagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php index b6f9735392d..e7515408438 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of page objects from the specified section. + * Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. */ class PagesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.php index 6f939bf1bcb..4abdcbb34c2 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of onenoteSection objects from the specified section group. + * Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. * @param SectionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/sectiongroup-list-sections?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?SectionsRequestBuilderGetRequestConfiguration $requestConfi } /** - * Create a new onenoteSection in the specified section group. + * Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. * @param OnenoteSection $body The request body * @param SectionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(OnenoteSection $body, ?SectionsRequestBuilderPostRequestCon } /** - * Retrieve a list of onenoteSection objects from the specified section group. + * Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. * @param SectionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu } /** - * Create a new onenoteSection in the specified section group. + * Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. * @param OnenoteSection $body The request body * @param SectionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilderGetQueryParameters.php index 9db3b94fed2..a91c0606c2d 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of onenoteSection objects from the specified section group. + * Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. */ class SectionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.php index 6b2e30a65cc..9d28450f650 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of section groups from the specified notebook. + * Retrieve a list of section groups from the specified notebook. This API is supported in the following national cloud deployments. * @param SectionGroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/notebook-list-sectiongroups?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?SectionGroupsRequestBuilderGetRequestConfiguration $request } /** - * Create a new section group in the specified notebook. + * Create a new section group in the specified notebook. This API is supported in the following national cloud deployments. * @param SectionGroup $body The request body * @param SectionGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(SectionGroup $body, ?SectionGroupsRequestBuilderPostRequest } /** - * Retrieve a list of section groups from the specified notebook. + * Retrieve a list of section groups from the specified notebook. This API is supported in the following national cloud deployments. * @param SectionGroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo } /** - * Create a new section group in the specified notebook. + * Create a new section group in the specified notebook. This API is supported in the following national cloud deployments. * @param SectionGroup $body The request body * @param SectionGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php index da034223e8c..f4b121cb624 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of section groups from the specified notebook. + * Retrieve a list of section groups from the specified notebook. This API is supported in the following national cloud deployments. */ class SectionGroupsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php index 39cd0fd9e20..935a38e5c87 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToNotebookPostRequestBody $body The request body * @param CopyToNotebookRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyToNotebookPostRequestBody $body, ?CopyToNotebookRequest } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToNotebookPostRequestBody $body The request body * @param CopyToNotebookRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php index 3cb7aad99c3..2dd4d21384d 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionGroupPostRequestBody $body The request body * @param CopyToSectionGroupRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyToSectionGroupPostRequestBody $body, ?CopyToSectionGrou } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionGroupPostRequestBody $body The request body * @param CopyToSectionGroupRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php index f24c3dbbaf5..7080a35203e 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionPostRequestBody $body The request body * @param CopyToSectionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyToSectionPostRequestBody $body, ?CopyToSectionRequestBu } /** - * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionPostRequestBody $body The request body * @param CopyToSectionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.php index ab5fe0aeccc..24d02634698 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of page objects from the specified section. + * Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. * @param PagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/section-list-pages?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?PagesRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Create a new page in the specified section. + * Create a new page in the specified section. This API is supported in the following national cloud deployments. * @param OnenotePage $body The request body * @param PagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(OnenotePage $body, ?PagesRequestBuilderPostRequestConfigura } /** - * Retrieve a list of page objects from the specified section. + * Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. * @param PagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } /** - * Create a new page in the specified section. + * Create a new page in the specified section. This API is supported in the following national cloud deployments. * @param OnenotePage $body The request body * @param PagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php index d95761daf86..8bc9f2c9559 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of page objects from the specified section. + * Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. */ class PagesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.php index 897c01ebb85..40640bcec8d 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of onenoteSection objects from the specified notebook. + * Retrieve a list of onenoteSection objects from the specified notebook. This API is supported in the following national cloud deployments. * @param SectionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/notebook-list-sections?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?SectionsRequestBuilderGetRequestConfiguration $requestConfi } /** - * Create a new onenoteSection in the specified notebook. + * Create a new onenoteSection in the specified notebook. This API is supported in the following national cloud deployments. * @param OnenoteSection $body The request body * @param SectionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(OnenoteSection $body, ?SectionsRequestBuilderPostRequestCon } /** - * Retrieve a list of onenoteSection objects from the specified notebook. + * Retrieve a list of onenoteSection objects from the specified notebook. This API is supported in the following national cloud deployments. * @param SectionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu } /** - * Create a new onenoteSection in the specified notebook. + * Create a new onenoteSection in the specified notebook. This API is supported in the following national cloud deployments. * @param OnenoteSection $body The request body * @param SectionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilderGetQueryParameters.php index 1a0e58cbb14..7a0b5896c02 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of onenoteSection objects from the specified notebook. + * Retrieve a list of onenoteSection objects from the specified notebook. This API is supported in the following national cloud deployments. */ class SectionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.php index ad2a9e91d68..32dd4c300f0 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.php @@ -62,7 +62,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of notebook objects. + * Retrieve a list of notebook objects. This API is supported in the following national cloud deployments. * @param NotebooksRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/onenote-list-notebooks?view=graph-rest-1.0 Find more info here @@ -90,7 +90,7 @@ public function getRecentNotebooksWithIncludePersonalNotebooks(bool $includePers } /** - * Create a new OneNote notebook. + * Create a new OneNote notebook. This API is supported in the following national cloud deployments. * @param Notebook $body The request body * @param NotebooksRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -110,7 +110,7 @@ public function post(Notebook $body, ?NotebooksRequestBuilderPostRequestConfigur } /** - * Retrieve a list of notebook objects. + * Retrieve a list of notebook objects. This API is supported in the following national cloud deployments. * @param NotebooksRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -131,7 +131,7 @@ public function toGetRequestInformation(?NotebooksRequestBuilderGetRequestConfig } /** - * Create a new OneNote notebook. + * Create a new OneNote notebook. This API is supported in the following national cloud deployments. * @param Notebook $body The request body * @param NotebooksRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilderGetQueryParameters.php index e42d42db9ef..57b1e7705ba 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of notebook objects. + * Retrieve a list of notebook objects. This API is supported in the following national cloud deployments. */ class NotebooksRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.php index 599b436467c..319fb2e9911 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?OnenoteOperationItemRequestBuilderDeleteRequestConfigura } /** - * Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + * Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. * @param OnenoteOperationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/onenoteoperation-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?OnenoteOperationItemRequestBuilderDe } /** - * Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + * Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. * @param OnenoteOperationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilderGetQueryParameters.php index e8f67a9d788..7ba6ac1e92b 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + * Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. */ class OnenoteOperationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Operations/OperationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Operations/OperationsRequestBuilder.php index 0a1413e9093..ae1c6805aaa 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Operations/OperationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Operations/OperationsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + * Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. * @param OperationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(OnenoteOperation $body, ?OperationsRequestBuilderPostReques } /** - * Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + * Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. * @param OperationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Operations/OperationsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Operations/OperationsRequestBuilderGetQueryParameters.php index 3b7f206158c..6ea507f4765 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Operations/OperationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Operations/OperationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + * Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. */ class OperationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php index d4642775264..4ab8629d7ab 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionPostRequestBody $body The request body * @param CopyToSectionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyToSectionPostRequestBody $body, ?CopyToSectionRequestBu } /** - * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionPostRequestBody $body The request body * @param CopyToSectionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.php index a5980e2ff86..02a5c606deb 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.php @@ -80,7 +80,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a OneNote page. + * Delete a OneNote page. This API is supported in the following national cloud deployments. * @param OnenotePageItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/page-delete?view=graph-rest-1.0 Find more info here @@ -99,7 +99,7 @@ public function delete(?OnenotePageItemRequestBuilderDeleteRequestConfiguration } /** - * Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. + * Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. This API is supported in the following national cloud deployments. * @param OnenotePageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/page-get?view=graph-rest-1.0 Find more info here @@ -137,7 +137,7 @@ public function patch(OnenotePage $body, ?OnenotePageItemRequestBuilderPatchRequ } /** - * Delete a OneNote page. + * Delete a OneNote page. This API is supported in the following national cloud deployments. * @param OnenotePageItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -154,7 +154,7 @@ public function toDeleteRequestInformation(?OnenotePageItemRequestBuilderDeleteR } /** - * Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. + * Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. This API is supported in the following national cloud deployments. * @param OnenotePageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilderGetQueryParameters.php index 841038d24ae..97f09a72859 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. + * Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. This API is supported in the following national cloud deployments. */ class OnenotePageItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/PagesRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/PagesRequestBuilder.php index 8de9a087881..601bae5cff5 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/PagesRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/PagesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of page objects. + * Retrieve a list of page objects. This API is supported in the following national cloud deployments. * @param PagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/onenote-list-pages?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?PagesRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. + * Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. This API is supported in the following national cloud deployments. * @param OnenotePage $body The request body * @param PagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(OnenotePage $body, ?PagesRequestBuilderPostRequestConfigura } /** - * Retrieve a list of page objects. + * Retrieve a list of page objects. This API is supported in the following national cloud deployments. * @param PagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } /** - * Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. + * Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. This API is supported in the following national cloud deployments. * @param OnenotePage $body The request body * @param PagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/PagesRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/PagesRequestBuilderGetQueryParameters.php index 6fd0ab4d281..3c29d9fd305 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/PagesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/PagesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of page objects. + * Retrieve a list of page objects. This API is supported in the following national cloud deployments. */ class PagesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.php index b95672c57e1..9e81ab33944 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?OnenoteResourceItemRequestBuilderDeleteRequestConfigurat } /** - * The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + * The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. * @param OnenoteResourceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -112,7 +112,7 @@ public function toDeleteRequestInformation(?OnenoteResourceItemRequestBuilderDel } /** - * The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + * The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. * @param OnenoteResourceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilderGetQueryParameters.php index 7963b794548..b27dd33292e 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + * The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. */ class OnenoteResourceItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.php index 4ce20332c1b..fe7b869191c 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + * The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. * @param ResourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(OnenoteResource $body, ?ResourcesRequestBuilderPostRequestC } /** - * The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + * The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. * @param ResourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Resources/ResourcesRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Resources/ResourcesRequestBuilderGetQueryParameters.php index be46cab38d6..8a8f80e37af 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Resources/ResourcesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Resources/ResourcesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + * The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. */ class ResourcesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.php index 2dba99238d8..bdfdb7ed1a2 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.php @@ -82,7 +82,7 @@ public function delete(?SectionGroupItemRequestBuilderDeleteRequestConfiguration } /** - * Retrieve the properties and relationships of a sectionGroup object. + * Retrieve the properties and relationships of a sectionGroup object. This API is supported in the following national cloud deployments. * @param SectionGroupItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/sectiongroup-get?view=graph-rest-1.0 Find more info here @@ -137,7 +137,7 @@ public function toDeleteRequestInformation(?SectionGroupItemRequestBuilderDelete } /** - * Retrieve the properties and relationships of a sectionGroup object. + * Retrieve the properties and relationships of a sectionGroup object. This API is supported in the following national cloud deployments. * @param SectionGroupItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilderGetQueryParameters.php index 0a6e665350f..b6d06711fa6 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a sectionGroup object. + * Retrieve the properties and relationships of a sectionGroup object. This API is supported in the following national cloud deployments. */ class SectionGroupItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php index 826e7c0425c..474dd4e23f8 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of section groups from the specified section group. + * Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. * @param SectionGroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/sectiongroup-list-sectiongroups?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?SectionGroupsRequestBuilderGetRequestConfiguration $request } /** - * Retrieve a list of section groups from the specified section group. + * Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. * @param SectionGroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php index 811894a91d9..f70dc4a0841 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of section groups from the specified section group. + * Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. */ class SectionGroupsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php index 157a0ee6912..93c6722c665 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToNotebookPostRequestBody $body The request body * @param CopyToNotebookRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyToNotebookPostRequestBody $body, ?CopyToNotebookRequest } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToNotebookPostRequestBody $body The request body * @param CopyToNotebookRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php index a19a290d5b5..6d584222192 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionGroupPostRequestBody $body The request body * @param CopyToSectionGroupRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyToSectionGroupPostRequestBody $body, ?CopyToSectionGrou } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionGroupPostRequestBody $body The request body * @param CopyToSectionGroupRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php index b384b92d4cd..7afb3a9fcac 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionPostRequestBody $body The request body * @param CopyToSectionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyToSectionPostRequestBody $body, ?CopyToSectionRequestBu } /** - * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionPostRequestBody $body The request body * @param CopyToSectionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php index 1e0bdd48ab3..79d6f22ec8a 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of page objects from the specified section. + * Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. * @param PagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/section-list-pages?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?PagesRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Create a new page in the specified section. + * Create a new page in the specified section. This API is supported in the following national cloud deployments. * @param OnenotePage $body The request body * @param PagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(OnenotePage $body, ?PagesRequestBuilderPostRequestConfigura } /** - * Retrieve a list of page objects from the specified section. + * Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. * @param PagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } /** - * Create a new page in the specified section. + * Create a new page in the specified section. This API is supported in the following national cloud deployments. * @param OnenotePage $body The request body * @param PagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php index 5c08815183d..82619a8305d 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of page objects from the specified section. + * Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. */ class PagesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.php index 2e70e7e680d..2a9d35c07ed 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of onenoteSection objects from the specified section group. + * Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. * @param SectionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/sectiongroup-list-sections?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?SectionsRequestBuilderGetRequestConfiguration $requestConfi } /** - * Create a new onenoteSection in the specified section group. + * Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. * @param OnenoteSection $body The request body * @param SectionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(OnenoteSection $body, ?SectionsRequestBuilderPostRequestCon } /** - * Retrieve a list of onenoteSection objects from the specified section group. + * Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. * @param SectionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu } /** - * Create a new onenoteSection in the specified section group. + * Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. * @param OnenoteSection $body The request body * @param SectionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilderGetQueryParameters.php index f4722d56110..89108e15651 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of onenoteSection objects from the specified section group. + * Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. */ class SectionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.php index 2afdbd43df0..2e9b8e6ef8f 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of sectionGroup objects. + * Retrieve a list of sectionGroup objects. This API is supported in the following national cloud deployments. * @param SectionGroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/onenote-list-sectiongroups?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(SectionGroup $body, ?SectionGroupsRequestBuilderPostRequest } /** - * Retrieve a list of sectionGroup objects. + * Retrieve a list of sectionGroup objects. This API is supported in the following national cloud deployments. * @param SectionGroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php index 81c002510de..ba2f6aacf44 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of sectionGroup objects. + * Retrieve a list of sectionGroup objects. This API is supported in the following national cloud deployments. */ class SectionGroupsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php index 16136092b4d..8675b1a8075 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToNotebookPostRequestBody $body The request body * @param CopyToNotebookRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyToNotebookPostRequestBody $body, ?CopyToNotebookRequest } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToNotebookPostRequestBody $body The request body * @param CopyToNotebookRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php index b23bf6c0522..fee3b646722 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionGroupPostRequestBody $body The request body * @param CopyToSectionGroupRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyToSectionGroupPostRequestBody $body, ?CopyToSectionGrou } /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionGroupPostRequestBody $body The request body * @param CopyToSectionGroupRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.php index 4255fa63634..328211ec52c 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.php @@ -90,7 +90,7 @@ public function delete(?OnenoteSectionItemRequestBuilderDeleteRequestConfigurati } /** - * Retrieve the properties and relationships of a onenoteSection object. + * Retrieve the properties and relationships of a onenoteSection object. This API is supported in the following national cloud deployments. * @param OnenoteSectionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/section-get?view=graph-rest-1.0 Find more info here @@ -145,7 +145,7 @@ public function toDeleteRequestInformation(?OnenoteSectionItemRequestBuilderDele } /** - * Retrieve the properties and relationships of a onenoteSection object. + * Retrieve the properties and relationships of a onenoteSection object. This API is supported in the following national cloud deployments. * @param OnenoteSectionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilderGetQueryParameters.php index e60559dc65f..89075bf5d2d 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a onenoteSection object. + * Retrieve the properties and relationships of a onenoteSection object. This API is supported in the following national cloud deployments. */ class OnenoteSectionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php index 883fc889fa2..42e6a0646c4 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionPostRequestBody $body The request body * @param CopyToSectionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CopyToSectionPostRequestBody $body, ?CopyToSectionRequestBu } /** - * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + * Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. * @param CopyToSectionPostRequestBody $body The request body * @param CopyToSectionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.php index 89d81efc96b..2c74c00061f 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of page objects from the specified section. + * Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. * @param PagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/section-list-pages?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?PagesRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Create a new page in the specified section. + * Create a new page in the specified section. This API is supported in the following national cloud deployments. * @param OnenotePage $body The request body * @param PagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(OnenotePage $body, ?PagesRequestBuilderPostRequestConfigura } /** - * Retrieve a list of page objects from the specified section. + * Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. * @param PagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } /** - * Create a new page in the specified section. + * Create a new page in the specified section. This API is supported in the following national cloud deployments. * @param OnenotePage $body The request body * @param PagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php index 240fc70a1e1..aaebc9531cc 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of page objects from the specified section. + * Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. */ class PagesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/SectionsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/SectionsRequestBuilder.php index e13d4516fd8..7efc8fe7f5a 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/SectionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/SectionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of onenoteSection objects. + * Retrieve a list of onenoteSection objects. This API is supported in the following national cloud deployments. * @param SectionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/onenote-list-sections?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(OnenoteSection $body, ?SectionsRequestBuilderPostRequestCon } /** - * Retrieve a list of onenoteSection objects. + * Retrieve a list of onenoteSection objects. This API is supported in the following national cloud deployments. * @param SectionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/SectionsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/SectionsRequestBuilderGetQueryParameters.php index d5412ac3d4f..e9c5d641499 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/SectionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/SectionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of onenoteSection objects. + * Retrieve a list of onenoteSection objects. This API is supported in the following national cloud deployments. */ class SectionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.php index 3a5dca9c084..f070bfd1cd1 100644 --- a/src/Generated/Groups/Item/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?RichLongRunningOperationItemRequestBuilderDeleteRequestC } /** - * Get the status of a rich long-running operation on a site or a list. + * Get the status of a rich long-running operation on a site or a list. This API is supported in the following national cloud deployments. * @param RichLongRunningOperationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/richlongrunningoperation-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?RichLongRunningOperationItemRequestB } /** - * Get the status of a rich long-running operation on a site or a list. + * Get the status of a rich long-running operation on a site or a list. This API is supported in the following national cloud deployments. * @param RichLongRunningOperationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilderGetQueryParameters.php index c161f3eff74..36bc3b5127b 100644 --- a/src/Generated/Groups/Item/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the status of a rich long-running operation on a site or a list. + * Get the status of a rich long-running operation on a site or a list. This API is supported in the following national cloud deployments. */ class RichLongRunningOperationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Operations/OperationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Operations/OperationsRequestBuilder.php index ae7e87bdf3b..ff47baff12a 100644 --- a/src/Generated/Groups/Item/Sites/Item/Operations/OperationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Operations/OperationsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of rich long-running operations associated with a site. + * Get a list of rich long-running operations associated with a site. This API is supported in the following national cloud deployments. * @param OperationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/site-list-operations?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(RichLongRunningOperation $body, ?OperationsRequestBuilderPo } /** - * Get a list of rich long-running operations associated with a site. + * Get a list of rich long-running operations associated with a site. This API is supported in the following national cloud deployments. * @param OperationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/Operations/OperationsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Operations/OperationsRequestBuilderGetQueryParameters.php index 5d3b658c284..96adfc4fad2 100644 --- a/src/Generated/Groups/Item/Sites/Item/Operations/OperationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Operations/OperationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of rich long-running operations associated with a site. + * Get a list of rich long-running operations associated with a site. This API is supported in the following national cloud deployments. */ class OperationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantPostResponse.php b/src/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantPostResponse.php new file mode 100644 index 00000000000..77deb9644d9 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Permission::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, Permission::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/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.php index 58f50c8eb31..6e068fd92cb 100644 --- a/src/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Grant users access to a link represented by a [permission][]. + * Grant users access to a link represented by a permission][]. This API is supported in the following [national cloud deployments. * @param GrantPostRequestBody $body The request body * @param GrantRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GrantPostRequestBody $body, ?GrantRequestBuilderPostRequest '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GrantResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GrantPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Grant users access to a link represented by a [permission][]. + * Grant users access to a link represented by a permission][]. This API is supported in the following [national cloud deployments. * @param GrantPostRequestBody $body The request body * @param GrantRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantResponse.php b/src/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantResponse.php deleted file mode 100644 index 3db7e41aee6..00000000000 --- a/src/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Permission::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, Permission::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/Groups/Item/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.php index d5a0c104d13..b133c1919ee 100644 --- a/src/Generated/Groups/Item/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a permission object on a site. + * Delete a permission object on a site. This API is supported in the following national cloud deployments. * @param PermissionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/site-delete-permission?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function delete(?PermissionItemRequestBuilderDeleteRequestConfiguration $ } /** - * Retrieve the properties and relationships of a permission object on a site. + * Retrieve the properties and relationships of a permission object on a site. This API is supported in the following national cloud deployments. * @param PermissionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/site-get-permission?view=graph-rest-1.0 Find more info here @@ -78,7 +78,7 @@ public function get(?PermissionItemRequestBuilderGetRequestConfiguration $reques } /** - * Update an application permission object on a site. + * Update an application permission object on a site. This API is supported in the following national cloud deployments. * @param Permission $body The request body * @param PermissionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -98,7 +98,7 @@ public function patch(Permission $body, ?PermissionItemRequestBuilderPatchReques } /** - * Delete a permission object on a site. + * Delete a permission object on a site. This API is supported in the following national cloud deployments. * @param PermissionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -115,7 +115,7 @@ public function toDeleteRequestInformation(?PermissionItemRequestBuilderDeleteRe } /** - * Retrieve the properties and relationships of a permission object on a site. + * Retrieve the properties and relationships of a permission object on a site. This API is supported in the following national cloud deployments. * @param PermissionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -136,7 +136,7 @@ public function toGetRequestInformation(?PermissionItemRequestBuilderGetRequestC } /** - * Update an application permission object on a site. + * Update an application permission object on a site. This API is supported in the following national cloud deployments. * @param Permission $body The request body * @param PermissionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Permissions/Item/PermissionItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Permissions/Item/PermissionItemRequestBuilderGetQueryParameters.php index 395bbd35353..72c3ae9737f 100644 --- a/src/Generated/Groups/Item/Sites/Item/Permissions/Item/PermissionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Permissions/Item/PermissionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a permission object on a site. + * Retrieve the properties and relationships of a permission object on a site. This API is supported in the following national cloud deployments. */ class PermissionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Permissions/PermissionsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Permissions/PermissionsRequestBuilder.php index bafa3cb88c2..996a9b34acf 100644 --- a/src/Generated/Groups/Item/Sites/Item/Permissions/PermissionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Permissions/PermissionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the permission resources from the permissions navigation property on a site. + * Get the permission resources from the permissions navigation property on a site. This API is supported in the following national cloud deployments. * @param PermissionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/site-list-permissions?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?PermissionsRequestBuilderGetRequestConfiguration $requestCo } /** - * Create a new permission object on a site. + * Create a new permission object on a site. This API is supported in the following national cloud deployments. * @param Permission $body The request body * @param PermissionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(Permission $body, ?PermissionsRequestBuilderPostRequestConf } /** - * Get the permission resources from the permissions navigation property on a site. + * Get the permission resources from the permissions navigation property on a site. This API is supported in the following national cloud deployments. * @param PermissionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?PermissionsRequestBuilderGetRequestConf } /** - * Create a new permission object on a site. + * Create a new permission object on a site. This API is supported in the following national cloud deployments. * @param Permission $body The request body * @param PermissionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/Permissions/PermissionsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Permissions/PermissionsRequestBuilderGetQueryParameters.php index 6e11c14fdcb..599bcc043a4 100644 --- a/src/Generated/Groups/Item/Sites/Item/Permissions/PermissionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Permissions/PermissionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the permission resources from the permissions navigation property on a site. + * Get the permission resources from the permissions navigation property on a site. This API is supported in the following national cloud deployments. */ class PermissionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Sites/SitesRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Sites/SitesRequestBuilder.php index c237925451c..e6a2a89fc4f 100644 --- a/src/Generated/Groups/Item/Sites/Item/Sites/SitesRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Sites/SitesRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a collection of subsites defined for a [site][]. + * Get a collection of subsites defined for a site][]. This API is supported in the following [national cloud deployments. * @param SitesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/site-list-subsites?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?SitesRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Get a collection of subsites defined for a [site][]. + * Get a collection of subsites defined for a site][]. This API is supported in the following [national cloud deployments. * @param SitesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/Sites/SitesRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/Sites/SitesRequestBuilderGetQueryParameters.php index 570c6db5458..4b10966b66e 100644 --- a/src/Generated/Groups/Item/Sites/Item/Sites/SitesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/Sites/SitesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a collection of subsites defined for a [site][]. + * Get a collection of subsites defined for a site][]. This API is supported in the following [national cloud deployments. */ class SitesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/GroupsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/GroupsRequestBuilder.php index e6b99841809..f06f1aec398 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/GroupsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/GroupsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of group objects in a term store. + * Get a list of group objects in a term store. This API is supported in the following national cloud deployments. * @param GroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-list-groups?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?GroupsRequestBuilderGetRequestConfiguration $requestConfigu } /** - * Create a new group object in a term store. + * Create a new group object in a term store. This API is supported in the following national cloud deployments. * @param Group $body The request body * @param GroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(Group $body, ?GroupsRequestBuilderPostRequestConfiguration } /** - * Get a list of group objects in a term store. + * Get a list of group objects in a term store. This API is supported in the following national cloud deployments. * @param GroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?GroupsRequestBuilderGetRequestConfigura } /** - * Create a new group object in a term store. + * Create a new group object in a term store. This API is supported in the following national cloud deployments. * @param Group $body The request body * @param GroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/GroupsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/GroupsRequestBuilderGetQueryParameters.php index 56375cebdab..b2dfa41a327 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/GroupsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/GroupsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of group objects in a term store. + * Get a list of group objects in a term store. This API is supported in the following national cloud deployments. */ class GroupsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.php index 1bcebc7bf85..4d680648652 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a group object in a term [store]. + * Delete a group object in a term store]. This API is supported in the following [national cloud deployments. * @param GroupItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-group-delete?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function delete(?GroupItemRequestBuilderDeleteRequestConfiguration $reque } /** - * Read the properties and relationships of a term store group object. + * Read the properties and relationships of a term store group object. This API is supported in the following national cloud deployments. * @param GroupItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-group-get?view=graph-rest-1.0 Find more info here @@ -97,7 +97,7 @@ public function patch(Group $body, ?GroupItemRequestBuilderPatchRequestConfigura } /** - * Delete a group object in a term [store]. + * Delete a group object in a term store]. This API is supported in the following [national cloud deployments. * @param GroupItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -114,7 +114,7 @@ public function toDeleteRequestInformation(?GroupItemRequestBuilderDeleteRequest } /** - * Read the properties and relationships of a term store group object. + * Read the properties and relationships of a term store group object. This API is supported in the following national cloud deployments. * @param GroupItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilderGetQueryParameters.php index d5e7242e9ee..7fd64f04eae 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a term store group object. + * Read the properties and relationships of a term store group object. This API is supported in the following national cloud deployments. */ class GroupItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.php index 441706a39c6..670ebd6804c 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the first level children of a [set] or [term] resource using the children navigation property. + * Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. * @param ChildrenRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-term-list-children?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ChildrenRequestBuilderGetRequestConfiguration $requestConfi } /** - * Create a new term object. + * Create a new term object. This API is supported in the following national cloud deployments. * @param Term $body The request body * @param ChildrenRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(Term $body, ?ChildrenRequestBuilderPostRequestConfiguration } /** - * Get the first level children of a [set] or [term] resource using the children navigation property. + * Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. * @param ChildrenRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } /** - * Create a new term object. + * Create a new term object. This API is supported in the following national cloud deployments. * @param Term $body The request body * @param ChildrenRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilderGetQueryParameters.php index 530085e9c58..ca9b97c14d9 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the first level children of a [set] or [term] resource using the children navigation property. + * Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. */ class ChildrenRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.php index 2e9fa51e896..1eef3cc9d02 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the different relation of a [term] or [set] from the relations navigation property. + * Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. * @param RelationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-term-list-relations?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(Relation $body, ?RelationsRequestBuilderPostRequestConfigur } /** - * Get the different relation of a [term] or [set] from the relations navigation property. + * Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. * @param RelationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilderGetQueryParameters.php index d26e6a5fe12..d5ea6ff6a0a 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the different relation of a [term] or [set] from the relations navigation property. + * Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. */ class RelationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.php index 792b5c9c50a..3e25174fe08 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.php @@ -56,7 +56,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a term object. + * Delete a term object. This API is supported in the following national cloud deployments. * @param TermItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-term-delete?view=graph-rest-1.0 Find more info here @@ -75,7 +75,7 @@ public function delete(?TermItemRequestBuilderDeleteRequestConfiguration $reques } /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. * @param TermItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-term-get?view=graph-rest-1.0 Find more info here @@ -94,7 +94,7 @@ public function get(?TermItemRequestBuilderGetRequestConfiguration $requestConfi } /** - * Update the properties of a term object. + * Update the properties of a term object. This API is supported in the following national cloud deployments. * @param Term $body The request body * @param TermItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -114,7 +114,7 @@ public function patch(Term $body, ?TermItemRequestBuilderPatchRequestConfigurati } /** - * Delete a term object. + * Delete a term object. This API is supported in the following national cloud deployments. * @param TermItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -131,7 +131,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC } /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. * @param TermItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -152,7 +152,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } /** - * Update the properties of a term object. + * Update the properties of a term object. This API is supported in the following national cloud deployments. * @param Term $body The request body * @param TermItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilderGetQueryParameters.php index d8f5b28fb0c..ddd9ad26c7e 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. */ class TermItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.php index db08bee00d7..efaff25d9fb 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. * @param TermsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(Term $body, ?TermsRequestBuilderPostRequestConfiguration $r } /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. * @param TermsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilderGetQueryParameters.php index 474ba7d250d..d7f1812df3a 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. */ class TermsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.php index a55d62387b3..9251c1f4b8e 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the set objects and their properties. + * Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. * @param SetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-group-list-sets?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(Set $body, ?SetsRequestBuilderPostRequestConfiguration $req } /** - * Get a list of the set objects and their properties. + * Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. * @param SetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilderGetQueryParameters.php index 3d35b91a304..be6047947f6 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the set objects and their properties. + * Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. */ class SetsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.php index ed1dde8856a..ff1320f72a9 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the first level children of a [set] or [term] resource using the children navigation property. + * Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. * @param ChildrenRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-term-list-children?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ChildrenRequestBuilderGetRequestConfiguration $requestConfi } /** - * Create a new term object. + * Create a new term object. This API is supported in the following national cloud deployments. * @param Term $body The request body * @param ChildrenRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(Term $body, ?ChildrenRequestBuilderPostRequestConfiguration } /** - * Get the first level children of a [set] or [term] resource using the children navigation property. + * Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. * @param ChildrenRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } /** - * Create a new term object. + * Create a new term object. This API is supported in the following national cloud deployments. * @param Term $body The request body * @param ChildrenRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilderGetQueryParameters.php index e046de0b5a1..649717a484a 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the first level children of a [set] or [term] resource using the children navigation property. + * Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. */ class ChildrenRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.php index e60e9436962..f5c28b1fa74 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the first level children of a [set] or [term] resource using the children navigation property. + * Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. * @param ChildrenRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-term-list-children?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ChildrenRequestBuilderGetRequestConfiguration $requestConfi } /** - * Create a new term object. + * Create a new term object. This API is supported in the following national cloud deployments. * @param Term $body The request body * @param ChildrenRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(Term $body, ?ChildrenRequestBuilderPostRequestConfiguration } /** - * Get the first level children of a [set] or [term] resource using the children navigation property. + * Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. * @param ChildrenRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } /** - * Create a new term object. + * Create a new term object. This API is supported in the following national cloud deployments. * @param Term $body The request body * @param ChildrenRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilderGetQueryParameters.php index c54d4709c8c..cea9065c156 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the first level children of a [set] or [term] resource using the children navigation property. + * Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. */ class ChildrenRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.php index 301d57651b8..f62d20f6733 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the different relation of a [term] or [set] from the relations navigation property. + * Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. * @param RelationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-term-list-relations?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(Relation $body, ?RelationsRequestBuilderPostRequestConfigur } /** - * Get the different relation of a [term] or [set] from the relations navigation property. + * Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. * @param RelationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilderGetQueryParameters.php index 22967fed404..d1773532b89 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the different relation of a [term] or [set] from the relations navigation property. + * Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. */ class RelationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.php index 6cd6db33d89..92a6e073823 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.php @@ -56,7 +56,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a term object. + * Delete a term object. This API is supported in the following national cloud deployments. * @param TermItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-term-delete?view=graph-rest-1.0 Find more info here @@ -75,7 +75,7 @@ public function delete(?TermItemRequestBuilderDeleteRequestConfiguration $reques } /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. * @param TermItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-term-get?view=graph-rest-1.0 Find more info here @@ -94,7 +94,7 @@ public function get(?TermItemRequestBuilderGetRequestConfiguration $requestConfi } /** - * Update the properties of a term object. + * Update the properties of a term object. This API is supported in the following national cloud deployments. * @param Term $body The request body * @param TermItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -114,7 +114,7 @@ public function patch(Term $body, ?TermItemRequestBuilderPatchRequestConfigurati } /** - * Delete a term object. + * Delete a term object. This API is supported in the following national cloud deployments. * @param TermItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -131,7 +131,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC } /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. * @param TermItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -152,7 +152,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } /** - * Update the properties of a term object. + * Update the properties of a term object. This API is supported in the following national cloud deployments. * @param Term $body The request body * @param TermItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilderGetQueryParameters.php index 18179a0313c..b78e251ef86 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. */ class TermItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.php index dd0f414a3e7..387e753bafb 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. * @param TermsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(Term $body, ?TermsRequestBuilderPostRequestConfiguration $r } /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. * @param TermsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilderGetQueryParameters.php index ceeca2c9856..819043863a3 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. */ class TermsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.php index 8ffde33e53a..e423cb3d687 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the set objects and their properties. + * Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. * @param SetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-group-list-sets?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(Set $body, ?SetsRequestBuilderPostRequestConfiguration $req } /** - * Get a list of the set objects and their properties. + * Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. * @param SetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilderGetQueryParameters.php index 5cd6d8b9112..243dec3e190 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the set objects and their properties. + * Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. */ class SetsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.php index 3937863f728..8f0ab3ab09f 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the different relation of a [term] or [set] from the relations navigation property. + * Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. * @param RelationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-term-list-relations?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(Relation $body, ?RelationsRequestBuilderPostRequestConfigur } /** - * Get the different relation of a [term] or [set] from the relations navigation property. + * Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. * @param RelationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilderGetQueryParameters.php index 9153f85cc2b..617a8f55236 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the different relation of a [term] or [set] from the relations navigation property. + * Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. */ class RelationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.php index 577dfd1f1a9..437fcf93c66 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.php @@ -64,7 +64,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a set object. + * Delete a set object. This API is supported in the following national cloud deployments. * @param SetItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-set-delete?view=graph-rest-1.0 Find more info here @@ -83,7 +83,7 @@ public function delete(?SetItemRequestBuilderDeleteRequestConfiguration $request } /** - * Read the properties and relationships of a set object. + * Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. * @param SetItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-set-get?view=graph-rest-1.0 Find more info here @@ -102,7 +102,7 @@ public function get(?SetItemRequestBuilderGetRequestConfiguration $requestConfig } /** - * Update the properties of a set object. + * Update the properties of a set object. This API is supported in the following national cloud deployments. * @param Set $body The request body * @param SetItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -122,7 +122,7 @@ public function patch(Set $body, ?SetItemRequestBuilderPatchRequestConfiguration } /** - * Delete a set object. + * Delete a set object. This API is supported in the following national cloud deployments. * @param SetItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -139,7 +139,7 @@ public function toDeleteRequestInformation(?SetItemRequestBuilderDeleteRequestCo } /** - * Read the properties and relationships of a set object. + * Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. * @param SetItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -160,7 +160,7 @@ public function toGetRequestInformation(?SetItemRequestBuilderGetRequestConfigur } /** - * Update the properties of a set object. + * Update the properties of a set object. This API is supported in the following national cloud deployments. * @param Set $body The request body * @param SetItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilderGetQueryParameters.php index a7aa76185ed..43f87353824 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a set object. + * Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. */ class SetItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.php index f2f617caacd..1730a299bc8 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.php @@ -56,7 +56,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a term object. + * Delete a term object. This API is supported in the following national cloud deployments. * @param TermItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-term-delete?view=graph-rest-1.0 Find more info here @@ -75,7 +75,7 @@ public function delete(?TermItemRequestBuilderDeleteRequestConfiguration $reques } /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. * @param TermItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-term-get?view=graph-rest-1.0 Find more info here @@ -94,7 +94,7 @@ public function get(?TermItemRequestBuilderGetRequestConfiguration $requestConfi } /** - * Update the properties of a term object. + * Update the properties of a term object. This API is supported in the following national cloud deployments. * @param Term $body The request body * @param TermItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -114,7 +114,7 @@ public function patch(Term $body, ?TermItemRequestBuilderPatchRequestConfigurati } /** - * Delete a term object. + * Delete a term object. This API is supported in the following national cloud deployments. * @param TermItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -131,7 +131,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC } /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. * @param TermItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -152,7 +152,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } /** - * Update the properties of a term object. + * Update the properties of a term object. This API is supported in the following national cloud deployments. * @param Term $body The request body * @param TermItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilderGetQueryParameters.php index 908700d9a1b..59b76fc4aa3 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. */ class TermItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.php index 8349e39814f..5b3a8446ba4 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. * @param TermsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(Term $body, ?TermsRequestBuilderPostRequestConfiguration $r } /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. * @param TermsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilderGetQueryParameters.php index c3791b6ff8c..95916b97ae9 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. */ class TermsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/SetsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/SetsRequestBuilder.php index 56065d1039c..419b92a9b64 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/SetsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/SetsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read the properties and relationships of a set object. + * Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. * @param SetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -71,7 +71,7 @@ public function get(?SetsRequestBuilderGetRequestConfiguration $requestConfigura } /** - * Create a new set object. + * Create a new set object. This API is supported in the following national cloud deployments. * @param Set $body The request body * @param SetsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -91,7 +91,7 @@ public function post(Set $body, ?SetsRequestBuilderPostRequestConfiguration $req } /** - * Read the properties and relationships of a set object. + * Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. * @param SetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -112,7 +112,7 @@ public function toGetRequestInformation(?SetsRequestBuilderGetRequestConfigurati } /** - * Create a new set object. + * Create a new set object. This API is supported in the following national cloud deployments. * @param Set $body The request body * @param SetsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/SetsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/SetsRequestBuilderGetQueryParameters.php index 699d9cb8aff..749f93612cb 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/SetsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/SetsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a set object. + * Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. */ class SetsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/TermStoreRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/TermStoreRequestBuilder.php index 6ae1cc985b2..6fbed7481af 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/TermStoreRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/TermStoreRequestBuilder.php @@ -66,7 +66,7 @@ public function delete(?TermStoreRequestBuilderDeleteRequestConfiguration $reque } /** - * Read the properties and relationships of a store object. + * Read the properties and relationships of a store object. This API is supported in the following national cloud deployments. * @param TermStoreRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-store-get?view=graph-rest-1.0 Find more info here @@ -85,7 +85,7 @@ public function get(?TermStoreRequestBuilderGetRequestConfiguration $requestConf } /** - * Update the properties of a store object. + * Update the properties of a store object. This API is supported in the following national cloud deployments. * @param Store $body The request body * @param TermStoreRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -122,7 +122,7 @@ public function toDeleteRequestInformation(?TermStoreRequestBuilderDeleteRequest } /** - * Read the properties and relationships of a store object. + * Read the properties and relationships of a store object. This API is supported in the following national cloud deployments. * @param TermStoreRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -143,7 +143,7 @@ public function toGetRequestInformation(?TermStoreRequestBuilderGetRequestConfig } /** - * Update the properties of a store object. + * Update the properties of a store object. This API is supported in the following national cloud deployments. * @param Store $body The request body * @param TermStoreRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/TermStoreRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStore/TermStoreRequestBuilderGetQueryParameters.php index 789c1daa934..1ef3d193a05 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/TermStoreRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/TermStoreRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a store object. + * Read the properties and relationships of a store object. This API is supported in the following national cloud deployments. */ class TermStoreRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.php index 72772cb3aa2..19dd9f1a9aa 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of group objects in a term store. + * Get a list of group objects in a term store. This API is supported in the following national cloud deployments. * @param GroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-list-groups?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?GroupsRequestBuilderGetRequestConfiguration $requestConfigu } /** - * Create a new group object in a term store. + * Create a new group object in a term store. This API is supported in the following national cloud deployments. * @param Group $body The request body * @param GroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(Group $body, ?GroupsRequestBuilderPostRequestConfiguration } /** - * Get a list of group objects in a term store. + * Get a list of group objects in a term store. This API is supported in the following national cloud deployments. * @param GroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?GroupsRequestBuilderGetRequestConfigura } /** - * Create a new group object in a term store. + * Create a new group object in a term store. This API is supported in the following national cloud deployments. * @param Group $body The request body * @param GroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilderGetQueryParameters.php index 27c2c47f929..a4e0ab044af 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of group objects in a term store. + * Get a list of group objects in a term store. This API is supported in the following national cloud deployments. */ class GroupsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.php index bf14a607854..5f7ac6d4dab 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a group object in a term [store]. + * Delete a group object in a term store]. This API is supported in the following [national cloud deployments. * @param GroupItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-group-delete?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function delete(?GroupItemRequestBuilderDeleteRequestConfiguration $reque } /** - * Read the properties and relationships of a term store group object. + * Read the properties and relationships of a term store group object. This API is supported in the following national cloud deployments. * @param GroupItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-group-get?view=graph-rest-1.0 Find more info here @@ -97,7 +97,7 @@ public function patch(Group $body, ?GroupItemRequestBuilderPatchRequestConfigura } /** - * Delete a group object in a term [store]. + * Delete a group object in a term store]. This API is supported in the following [national cloud deployments. * @param GroupItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -114,7 +114,7 @@ public function toDeleteRequestInformation(?GroupItemRequestBuilderDeleteRequest } /** - * Read the properties and relationships of a term store group object. + * Read the properties and relationships of a term store group object. This API is supported in the following national cloud deployments. * @param GroupItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilderGetQueryParameters.php index 2448ffb2b09..599d82afda6 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a term store group object. + * Read the properties and relationships of a term store group object. This API is supported in the following national cloud deployments. */ class GroupItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.php index f23a48161c6..884d2dfc8a6 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the first level children of a [set] or [term] resource using the children navigation property. + * Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. * @param ChildrenRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-term-list-children?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ChildrenRequestBuilderGetRequestConfiguration $requestConfi } /** - * Create a new term object. + * Create a new term object. This API is supported in the following national cloud deployments. * @param Term $body The request body * @param ChildrenRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(Term $body, ?ChildrenRequestBuilderPostRequestConfiguration } /** - * Get the first level children of a [set] or [term] resource using the children navigation property. + * Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. * @param ChildrenRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } /** - * Create a new term object. + * Create a new term object. This API is supported in the following national cloud deployments. * @param Term $body The request body * @param ChildrenRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilderGetQueryParameters.php index f2b122cd681..9e6890d15fa 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the first level children of a [set] or [term] resource using the children navigation property. + * Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. */ class ChildrenRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.php index 712de632a75..f6f67adcaae 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the different relation of a [term] or [set] from the relations navigation property. + * Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. * @param RelationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-term-list-relations?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(Relation $body, ?RelationsRequestBuilderPostRequestConfigur } /** - * Get the different relation of a [term] or [set] from the relations navigation property. + * Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. * @param RelationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilderGetQueryParameters.php index cb885daf8c1..538a2c2b2d4 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the different relation of a [term] or [set] from the relations navigation property. + * Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. */ class RelationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.php index 0d2e9712236..acb6a15b8ae 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.php @@ -56,7 +56,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a term object. + * Delete a term object. This API is supported in the following national cloud deployments. * @param TermItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-term-delete?view=graph-rest-1.0 Find more info here @@ -75,7 +75,7 @@ public function delete(?TermItemRequestBuilderDeleteRequestConfiguration $reques } /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. * @param TermItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-term-get?view=graph-rest-1.0 Find more info here @@ -94,7 +94,7 @@ public function get(?TermItemRequestBuilderGetRequestConfiguration $requestConfi } /** - * Update the properties of a term object. + * Update the properties of a term object. This API is supported in the following national cloud deployments. * @param Term $body The request body * @param TermItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -114,7 +114,7 @@ public function patch(Term $body, ?TermItemRequestBuilderPatchRequestConfigurati } /** - * Delete a term object. + * Delete a term object. This API is supported in the following national cloud deployments. * @param TermItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -131,7 +131,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC } /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. * @param TermItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -152,7 +152,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } /** - * Update the properties of a term object. + * Update the properties of a term object. This API is supported in the following national cloud deployments. * @param Term $body The request body * @param TermItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilderGetQueryParameters.php index 05c6a445df2..dccc42ee1b3 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. */ class TermItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.php index eed8d26212e..3ce04ad7f94 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. * @param TermsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(Term $body, ?TermsRequestBuilderPostRequestConfiguration $r } /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. * @param TermsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilderGetQueryParameters.php index 99b31d26224..2d5ce3fa3db 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. */ class TermsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.php index 4a15ebfff4c..6d9494d3076 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the set objects and their properties. + * Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. * @param SetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-group-list-sets?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(Set $body, ?SetsRequestBuilderPostRequestConfiguration $req } /** - * Get a list of the set objects and their properties. + * Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. * @param SetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilderGetQueryParameters.php index d796963fa4c..229199a2370 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the set objects and their properties. + * Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. */ class SetsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.php index 7682b863b28..75f392c7248 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the first level children of a [set] or [term] resource using the children navigation property. + * Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. * @param ChildrenRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-term-list-children?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ChildrenRequestBuilderGetRequestConfiguration $requestConfi } /** - * Create a new term object. + * Create a new term object. This API is supported in the following national cloud deployments. * @param Term $body The request body * @param ChildrenRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(Term $body, ?ChildrenRequestBuilderPostRequestConfiguration } /** - * Get the first level children of a [set] or [term] resource using the children navigation property. + * Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. * @param ChildrenRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } /** - * Create a new term object. + * Create a new term object. This API is supported in the following national cloud deployments. * @param Term $body The request body * @param ChildrenRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilderGetQueryParameters.php index fce608f724c..1f14b230d14 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the first level children of a [set] or [term] resource using the children navigation property. + * Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. */ class ChildrenRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.php index 9de65475fd8..dc663e02713 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the first level children of a [set] or [term] resource using the children navigation property. + * Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. * @param ChildrenRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-term-list-children?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ChildrenRequestBuilderGetRequestConfiguration $requestConfi } /** - * Create a new term object. + * Create a new term object. This API is supported in the following national cloud deployments. * @param Term $body The request body * @param ChildrenRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(Term $body, ?ChildrenRequestBuilderPostRequestConfiguration } /** - * Get the first level children of a [set] or [term] resource using the children navigation property. + * Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. * @param ChildrenRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } /** - * Create a new term object. + * Create a new term object. This API is supported in the following national cloud deployments. * @param Term $body The request body * @param ChildrenRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilderGetQueryParameters.php index bdae8827993..e487a1e1905 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the first level children of a [set] or [term] resource using the children navigation property. + * Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. */ class ChildrenRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.php index 0dd109569dc..918d425543a 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the different relation of a [term] or [set] from the relations navigation property. + * Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. * @param RelationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-term-list-relations?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(Relation $body, ?RelationsRequestBuilderPostRequestConfigur } /** - * Get the different relation of a [term] or [set] from the relations navigation property. + * Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. * @param RelationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilderGetQueryParameters.php index 75de095901d..4ce93892640 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the different relation of a [term] or [set] from the relations navigation property. + * Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. */ class RelationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.php index d3de9ae65e2..009092b22e8 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.php @@ -56,7 +56,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a term object. + * Delete a term object. This API is supported in the following national cloud deployments. * @param TermItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-term-delete?view=graph-rest-1.0 Find more info here @@ -75,7 +75,7 @@ public function delete(?TermItemRequestBuilderDeleteRequestConfiguration $reques } /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. * @param TermItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-term-get?view=graph-rest-1.0 Find more info here @@ -94,7 +94,7 @@ public function get(?TermItemRequestBuilderGetRequestConfiguration $requestConfi } /** - * Update the properties of a term object. + * Update the properties of a term object. This API is supported in the following national cloud deployments. * @param Term $body The request body * @param TermItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -114,7 +114,7 @@ public function patch(Term $body, ?TermItemRequestBuilderPatchRequestConfigurati } /** - * Delete a term object. + * Delete a term object. This API is supported in the following national cloud deployments. * @param TermItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -131,7 +131,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC } /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. * @param TermItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -152,7 +152,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } /** - * Update the properties of a term object. + * Update the properties of a term object. This API is supported in the following national cloud deployments. * @param Term $body The request body * @param TermItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilderGetQueryParameters.php index 2b6ca5b796f..a6d028f4714 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. */ class TermItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.php index cf9d8595a84..c7313f4d8e4 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. * @param TermsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(Term $body, ?TermsRequestBuilderPostRequestConfiguration $r } /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. * @param TermsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilderGetQueryParameters.php index 10eba3ffa10..6b54ddfc879 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. */ class TermsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.php index 0c3ba21420a..aae171039e1 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the set objects and their properties. + * Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. * @param SetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-group-list-sets?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(Set $body, ?SetsRequestBuilderPostRequestConfiguration $req } /** - * Get a list of the set objects and their properties. + * Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. * @param SetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilderGetQueryParameters.php index 5f48fcd55ad..b2bac2c5914 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the set objects and their properties. + * Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. */ class SetsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.php index 627d386d38f..1c3db1a37a3 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the different relation of a [term] or [set] from the relations navigation property. + * Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. * @param RelationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-term-list-relations?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(Relation $body, ?RelationsRequestBuilderPostRequestConfigur } /** - * Get the different relation of a [term] or [set] from the relations navigation property. + * Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. * @param RelationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilderGetQueryParameters.php index 01b49d03f7e..a1441e76f81 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the different relation of a [term] or [set] from the relations navigation property. + * Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. */ class RelationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.php index be1e73ad2e3..0e6c2de1987 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.php @@ -64,7 +64,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a set object. + * Delete a set object. This API is supported in the following national cloud deployments. * @param SetItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-set-delete?view=graph-rest-1.0 Find more info here @@ -83,7 +83,7 @@ public function delete(?SetItemRequestBuilderDeleteRequestConfiguration $request } /** - * Read the properties and relationships of a set object. + * Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. * @param SetItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-set-get?view=graph-rest-1.0 Find more info here @@ -102,7 +102,7 @@ public function get(?SetItemRequestBuilderGetRequestConfiguration $requestConfig } /** - * Update the properties of a set object. + * Update the properties of a set object. This API is supported in the following national cloud deployments. * @param Set $body The request body * @param SetItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -122,7 +122,7 @@ public function patch(Set $body, ?SetItemRequestBuilderPatchRequestConfiguration } /** - * Delete a set object. + * Delete a set object. This API is supported in the following national cloud deployments. * @param SetItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -139,7 +139,7 @@ public function toDeleteRequestInformation(?SetItemRequestBuilderDeleteRequestCo } /** - * Read the properties and relationships of a set object. + * Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. * @param SetItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -160,7 +160,7 @@ public function toGetRequestInformation(?SetItemRequestBuilderGetRequestConfigur } /** - * Update the properties of a set object. + * Update the properties of a set object. This API is supported in the following national cloud deployments. * @param Set $body The request body * @param SetItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilderGetQueryParameters.php index db8fe653550..c308714b495 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a set object. + * Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. */ class SetItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.php index 8121baaa1e9..a85697492b3 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.php @@ -56,7 +56,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a term object. + * Delete a term object. This API is supported in the following national cloud deployments. * @param TermItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-term-delete?view=graph-rest-1.0 Find more info here @@ -75,7 +75,7 @@ public function delete(?TermItemRequestBuilderDeleteRequestConfiguration $reques } /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. * @param TermItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termstore-term-get?view=graph-rest-1.0 Find more info here @@ -94,7 +94,7 @@ public function get(?TermItemRequestBuilderGetRequestConfiguration $requestConfi } /** - * Update the properties of a term object. + * Update the properties of a term object. This API is supported in the following national cloud deployments. * @param Term $body The request body * @param TermItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -114,7 +114,7 @@ public function patch(Term $body, ?TermItemRequestBuilderPatchRequestConfigurati } /** - * Delete a term object. + * Delete a term object. This API is supported in the following national cloud deployments. * @param TermItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -131,7 +131,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC } /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. * @param TermItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -152,7 +152,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } /** - * Update the properties of a term object. + * Update the properties of a term object. This API is supported in the following national cloud deployments. * @param Term $body The request body * @param TermItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilderGetQueryParameters.php index 7f97ea3cfd5..013f3072d41 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. */ class TermItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.php index 80bcd4a61c4..76bc9448086 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. * @param TermsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(Term $body, ?TermsRequestBuilderPostRequestConfiguration $r } /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. * @param TermsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilderGetQueryParameters.php index 212e656952c..9442b3b72bf 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a term object. + * Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. */ class TermsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.php index a5df8a82bcb..945b0a07594 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read the properties and relationships of a set object. + * Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. * @param SetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -71,7 +71,7 @@ public function get(?SetsRequestBuilderGetRequestConfiguration $requestConfigura } /** - * Create a new set object. + * Create a new set object. This API is supported in the following national cloud deployments. * @param Set $body The request body * @param SetsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -91,7 +91,7 @@ public function post(Set $body, ?SetsRequestBuilderPostRequestConfiguration $req } /** - * Read the properties and relationships of a set object. + * Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. * @param SetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -112,7 +112,7 @@ public function toGetRequestInformation(?SetsRequestBuilderGetRequestConfigurati } /** - * Create a new set object. + * Create a new set object. This API is supported in the following national cloud deployments. * @param Set $body The request body * @param SetsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/SetsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/SetsRequestBuilderGetQueryParameters.php index 78d039ff3e6..44c9ddfb7b7 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/SetsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/SetsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a set object. + * Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. */ class SetsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Remove/RemovePostResponse.php b/src/Generated/Groups/Item/Sites/Remove/RemovePostResponse.php new file mode 100644 index 00000000000..16f477e65f6 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Remove/RemovePostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Site::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, Site::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/Groups/Item/Sites/Remove/RemoveRequestBuilder.php b/src/Generated/Groups/Item/Sites/Remove/RemoveRequestBuilder.php index 44d42e710a3..126962f5acc 100644 --- a/src/Generated/Groups/Item/Sites/Remove/RemoveRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Remove/RemoveRequestBuilder.php @@ -44,7 +44,7 @@ public function post(RemovePostRequestBody $body, ?RemoveRequestBuilderPostReque '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [RemoveResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [RemovePostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/Sites/Remove/RemoveResponse.php b/src/Generated/Groups/Item/Sites/Remove/RemoveResponse.php deleted file mode 100644 index b95858824ea..00000000000 --- a/src/Generated/Groups/Item/Sites/Remove/RemoveResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Site::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, Site::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/Groups/Item/SubscribeByMail/SubscribeByMailRequestBuilder.php b/src/Generated/Groups/Item/SubscribeByMail/SubscribeByMailRequestBuilder.php index 0364fbd3ab9..b0f38125929 100644 --- a/src/Generated/Groups/Item/SubscribeByMail/SubscribeByMailRequestBuilder.php +++ b/src/Generated/Groups/Item/SubscribeByMail/SubscribeByMailRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Calling this method will enable the current user to receive email notifications for this group, about new posts, events, and files in that group. Supported for Microsoft 365 groups only. + * Calling this method will enable the current user to receive email notifications for this group, about new posts, events, and files in that group. Supported for Microsoft 365 groups only. This API is supported in the following national cloud deployments. * @param SubscribeByMailRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/group-subscribebymail?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?SubscribeByMailRequestBuilderPostRequestConfiguration $req } /** - * Calling this method will enable the current user to receive email notifications for this group, about new posts, events, and files in that group. Supported for Microsoft 365 groups only. + * Calling this method will enable the current user to receive email notifications for this group, about new posts, events, and files in that group. Supported for Microsoft 365 groups only. This API is supported in the following national cloud deployments. * @param SubscribeByMailRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/AllChannels/AllChannelsRequestBuilder.php b/src/Generated/Groups/Item/Team/AllChannels/AllChannelsRequestBuilder.php index 96dc2dd1477..0a3543dc76b 100644 --- a/src/Generated/Groups/Item/Team/AllChannels/AllChannelsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/AllChannels/AllChannelsRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the list of channels either in this team or shared with this team (incoming channels). + * Get the list of channels either in this team or shared with this team (incoming channels). This API is supported in the following national cloud deployments. * @param AllChannelsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/team-list-allchannels?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?AllChannelsRequestBuilderGetRequestConfiguration $requestCo } /** - * Get the list of channels either in this team or shared with this team (incoming channels). + * Get the list of channels either in this team or shared with this team (incoming channels). This API is supported in the following national cloud deployments. * @param AllChannelsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/AllChannels/AllChannelsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/AllChannels/AllChannelsRequestBuilderGetQueryParameters.php index fd492a9d4b0..fcc82801955 100644 --- a/src/Generated/Groups/Item/Team/AllChannels/AllChannelsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/AllChannels/AllChannelsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the list of channels either in this team or shared with this team (incoming channels). + * Get the list of channels either in this team or shared with this team (incoming channels). This API is supported in the following national cloud deployments. */ class AllChannelsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Archive/ArchiveRequestBuilder.php b/src/Generated/Groups/Item/Team/Archive/ArchiveRequestBuilder.php index c77303841de..ff6b0001c13 100644 --- a/src/Generated/Groups/Item/Team/Archive/ArchiveRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Archive/ArchiveRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. + * Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. This API is supported in the following national cloud deployments. * @param ArchivePostRequestBody $body The request body * @param ArchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ArchivePostRequestBody $body, ?ArchiveRequestBuilderPostReq } /** - * Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. + * Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. This API is supported in the following national cloud deployments. * @param ArchivePostRequestBody $body The request body * @param ArchiveRequestBuilderPostRequestConfiguration|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/ChannelsRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/ChannelsRequestBuilder.php index ef8176fdf78..eba3cd75daa 100644 --- a/src/Generated/Groups/Item/Team/Channels/ChannelsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/ChannelsRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the list of channels in this team. + * Retrieve the list of channels in this team. This API is supported in the following national cloud deployments. * @param ChannelsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/channel-list?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?ChannelsRequestBuilderGetRequestConfiguration $requestConfi } /** - * Create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. If you're creating a private channel, you can add a maximum of 200 members. + * Create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. If you're creating a private channel, you can add a maximum of 200 members. This API is supported in the following national cloud deployments. * @param Channel $body The request body * @param ChannelsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(Channel $body, ?ChannelsRequestBuilderPostRequestConfigurat } /** - * Retrieve the list of channels in this team. + * Retrieve the list of channels in this team. This API is supported in the following national cloud deployments. * @param ChannelsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?ChannelsRequestBuilderGetRequestConfigu } /** - * Create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. If you're creating a private channel, you can add a maximum of 200 members. + * Create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. If you're creating a private channel, you can add a maximum of 200 members. This API is supported in the following national cloud deployments. * @param Channel $body The request body * @param ChannelsRequestBuilderPostRequestConfiguration|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/ChannelsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Channels/ChannelsRequestBuilderGetQueryParameters.php index 1354b776945..5b3ddc1faf5 100644 --- a/src/Generated/Groups/Item/Team/Channels/ChannelsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Channels/ChannelsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the list of channels in this team. + * Retrieve the list of channels in this team. This API is supported in the following national cloud deployments. */ class ChannelsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesGetResponse.php b/src/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesGetResponse.php new file mode 100644 index 00000000000..b017c8515ea --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ChatMessage::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, ChatMessage::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/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesRequestBuilder.php index 19717bd13de..e51175e7de4 100644 --- a/src/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?GetAllMessagesRequestBuilderGetRequestConfiguration $reques '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetAllMessagesResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetAllMessagesGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesResponse.php b/src/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesResponse.php deleted file mode 100644 index fbe9f4f78a9..00000000000 --- a/src/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ChatMessage::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, ChatMessage::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/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.php index a0a648a0b0a..55ca131b8bf 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.php @@ -104,7 +104,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete the channel. + * Delete the channel. This API is supported in the following national cloud deployments. * @param ChannelItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/channel-delete?view=graph-rest-1.0 Find more info here @@ -123,7 +123,7 @@ public function delete(?ChannelItemRequestBuilderDeleteRequestConfiguration $req } /** - * Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. + * Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. This API is supported in the following national cloud deployments. * @param ChannelItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/channel-get?view=graph-rest-1.0 Find more info here @@ -142,7 +142,7 @@ public function get(?ChannelItemRequestBuilderGetRequestConfiguration $requestCo } /** - * Update the properties of the specified channel. + * Update the properties of the specified channel. This API is supported in the following national cloud deployments. * @param Channel $body The request body * @param ChannelItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -162,7 +162,7 @@ public function patch(Channel $body, ?ChannelItemRequestBuilderPatchRequestConfi } /** - * Delete the channel. + * Delete the channel. This API is supported in the following national cloud deployments. * @param ChannelItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -179,7 +179,7 @@ public function toDeleteRequestInformation(?ChannelItemRequestBuilderDeleteReque } /** - * Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. + * Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. This API is supported in the following national cloud deployments. * @param ChannelItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -200,7 +200,7 @@ public function toGetRequestInformation(?ChannelItemRequestBuilderGetRequestConf } /** - * Update the properties of the specified channel. + * Update the properties of the specified channel. This API is supported in the following national cloud deployments. * @param Channel $body The request body * @param ChannelItemRequestBuilderPatchRequestConfiguration|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/ChannelItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilderGetQueryParameters.php index 8761da1d0fe..ea942ead54d 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. + * Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. This API is supported in the following national cloud deployments. */ class ChannelItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.php index d79c8cb319d..24f79901b76 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + * Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. * @param CompleteMigrationRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/channel-completemigration?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?CompleteMigrationRequestBuilderPostRequestConfiguration $r } /** - * Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + * Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. * @param CompleteMigrationRequestBuilderPostRequestConfiguration|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/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.php b/src/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.php new file mode 100644 index 00000000000..ade709e99e0 --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.php @@ -0,0 +1,114 @@ +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 DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse { + return new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return bool|null + */ + public function getValue(): ?bool { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_bool($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 { + $writer->writeBooleanValue('value', $this->getValue()); + $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 value property value. The value property + * @param bool|null $value Value to set for the value property. + */ + public function setValue(?bool $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php index 36088318f84..ea1cae26c50 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipal '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.php b/src/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.php deleted file mode 100644 index ec06cab4352..00000000000 --- a/src/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse { - return new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return bool|null - */ - public function getValue(): ?bool { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_bool($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 { - $writer->writeBooleanValue('value', $this->getValue()); - $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 value property value. The value property - * @param bool|null $value Value to set for the value property. - */ - public function setValue(?bool $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Groups/Item/Team/Channels/Item/FilesFolder/FilesFolderRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/FilesFolder/FilesFolderRequestBuilder.php index 8cc635c373b..35387112489 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/FilesFolder/FilesFolderRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/FilesFolder/FilesFolderRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the metadata for the location where the files of a channel are stored. + * Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. * @param FilesFolderRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/channel-get-filesfolder?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function get(?FilesFolderRequestBuilderGetRequestConfiguration $requestCo } /** - * Get the metadata for the location where the files of a channel are stored. + * Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. * @param FilesFolderRequestBuilderGetRequestConfiguration|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/FilesFolder/FilesFolderRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Channels/Item/FilesFolder/FilesFolderRequestBuilderGetQueryParameters.php index 260a472a79e..cd25f850791 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/FilesFolder/FilesFolderRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/FilesFolder/FilesFolderRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the metadata for the location where the files of a channel are stored. + * Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. */ class FilesFolderRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddPostResponse.php b/src/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddPostResponse.php new file mode 100644 index 00000000000..586a39932fc --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ActionResultPart::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, ActionResultPart::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/Groups/Item/Team/Channels/Item/Members/Add/AddRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddRequestBuilder.php index bcdcfa36dfc..b993f9cb0b0 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConf '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [AddResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [AddPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|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/Members/Add/AddResponse.php b/src/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddResponse.php deleted file mode 100644 index 327136ebec1..00000000000 --- a/src/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ActionResultPart::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, ActionResultPart::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/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php index c94ce643d38..0a715ab0fb3 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php @@ -32,10 +32,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Delete a conversationMember from a channel. This API is supported in the following national cloud deployments. * @param ConversationMemberItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/channel-delete-members?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/conversationmember-delete?view=graph-rest-1.0 Find more info here */ public function delete(?ConversationMemberItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -51,7 +51,7 @@ public function delete(?ConversationMemberItemRequestBuilderDeleteRequestConfigu } /** - * Get a conversationMember from a channel. + * Get a conversationMember from a channel. This API is supported in the following national cloud deployments. * @param ConversationMemberItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/channel-get-members?view=graph-rest-1.0 Find more info here @@ -70,7 +70,7 @@ public function get(?ConversationMemberItemRequestBuilderGetRequestConfiguration } /** - * Update the role of a conversationMember in a team or channel. + * Update the role of a conversationMember in a team or channel. This API is supported in the following national cloud deployments. * @param ConversationMember $body The request body * @param ConversationMemberItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -90,7 +90,7 @@ public function patch(ConversationMember $body, ?ConversationMemberItemRequestBu } /** - * Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Delete a conversationMember from a channel. This API is supported in the following national cloud deployments. * @param ConversationMemberItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?ConversationMemberItemRequestBuilder } /** - * Get a conversationMember from a channel. + * Get a conversationMember from a channel. This API is supported in the following national cloud deployments. * @param ConversationMemberItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -128,7 +128,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } /** - * Update the role of a conversationMember in a team or channel. + * Update the role of a conversationMember in a team or channel. This API is supported in the following national cloud deployments. * @param ConversationMember $body The request body * @param ConversationMemberItemRequestBuilderPatchRequestConfiguration|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/Members/Item/ConversationMemberItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilderGetQueryParameters.php index 23683b2ae44..ea0423fab06 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a conversationMember from a channel. + * Get a conversationMember from a channel. This API is supported in the following national cloud deployments. */ class ConversationMemberItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.php index 5e18202fb09..eee87ece384 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + * Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. * @param MembersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/channel-list-members?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?MembersRequestBuilderGetRequestConfiguration $requestConfig } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This API is supported in the following national cloud deployments. * @param ConversationMember $body The request body * @param MembersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(ConversationMember $body, ?MembersRequestBuilderPostRequest } /** - * Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + * Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. * @param MembersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This API is supported in the following national cloud deployments. * @param ConversationMember $body The request body * @param MembersRequestBuilderPostRequestConfiguration|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/Members/MembersRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilderGetQueryParameters.php index 0ba5d6bd23b..918eba9f343 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + * Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. */ class MembersRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaGetResponse.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..c7fb13b65a7 --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/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([ChatMessage::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, ChatMessage::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/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaRequestBuilder.php index 20e6bfdc54f..13475184647 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaResponse.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaResponse.php deleted file mode 100644 index 428e33806b6..00000000000 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ChatMessage::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, ChatMessage::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/Groups/Item/Team/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.php index 7582e47b144..ddd45f259cb 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.php @@ -98,7 +98,7 @@ public function delete(?ChatMessageItemRequestBuilderDeleteRequestConfiguration } /** - * Retrieve a single message or a message reply in a channel or a chat. + * Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param ChatMessageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessage-get?view=graph-rest-1.0 Find more info here @@ -117,7 +117,7 @@ public function get(?ChatMessageItemRequestBuilderGetRequestConfiguration $reque } /** - * Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. + * Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. This API is supported in the following national cloud deployments. * @param ChatMessage $body The request body * @param ChatMessageItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -154,7 +154,7 @@ public function toDeleteRequestInformation(?ChatMessageItemRequestBuilderDeleteR } /** - * Retrieve a single message or a message reply in a channel or a chat. + * Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param ChatMessageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -175,7 +175,7 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest } /** - * Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. + * Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. This API is supported in the following national cloud deployments. * @param ChatMessage $body The request body * @param ChatMessageItemRequestBuilderPatchRequestConfiguration|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/Messages/Item/ChatMessageItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/ChatMessageItemRequestBuilderGetQueryParameters.php index c9a6140cca0..09d01db5817 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/ChatMessageItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/ChatMessageItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a single message or a message reply in a channel or a chat. + * Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. */ class ChatMessageItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php index 9f513cb8402..4c2ab21e752 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. * @param HostedContentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessage-list-hostedcontents?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(ChatMessageHostedContent $body, ?HostedContentsRequestBuild } /** - * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. * @param HostedContentsRequestBuilderGetRequestConfiguration|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/Messages/Item/HostedContents/HostedContentsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilderGetQueryParameters.php index 15e2f5ca681..08affb7ab17 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. */ class HostedContentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php index 2dbf705fcec..1ed7a83b32e 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?ChatMessageHostedContentItemRequestBuilderDeleteRequestC } /** - * Retrieve the properties and relationships of chatMessageHostedContent object. + * Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. * @param ChatMessageHostedContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessagehostedcontent-get?view=graph-rest-1.0 Find more info here @@ -113,7 +113,7 @@ public function toDeleteRequestInformation(?ChatMessageHostedContentItemRequestB } /** - * Retrieve the properties and relationships of chatMessageHostedContent object. + * Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. * @param ChatMessageHostedContentItemRequestBuilderGetRequestConfiguration|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/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilderGetQueryParameters.php index 80bf7102bbf..3b93e9b9cfd 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of chatMessageHostedContent object. + * Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. */ class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..c39314647b7 --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/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([ChatMessage::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, ChatMessage::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/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.php index 8f4d99fad6a..2bb6c443f79 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.php deleted file mode 100644 index 074a0c0827f..00000000000 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ChatMessage::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, ChatMessage::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/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php index ee6b2ffba3a..1a6c9a9888f 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php @@ -90,7 +90,7 @@ public function delete(?ChatMessageItemRequestBuilderDeleteRequestConfiguration } /** - * Retrieve a single message or a message reply in a channel or a chat. + * Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param ChatMessageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessage-get?view=graph-rest-1.0 Find more info here @@ -145,7 +145,7 @@ public function toDeleteRequestInformation(?ChatMessageItemRequestBuilderDeleteR } /** - * Retrieve a single message or a message reply in a channel or a chat. + * Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param ChatMessageItemRequestBuilderGetRequestConfiguration|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/Messages/Item/Replies/Item/ChatMessageItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilderGetQueryParameters.php index 958f6d89645..62e74570878 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a single message or a message reply in a channel or a chat. + * Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. */ class ChatMessageItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php index 5c568108abe..ba4f35e9727 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. * @param HostedContentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessage-list-hostedcontents?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(ChatMessageHostedContent $body, ?HostedContentsRequestBuild } /** - * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. * @param HostedContentsRequestBuilderGetRequestConfiguration|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/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilderGetQueryParameters.php index 1fb5296885e..f58463b21ea 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. */ class HostedContentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php index fb516bb7698..e8d155228cb 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?ChatMessageHostedContentItemRequestBuilderDeleteRequestC } /** - * Retrieve the properties and relationships of chatMessageHostedContent object. + * Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. * @param ChatMessageHostedContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessagehostedcontent-get?view=graph-rest-1.0 Find more info here @@ -113,7 +113,7 @@ public function toDeleteRequestInformation(?ChatMessageHostedContentItemRequestB } /** - * Retrieve the properties and relationships of chatMessageHostedContent object. + * Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. * @param ChatMessageHostedContentItemRequestBuilderGetRequestConfiguration|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/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilderGetQueryParameters.php index 157f4a6388b..cf7283862fc 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of chatMessageHostedContent object. + * Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. */ class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php index de0e4dfae2e..8372e9c8a8c 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a single chatMessage or a chat message reply in a channel or a chat. + * Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param SoftDeleteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessage-softdelete?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?SoftDeleteRequestBuilderPostRequestConfiguration $requestC } /** - * Delete a single chatMessage or a chat message reply in a channel or a chat. + * Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param SoftDeleteRequestBuilderPostRequestConfiguration|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/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php index f7ebc78a80e..a46c8c43c77 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param UndoSoftDeleteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessage-undosoftdelete?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?UndoSoftDeleteRequestBuilderPostRequestConfiguration $requ } /** - * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param UndoSoftDeleteRequestBuilderPostRequestConfiguration|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/Messages/Item/Replies/RepliesRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.php index 7ad8f48971b..62d0f17cd58 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 @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + * List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. * @param RepliesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessage-list-replies?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?RepliesRequestBuilderGetRequestConfiguration $requestConfig } /** - * Create a new reply to a chatMessage in a specified channel. + * Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. * @param ChatMessage $body The request body * @param RepliesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(ChatMessage $body, ?RepliesRequestBuilderPostRequestConfigu } /** - * List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + * List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. * @param RepliesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?RepliesRequestBuilderGetRequestConfigur } /** - * Create a new reply to a chatMessage in a specified channel. + * Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. * @param ChatMessage $body The request body * @param RepliesRequestBuilderPostRequestConfiguration|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/Messages/Item/Replies/RepliesRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilderGetQueryParameters.php index d528b366664..2dd57732eca 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + * List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. */ class RepliesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php index 7184eab1184..d4ec6d486ae 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a single chatMessage or a chat message reply in a channel or a chat. + * Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param SoftDeleteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessage-softdelete?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?SoftDeleteRequestBuilderPostRequestConfiguration $requestC } /** - * Delete a single chatMessage or a chat message reply in a channel or a chat. + * Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param SoftDeleteRequestBuilderPostRequestConfiguration|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/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php index 4df5f4b5f6f..cfde455856c 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param UndoSoftDeleteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessage-undosoftdelete?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?UndoSoftDeleteRequestBuilderPostRequestConfiguration $requ } /** - * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param UndoSoftDeleteRequestBuilderPostRequestConfiguration|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/Messages/MessagesRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.php index 756618449ed..665573c2d8d 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + * Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. * @param MessagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/channel-list-messages?view=graph-rest-1.0 Find more info here @@ -80,11 +80,11 @@ public function get(?MessagesRequestBuilderGetRequestConfiguration $requestConfi } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. This API is supported in the following national cloud deployments. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 Find more info here */ public function post(ChatMessage $body, ?MessagesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -100,7 +100,7 @@ public function post(ChatMessage $body, ?MessagesRequestBuilderPostRequestConfig } /** - * Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + * Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. * @param MessagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. This API is supported in the following national cloud deployments. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|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/Messages/MessagesRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilderGetQueryParameters.php index d9efa85b335..8c47a44a778 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + * Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. */ class MessagesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.php index 4a494ecde25..801da9208b5 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. + * Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. This API is supported in the following national cloud deployments. * @param ProvisionEmailRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/channel-provisionemail?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?ProvisionEmailRequestBuilderPostRequestConfiguration $requ } /** - * Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. + * Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. This API is supported in the following national cloud deployments. * @param ProvisionEmailRequestBuilderPostRequestConfiguration|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/RemoveEmail/RemoveEmailRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.php index 52357d191a4..9c067ed7e6f 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. + * Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. This API is supported in the following national cloud deployments. * @param RemoveEmailRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/channel-removeemail?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?RemoveEmailRequestBuilderPostRequestConfiguration $request } /** - * Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. + * Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. This API is supported in the following national cloud deployments. * @param RemoveEmailRequestBuilderPostRequestConfiguration|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/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php index c245ed238bc..086f918577b 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + * Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. * @param AllowedMembersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/sharedwithchannelteaminfo-list-allowedmembers?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?AllowedMembersRequestBuilderGetRequestConfiguration $reques } /** - * Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + * Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. * @param AllowedMembersRequestBuilderGetRequestConfiguration|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/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilderGetQueryParameters.php index 124ed009f69..1aaf24fed85 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + * Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. */ class AllowedMembersRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php index e73ff1e366e..261445e06ef 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. + * Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. * @param SharedWithChannelTeamInfoItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/sharedwithchannelteaminfo-delete?view=graph-rest-1.0 Find more info here @@ -67,7 +67,7 @@ public function delete(?SharedWithChannelTeamInfoItemRequestBuilderDeleteRequest } /** - * Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + * Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. * @param SharedWithChannelTeamInfoItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/sharedwithchannelteaminfo-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function patch(SharedWithChannelTeamInfo $body, ?SharedWithChannelTeamInf } /** - * Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. + * Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. * @param SharedWithChannelTeamInfoItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -122,7 +122,7 @@ public function toDeleteRequestInformation(?SharedWithChannelTeamInfoItemRequest } /** - * Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + * Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. * @param SharedWithChannelTeamInfoItemRequestBuilderGetRequestConfiguration|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/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters.php index 06f74e00ddb..c776330350c 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + * Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. */ class SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.php index d37fc9ff7c7..52d890754cc 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + * Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. * @param SharedWithTeamsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/sharedwithchannelteaminfo-list?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(SharedWithChannelTeamInfo $body, ?SharedWithTeamsRequestBui } /** - * Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + * Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. * @param SharedWithTeamsRequestBuilderGetRequestConfiguration|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/SharedWithTeams/SharedWithTeamsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilderGetQueryParameters.php index b178e6fc99d..aec936aa203 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + * Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. */ class SharedWithTeamsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php index 53e320367f6..c8b547d3ea5 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The application that is linked to the tab. This cannot be changed after tab creation. + * The application that is linked to the tab. This can't be changed after tab creation. * @param TeamsAppRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -50,7 +50,7 @@ public function get(?TeamsAppRequestBuilderGetRequestConfiguration $requestConfi } /** - * The application that is linked to the tab. This cannot be changed after tab creation. + * The application that is linked to the tab. This can't be changed after tab creation. * @param TeamsAppRequestBuilderGetRequestConfiguration|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/Tabs/Item/TeamsApp/TeamsAppRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilderGetQueryParameters.php index 5dd21e63378..ae7fb77bfef 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The application that is linked to the tab. This cannot be changed after tab creation. + * The application that is linked to the tab. This can't be changed after tab creation. */ class TeamsAppRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.php index 4e2939248fc..d433d83f3e6 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Removes (unpins) a tab from the specified channel within a team. + * Removes (unpins) a tab from the specified channel within a team. This API is supported in the following national cloud deployments. * @param TeamsTabItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/channel-delete-tabs?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function delete(?TeamsTabItemRequestBuilderDeleteRequestConfiguration $re } /** - * Retrieve the properties and relationships of the specified tab in a channel within a team. + * Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. * @param TeamsTabItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/channel-get-tabs?view=graph-rest-1.0 Find more info here @@ -78,7 +78,7 @@ public function get(?TeamsTabItemRequestBuilderGetRequestConfiguration $requestC } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. * @param TeamsTab $body The request body * @param TeamsTabItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -98,7 +98,7 @@ public function patch(TeamsTab $body, ?TeamsTabItemRequestBuilderPatchRequestCon } /** - * Removes (unpins) a tab from the specified channel within a team. + * Removes (unpins) a tab from the specified channel within a team. This API is supported in the following national cloud deployments. * @param TeamsTabItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -115,7 +115,7 @@ public function toDeleteRequestInformation(?TeamsTabItemRequestBuilderDeleteRequ } /** - * Retrieve the properties and relationships of the specified tab in a channel within a team. + * Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. * @param TeamsTabItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -136,7 +136,7 @@ public function toGetRequestInformation(?TeamsTabItemRequestBuilderGetRequestCon } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. * @param TeamsTab $body The request body * @param TeamsTabItemRequestBuilderPatchRequestConfiguration|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/Tabs/Item/TeamsTabItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilderGetQueryParameters.php index 05a5a7c62d8..b06d3cdde2c 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of the specified tab in a channel within a team. + * Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. */ class TeamsTabItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Tabs/TabsRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Tabs/TabsRequestBuilder.php index d446dcebba0..97159293769 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Tabs/TabsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Tabs/TabsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the list of tabs in the specified channel within a team. + * Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. * @param TabsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/channel-list-tabs?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?TabsRequestBuilderGetRequestConfiguration $requestConfigura } /** - * Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + * Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. This API is supported in the following national cloud deployments. * @param TeamsTab $body The request body * @param TabsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(TeamsTab $body, ?TabsRequestBuilderPostRequestConfiguration } /** - * Retrieve the list of tabs in the specified channel within a team. + * Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. * @param TabsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?TabsRequestBuilderGetRequestConfigurati } /** - * Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + * Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. This API is supported in the following national cloud deployments. * @param TeamsTab $body The request body * @param TabsRequestBuilderPostRequestConfiguration|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/Tabs/TabsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Channels/Item/Tabs/TabsRequestBuilderGetQueryParameters.php index bfb500dbf83..293eb3fb495 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Tabs/TabsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Tabs/TabsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the list of tabs in the specified channel within a team. + * Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. */ class TabsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/CompleteMigration/CompleteMigrationRequestBuilder.php b/src/Generated/Groups/Item/Team/CompleteMigration/CompleteMigrationRequestBuilder.php index d94c56776d6..c0acb8f1a70 100644 --- a/src/Generated/Groups/Item/Team/CompleteMigration/CompleteMigrationRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/CompleteMigration/CompleteMigrationRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Complete the message migration process by removing migration mode from a team. Migration mode is a special state where certain operations are barred, like message POST and membership operations during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + * Complete the message migration process by removing migration mode from a team. Migration mode is a special state where certain operations are barred, like message POST and membership operations during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. * @param CompleteMigrationRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/team-completemigration?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?CompleteMigrationRequestBuilderPostRequestConfiguration $r } /** - * Complete the message migration process by removing migration mode from a team. Migration mode is a special state where certain operations are barred, like message POST and membership operations during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + * Complete the message migration process by removing migration mode from a team. Migration mode is a special state where certain operations are barred, like message POST and membership operations during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. * @param CompleteMigrationRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/EscapedClone/CloneRequestBuilder.php b/src/Generated/Groups/Item/Team/EscapedClone/CloneRequestBuilder.php index 2c93b8501f4..6217d9dfe36 100644 --- a/src/Generated/Groups/Item/Team/EscapedClone/CloneRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/EscapedClone/CloneRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they aren't configured. The tabs are displayed on the tab bar in Microsoft Teams, and the first time a user opens them, they must go through the configuration screen. If the user who opens the tab doesn't have permission to configure apps, they'll see a message that says that the tab isn't configured. Cloning is a long-running operation. After the POST clone returns, you need to GET the operation returned by the Location: header to see if it's running, succeeded, or failed. You should continue to GET until the status isn't running. The recommended delay between GETs is 5 seconds. + * Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they aren't configured. The tabs are displayed on the tab bar in Microsoft Teams, and the first time a user opens them, they must go through the configuration screen. If the user who opens the tab doesn't have permission to configure apps, they'll see a message that says that the tab isn't configured. Cloning is a long-running operation. After the POST clone returns, you need to GET the operation returned by the Location: header to see if it's running, succeeded, or failed. You should continue to GET until the status isn't running. The recommended delay between GETs is 5 seconds. This API is supported in the following national cloud deployments. * @param ClonePostRequestBody $body The request body * @param CloneRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ClonePostRequestBody $body, ?CloneRequestBuilderPostRequest } /** - * Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they aren't configured. The tabs are displayed on the tab bar in Microsoft Teams, and the first time a user opens them, they must go through the configuration screen. If the user who opens the tab doesn't have permission to configure apps, they'll see a message that says that the tab isn't configured. Cloning is a long-running operation. After the POST clone returns, you need to GET the operation returned by the Location: header to see if it's running, succeeded, or failed. You should continue to GET until the status isn't running. The recommended delay between GETs is 5 seconds. + * Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they aren't configured. The tabs are displayed on the tab bar in Microsoft Teams, and the first time a user opens them, they must go through the configuration screen. If the user who opens the tab doesn't have permission to configure apps, they'll see a message that says that the tab isn't configured. Cloning is a long-running operation. After the POST clone returns, you need to GET the operation returned by the Location: header to see if it's running, succeeded, or failed. You should continue to GET until the status isn't running. The recommended delay between GETs is 5 seconds. This API is supported in the following national cloud deployments. * @param ClonePostRequestBody $body The request body * @param CloneRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/Group/GroupRequestBuilder.php b/src/Generated/Groups/Item/Team/Group/GroupRequestBuilder.php index 2328a9d0858..bcbad3c58b3 100644 --- a/src/Generated/Groups/Item/Team/Group/GroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Group/GroupRequestBuilder.php @@ -5,6 +5,7 @@ use Exception; use Http\Promise\Promise; use Http\Promise\RejectedPromise; +use Microsoft\Graph\Generated\Groups\Item\Team\Group\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\Group; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -17,6 +18,13 @@ */ class GroupRequestBuilder extends BaseRequestBuilder { + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new GroupRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..e15644e226a --- /dev/null +++ b/src/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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/group/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..a5e02f5eb09 --- /dev/null +++ b/src/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e14a3793f23 --- /dev/null +++ b/src/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/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/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..0549a28d5fe --- /dev/null +++ b/src/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..32fa4b871d5 --- /dev/null +++ b/src/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..6a0869fee47 --- /dev/null +++ b/src/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Groups/Item/Team/IncomingChannels/IncomingChannelsRequestBuilder.php b/src/Generated/Groups/Item/Team/IncomingChannels/IncomingChannelsRequestBuilder.php index f029e40ce7f..d1f1f106045 100644 --- a/src/Generated/Groups/Item/Team/IncomingChannels/IncomingChannelsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/IncomingChannels/IncomingChannelsRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the list of incoming channels (channels shared with a team). + * Get the list of incoming channels (channels shared with a team). This API is supported in the following national cloud deployments. * @param IncomingChannelsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/team-list-incomingchannels?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?IncomingChannelsRequestBuilderGetRequestConfiguration $requ } /** - * Get the list of incoming channels (channels shared with a team). + * Get the list of incoming channels (channels shared with a team). This API is supported in the following national cloud deployments. * @param IncomingChannelsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/IncomingChannels/IncomingChannelsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/IncomingChannels/IncomingChannelsRequestBuilderGetQueryParameters.php index a859889dffa..5ba89a388c4 100644 --- a/src/Generated/Groups/Item/Team/IncomingChannels/IncomingChannelsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/IncomingChannels/IncomingChannelsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the list of incoming channels (channels shared with a team). + * Get the list of incoming channels (channels shared with a team). This API is supported in the following national cloud deployments. */ class IncomingChannelsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/InstalledApps/InstalledAppsRequestBuilder.php b/src/Generated/Groups/Item/Team/InstalledApps/InstalledAppsRequestBuilder.php index fc8b8397c1e..633e6e36004 100644 --- a/src/Generated/Groups/Item/Team/InstalledApps/InstalledAppsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/InstalledApps/InstalledAppsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of apps installed in the specified team. + * Retrieve a list of apps installed in the specified team. This API is supported in the following national cloud deployments. * @param InstalledAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/team-list-installedapps?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?InstalledAppsRequestBuilderGetRequestConfiguration $request } /** - * Install an app to the specified team. + * Install an app to the specified team. This API is supported in the following national cloud deployments. * @param TeamsAppInstallation $body The request body * @param InstalledAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(TeamsAppInstallation $body, ?InstalledAppsRequestBuilderPos } /** - * Retrieve a list of apps installed in the specified team. + * Retrieve a list of apps installed in the specified team. This API is supported in the following national cloud deployments. * @param InstalledAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?InstalledAppsRequestBuilderGetRequestCo } /** - * Install an app to the specified team. + * Install an app to the specified team. This API is supported in the following national cloud deployments. * @param TeamsAppInstallation $body The request body * @param InstalledAppsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/InstalledApps/InstalledAppsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/InstalledApps/InstalledAppsRequestBuilderGetQueryParameters.php index fc1aa01ac12..b8de82ad086 100644 --- a/src/Generated/Groups/Item/Team/InstalledApps/InstalledAppsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/InstalledApps/InstalledAppsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of apps installed in the specified team. + * Retrieve a list of apps installed in the specified team. This API is supported in the following national cloud deployments. */ class InstalledAppsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php b/src/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php index e5315af38dc..12905a66e45 100644 --- a/src/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php @@ -56,7 +56,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Uninstalls an app from the specified team. + * Uninstalls an app from the specified team. This API is supported in the following national cloud deployments. * @param TeamsAppInstallationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/team-delete-installedapps?view=graph-rest-1.0 Find more info here @@ -75,7 +75,7 @@ public function delete(?TeamsAppInstallationItemRequestBuilderDeleteRequestConfi } /** - * Retrieve the app installed in the specified team. + * Retrieve the app installed in the specified team. This API is supported in the following national cloud deployments. * @param TeamsAppInstallationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/team-get-installedapps?view=graph-rest-1.0 Find more info here @@ -113,7 +113,7 @@ public function patch(TeamsAppInstallation $body, ?TeamsAppInstallationItemReque } /** - * Uninstalls an app from the specified team. + * Uninstalls an app from the specified team. This API is supported in the following national cloud deployments. * @param TeamsAppInstallationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -130,7 +130,7 @@ public function toDeleteRequestInformation(?TeamsAppInstallationItemRequestBuild } /** - * Retrieve the app installed in the specified team. + * Retrieve the app installed in the specified team. This API is supported in the following national cloud deployments. * @param TeamsAppInstallationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppInstallationItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppInstallationItemRequestBuilderGetQueryParameters.php index 4942c2e2430..04110aa9fcd 100644 --- a/src/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppInstallationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppInstallationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the app installed in the specified team. + * Retrieve the app installed in the specified team. This API is supported in the following national cloud deployments. */ class TeamsAppInstallationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.php b/src/Generated/Groups/Item/Team/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.php index 5b995b5e571..4e858b2ff40 100644 --- a/src/Generated/Groups/Item/Team/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Upgrade an app installation within a chat. + * Upgrade an app installation within a chat. This API is supported in the following national cloud deployments. * @param UpgradePostRequestBody $body The request body * @param UpgradeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(UpgradePostRequestBody $body, ?UpgradeRequestBuilderPostReq } /** - * Upgrade an app installation within a chat. + * Upgrade an app installation within a chat. This API is supported in the following national cloud deployments. * @param UpgradePostRequestBody $body The request body * @param UpgradeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/Members/Add/AddPostResponse.php b/src/Generated/Groups/Item/Team/Members/Add/AddPostResponse.php new file mode 100644 index 00000000000..1d385d773b2 --- /dev/null +++ b/src/Generated/Groups/Item/Team/Members/Add/AddPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ActionResultPart::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, ActionResultPart::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/Groups/Item/Team/Members/Add/AddRequestBuilder.php b/src/Generated/Groups/Item/Team/Members/Add/AddRequestBuilder.php index 2e11b37a086..c1d6b8871b9 100644 --- a/src/Generated/Groups/Item/Team/Members/Add/AddRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Members/Add/AddRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConf '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [AddResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [AddPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/Members/Add/AddResponse.php b/src/Generated/Groups/Item/Team/Members/Add/AddResponse.php deleted file mode 100644 index adb49d70db9..00000000000 --- a/src/Generated/Groups/Item/Team/Members/Add/AddResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ActionResultPart::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, ActionResultPart::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/Groups/Item/Team/Members/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Members/Item/ConversationMemberItemRequestBuilder.php index 75683e1240e..9caf4a5f0c9 100644 --- a/src/Generated/Groups/Item/Team/Members/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Members/Item/ConversationMemberItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove a conversationMember from a team. + * Remove a conversationMember from a team. This API is supported in the following national cloud deployments. * @param ConversationMemberItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/team-delete-members?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?ConversationMemberItemRequestBuilderDeleteRequestConfigu } /** - * Get a conversationMember from a team. + * Get a conversationMember from a team. This API is supported in the following national cloud deployments. * @param ConversationMemberItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/team-get-members?view=graph-rest-1.0 Find more info here @@ -70,7 +70,7 @@ public function get(?ConversationMemberItemRequestBuilderGetRequestConfiguration } /** - * Update the role of a conversationMember in a team. + * Update the role of a conversationMember in a team. This API is supported in the following national cloud deployments. * @param ConversationMember $body The request body * @param ConversationMemberItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -90,7 +90,7 @@ public function patch(ConversationMember $body, ?ConversationMemberItemRequestBu } /** - * Remove a conversationMember from a team. + * Remove a conversationMember from a team. This API is supported in the following national cloud deployments. * @param ConversationMemberItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?ConversationMemberItemRequestBuilder } /** - * Get a conversationMember from a team. + * Get a conversationMember from a team. This API is supported in the following national cloud deployments. * @param ConversationMemberItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -128,7 +128,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } /** - * Update the role of a conversationMember in a team. + * Update the role of a conversationMember in a team. This API is supported in the following national cloud deployments. * @param ConversationMember $body The request body * @param ConversationMemberItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/Members/Item/ConversationMemberItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Members/Item/ConversationMemberItemRequestBuilderGetQueryParameters.php index ae2101d6e67..215b4330f80 100644 --- a/src/Generated/Groups/Item/Team/Members/Item/ConversationMemberItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Members/Item/ConversationMemberItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a conversationMember from a team. + * Get a conversationMember from a team. This API is supported in the following national cloud deployments. */ class ConversationMemberItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Members/MembersRequestBuilder.php b/src/Generated/Groups/Item/Team/Members/MembersRequestBuilder.php index 7ac0a1301f0..ebe1d42e561 100644 --- a/src/Generated/Groups/Item/Team/Members/MembersRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Members/MembersRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the conversationMember collection of a team. + * Get the conversationMember collection of a team. The membership IDs returned by the server must be treated as opaque strings. The client should not try to parse or make assumptions about these resource IDs. In the future, membership results may include users from various tenants, as indicated in the response. Clients should avoid assuming that all members exclusively belong to the current tenant. This API is supported in the following national cloud deployments. * @param MembersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/team-list-members?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?MembersRequestBuilderGetRequestConfiguration $requestConfig } /** - * Add a new conversationMember to a team. + * Add a new conversationMember to a team. This API is supported in the following national cloud deployments. * @param ConversationMember $body The request body * @param MembersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(ConversationMember $body, ?MembersRequestBuilderPostRequest } /** - * Get the conversationMember collection of a team. + * Get the conversationMember collection of a team. The membership IDs returned by the server must be treated as opaque strings. The client should not try to parse or make assumptions about these resource IDs. In the future, membership results may include users from various tenants, as indicated in the response. Clients should avoid assuming that all members exclusively belong to the current tenant. This API is supported in the following national cloud deployments. * @param MembersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } /** - * Add a new conversationMember to a team. + * Add a new conversationMember to a team. This API is supported in the following national cloud deployments. * @param ConversationMember $body The request body * @param MembersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/Members/MembersRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Members/MembersRequestBuilderGetQueryParameters.php index 42a94f4212e..bba0182cc90 100644 --- a/src/Generated/Groups/Item/Team/Members/MembersRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Members/MembersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the conversationMember collection of a team. + * Get the conversationMember collection of a team. The membership IDs returned by the server must be treated as opaque strings. The client should not try to parse or make assumptions about these resource IDs. In the future, membership results may include users from various tenants, as indicated in the response. Clients should avoid assuming that all members exclusively belong to the current tenant. This API is supported in the following national cloud deployments. */ class MembersRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/PermissionGrants/Delta/DeltaGetResponse.php b/src/Generated/Groups/Item/Team/PermissionGrants/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..0e701d65f86 --- /dev/null +++ b/src/Generated/Groups/Item/Team/PermissionGrants/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([DirectoryObject::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, DirectoryObject::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/Groups/Item/Team/PermissionGrants/Delta/DeltaRequestBuilder.php b/src/Generated/Groups/Item/Team/PermissionGrants/Delta/DeltaRequestBuilder.php index aa12266eb79..4f3cd9c2111 100644 --- a/src/Generated/Groups/Item/Team/PermissionGrants/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PermissionGrants/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/Team/PermissionGrants/Delta/DeltaResponse.php b/src/Generated/Groups/Item/Team/PermissionGrants/Delta/DeltaResponse.php deleted file mode 100644 index 52467b4609e..00000000000 --- a/src/Generated/Groups/Item/Team/PermissionGrants/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/Groups/Item/Team/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php b/src/Generated/Groups/Item/Team/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php new file mode 100644 index 00000000000..13b8669820f --- /dev/null +++ b/src/Generated/Groups/Item/Team/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/Groups/Item/Team/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/Groups/Item/Team/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index 7b9a901dccc..f7c3e81954d 100644 --- a/src/Generated/Groups/Item/Team/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetAvailableExtensionPropertiesPostRequestBody $body, ?GetA '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php b/src/Generated/Groups/Item/Team/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php deleted file mode 100644 index abed979fdcc..00000000000 --- a/src/Generated/Groups/Item/Team/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/Groups/Item/Team/PermissionGrants/GetByIds/GetByIdsPostResponse.php b/src/Generated/Groups/Item/Team/PermissionGrants/GetByIds/GetByIdsPostResponse.php new file mode 100644 index 00000000000..3c26698036d --- /dev/null +++ b/src/Generated/Groups/Item/Team/PermissionGrants/GetByIds/GetByIdsPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/Groups/Item/Team/PermissionGrants/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/Groups/Item/Team/PermissionGrants/GetByIds/GetByIdsRequestBuilder.php index 4f06b4ca5d9..1ace65cd45a 100644 --- a/src/Generated/Groups/Item/Team/PermissionGrants/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PermissionGrants/GetByIds/GetByIdsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetByIdsPostRequestBody $body, ?GetByIdsRequestBuilderPostR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/PermissionGrants/GetByIds/GetByIdsResponse.php b/src/Generated/Groups/Item/Team/PermissionGrants/GetByIds/GetByIdsResponse.php deleted file mode 100644 index f980927706d..00000000000 --- a/src/Generated/Groups/Item/Team/PermissionGrants/GetByIds/GetByIdsResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/Groups/Item/Team/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php b/src/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php new file mode 100644 index 00000000000..779c16b2185 --- /dev/null +++ b/src/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Groups/Item/Team/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php b/src/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php index d16e158a071..e16c16cadba 100644 --- a/src/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. * @param CheckMemberGroupsPostRequestBody $body The request body * @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberGroupsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberGroupsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. * @param CheckMemberGroupsPostRequestBody $body The request body * @param CheckMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.php b/src/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.php deleted file mode 100644 index b5cb3fb335e..00000000000 --- a/src/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Groups/Item/Team/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php b/src/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php new file mode 100644 index 00000000000..a49cc6e60e8 --- /dev/null +++ b/src/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Groups/Item/Team/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php b/src/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php index b06290ad71f..d87bad85bad 100644 --- a/src/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php @@ -43,7 +43,7 @@ public function post(CheckMemberObjectsPostRequestBody $body, ?CheckMemberObject '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberObjectsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [CheckMemberObjectsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.php b/src/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.php deleted file mode 100644 index e50725feb15..00000000000 --- a/src/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Groups/Item/Team/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.php b/src/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.php new file mode 100644 index 00000000000..68926f50536 --- /dev/null +++ b/src/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Groups/Item/Team/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index f56b8683666..4557661b73f 100644 --- a/src/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetMemberGroupsPostRequestBody $body, ?GetMemberGroupsReque '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetMemberGroupsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetMemberGroupsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. * @param GetMemberGroupsPostRequestBody $body The request body * @param GetMemberGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.php b/src/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.php deleted file mode 100644 index 68e17fac9ad..00000000000 --- a/src/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Groups/Item/Team/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.php b/src/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.php new file mode 100644 index 00000000000..ab4eeb2ac27 --- /dev/null +++ b/src/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Groups/Item/Team/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php b/src/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php index 2e425f92bb6..1077c1f05c2 100644 --- a/src/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. * @param GetMemberObjectsPostRequestBody $body The request body * @param GetMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetMemberObjectsPostRequestBody $body, ?GetMemberObjectsReq '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetMemberObjectsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetMemberObjectsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. * @param GetMemberObjectsPostRequestBody $body The request body * @param GetMemberObjectsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.php b/src/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.php deleted file mode 100644 index 7fcbcaffb40..00000000000 --- a/src/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Groups/Item/Team/PermissionGrants/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Groups/Item/Team/PermissionGrants/Item/Restore/RestoreRequestBuilder.php index 2b7dacb4a61..99ce50579b1 100644 --- a/src/Generated/Groups/Item/Team/PermissionGrants/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PermissionGrants/Item/Restore/RestoreRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain 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. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. * @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/PermissionGrants/PermissionGrantsRequestBuilder.php b/src/Generated/Groups/Item/Team/PermissionGrants/PermissionGrantsRequestBuilder.php index d2b4fd6813b..6a386eef7ca 100644 --- a/src/Generated/Groups/Item/Team/PermissionGrants/PermissionGrantsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PermissionGrants/PermissionGrantsRequestBuilder.php @@ -85,7 +85,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. + * List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is supported in the following national cloud deployments. * @param PermissionGrantsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/team-list-permissiongrants?view=graph-rest-1.0 Find more info here @@ -123,7 +123,7 @@ public function post(ResourceSpecificPermissionGrant $body, ?PermissionGrantsReq } /** - * List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. + * List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is supported in the following national cloud deployments. * @param PermissionGrantsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/PermissionGrants/PermissionGrantsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/PermissionGrants/PermissionGrantsRequestBuilderGetQueryParameters.php index ceb1f5b96cd..ae814564656 100644 --- a/src/Generated/Groups/Item/Team/PermissionGrants/PermissionGrantsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/PermissionGrants/PermissionGrantsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. + * List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is supported in the following national cloud deployments. */ class PermissionGrantsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/Groups/Item/Team/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.php index fd0df17b7cc..2c72656be1d 100644 --- a/src/Generated/Groups/Item/Team/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ValidatePropertiesPostRequestBody $body, ?ValidatePropertie } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/Photo/PhotoRequestBuilder.php b/src/Generated/Groups/Item/Team/Photo/PhotoRequestBuilder.php index 17ea04f07b3..e9a60214f62 100644 --- a/src/Generated/Groups/Item/Team/Photo/PhotoRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Photo/PhotoRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. + * Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is supported in the following national cloud deployments. * @param PhotoRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/profilephoto-get?view=graph-rest-1.0 Find more info here @@ -78,7 +78,7 @@ public function patch(ProfilePhoto $body, ?PhotoRequestBuilderPatchRequestConfig } /** - * Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. + * Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is supported in the following national cloud deployments. * @param PhotoRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/Photo/PhotoRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Photo/PhotoRequestBuilderGetQueryParameters.php index c52d5f3adc8..ca89943f2b0 100644 --- a/src/Generated/Groups/Item/Team/Photo/PhotoRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Photo/PhotoRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. + * Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is supported in the following national cloud deployments. */ class PhotoRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.php index d4c2274b913..9eb69da5620 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + * Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. * @param CompleteMigrationRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/channel-completemigration?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?CompleteMigrationRequestBuilderPostRequestConfiguration $r } /** - * Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + * Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. * @param CompleteMigrationRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.php b/src/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.php new file mode 100644 index 00000000000..466b106bcee --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.php @@ -0,0 +1,114 @@ +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 DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse { + return new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(); + } + + /** + * 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 [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), + ]; + } + + /** + * Gets the value property value. The value property + * @return bool|null + */ + public function getValue(): ?bool { + $val = $this->getBackingStore()->get('value'); + if (is_null($val) || is_bool($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 { + $writer->writeBooleanValue('value', $this->getValue()); + $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 value property value. The value property + * @param bool|null $value Value to set for the value property. + */ + public function setValue(?bool $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php index e4bd00377b8..2bbf29c3e57 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipal '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.php b/src/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.php deleted file mode 100644 index 9803c9b5d69..00000000000 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -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 DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse { - return new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse(); - } - - /** - * 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 [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getBooleanValue()), - ]; - } - - /** - * Gets the value property value. The value property - * @return bool|null - */ - public function getValue(): ?bool { - $val = $this->getBackingStore()->get('value'); - if (is_null($val) || is_bool($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 { - $writer->writeBooleanValue('value', $this->getValue()); - $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 value property value. The value property - * @param bool|null $value Value to set for the value property. - */ - public function setValue(?bool $value): void { - $this->getBackingStore()->set('value', $value); - } - -} diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.php index 41a4d1a0055..2b6dc6a6f4e 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the metadata for the location where the files of a channel are stored. + * Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. * @param FilesFolderRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/channel-get-filesfolder?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function get(?FilesFolderRequestBuilderGetRequestConfiguration $requestCo } /** - * Get the metadata for the location where the files of a channel are stored. + * Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. * @param FilesFolderRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/FilesFolderRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/FilesFolderRequestBuilderGetQueryParameters.php index f65b8d7da19..0bec8a501cf 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/FilesFolderRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/FilesFolderRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the metadata for the location where the files of a channel are stored. + * Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. */ class FilesFolderRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddPostResponse.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddPostResponse.php new file mode 100644 index 00000000000..81b65c6a233 --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ActionResultPart::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, ActionResultPart::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/Groups/Item/Team/PrimaryChannel/Members/Add/AddRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddRequestBuilder.php index 0b6374c1d23..f3b3fecd8a5 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConf '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [AddResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [AddPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. * @param AddPostRequestBody $body The request body * @param AddRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddResponse.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddResponse.php deleted file mode 100644 index 333a52cc97e..00000000000 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ActionResultPart::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, ActionResultPart::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/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php index 9b8f8d2beeb..f797ceb3059 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php @@ -32,10 +32,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Delete a conversationMember from a channel. This API is supported in the following national cloud deployments. * @param ConversationMemberItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/channel-delete-members?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/conversationmember-delete?view=graph-rest-1.0 Find more info here */ public function delete(?ConversationMemberItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -51,7 +51,7 @@ public function delete(?ConversationMemberItemRequestBuilderDeleteRequestConfigu } /** - * Get a conversationMember from a channel. + * Get a conversationMember from a channel. This API is supported in the following national cloud deployments. * @param ConversationMemberItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/channel-get-members?view=graph-rest-1.0 Find more info here @@ -70,7 +70,7 @@ public function get(?ConversationMemberItemRequestBuilderGetRequestConfiguration } /** - * Update the role of a conversationMember in a team or channel. + * Update the role of a conversationMember in a team or channel. This API is supported in the following national cloud deployments. * @param ConversationMember $body The request body * @param ConversationMemberItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -90,7 +90,7 @@ public function patch(ConversationMember $body, ?ConversationMemberItemRequestBu } /** - * Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Delete a conversationMember from a channel. This API is supported in the following national cloud deployments. * @param ConversationMemberItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?ConversationMemberItemRequestBuilder } /** - * Get a conversationMember from a channel. + * Get a conversationMember from a channel. This API is supported in the following national cloud deployments. * @param ConversationMemberItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -128,7 +128,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } /** - * Update the role of a conversationMember in a team or channel. + * Update the role of a conversationMember in a team or channel. This API is supported in the following national cloud deployments. * @param ConversationMember $body The request body * @param ConversationMemberItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilderGetQueryParameters.php index 5efa90fdbbb..adf398947bf 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a conversationMember from a channel. + * Get a conversationMember from a channel. This API is supported in the following national cloud deployments. */ class ConversationMemberItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.php index 045d2bd0fb5..e294e8fe909 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + * Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. * @param MembersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/channel-list-members?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?MembersRequestBuilderGetRequestConfiguration $requestConfig } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This API is supported in the following national cloud deployments. * @param ConversationMember $body The request body * @param MembersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(ConversationMember $body, ?MembersRequestBuilderPostRequest } /** - * Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + * Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. * @param MembersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } /** - * Add a conversationMember to a channel. + * Add a conversationMember to a channel. This API is supported in the following national cloud deployments. * @param ConversationMember $body The request body * @param MembersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilderGetQueryParameters.php index ae96114c52e..521cd462c38 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + * Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. */ class MembersRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaGetResponse.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..9f87284e6e4 --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/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([ChatMessage::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, ChatMessage::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/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.php index 4d61538a080..7449f91c0a4 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaResponse.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaResponse.php deleted file mode 100644 index d68ce313300..00000000000 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ChatMessage::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, ChatMessage::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/Groups/Item/Team/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.php index 94f0fc23b3f..2f47d188777 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.php @@ -98,7 +98,7 @@ public function delete(?ChatMessageItemRequestBuilderDeleteRequestConfiguration } /** - * Retrieve a single message or a message reply in a channel or a chat. + * Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param ChatMessageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessage-get?view=graph-rest-1.0 Find more info here @@ -117,7 +117,7 @@ public function get(?ChatMessageItemRequestBuilderGetRequestConfiguration $reque } /** - * Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. + * Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. This API is supported in the following national cloud deployments. * @param ChatMessage $body The request body * @param ChatMessageItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -154,7 +154,7 @@ public function toDeleteRequestInformation(?ChatMessageItemRequestBuilderDeleteR } /** - * Retrieve a single message or a message reply in a channel or a chat. + * Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param ChatMessageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -175,7 +175,7 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest } /** - * Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. + * Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. This API is supported in the following national cloud deployments. * @param ChatMessage $body The request body * @param ChatMessageItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilderGetQueryParameters.php index 3926d2b261d..3be61882fbf 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a single message or a message reply in a channel or a chat. + * Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. */ class ChatMessageItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.php index 526afeeb87e..c1a33ae2e15 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. * @param HostedContentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessage-list-hostedcontents?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(ChatMessageHostedContent $body, ?HostedContentsRequestBuild } /** - * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. * @param HostedContentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilderGetQueryParameters.php index 90f5635165d..af066155715 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. */ class HostedContentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php index f1ecef4ac0e..6d82bafb581 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?ChatMessageHostedContentItemRequestBuilderDeleteRequestC } /** - * Retrieve the properties and relationships of chatMessageHostedContent object. + * Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. * @param ChatMessageHostedContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessagehostedcontent-get?view=graph-rest-1.0 Find more info here @@ -113,7 +113,7 @@ public function toDeleteRequestInformation(?ChatMessageHostedContentItemRequestB } /** - * Retrieve the properties and relationships of chatMessageHostedContent object. + * Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. * @param ChatMessageHostedContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilderGetQueryParameters.php index 4b54cc2370a..940f113c5e2 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of chatMessageHostedContent object. + * Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. */ class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..e58802ec98f --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/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([ChatMessage::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, ChatMessage::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/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.php index d2f2ff34c3b..e699e35408d 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.php deleted file mode 100644 index 03c5c9f8da6..00000000000 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ChatMessage::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, ChatMessage::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/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php index a126f8747bd..74b6fa5a788 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php @@ -90,7 +90,7 @@ public function delete(?ChatMessageItemRequestBuilderDeleteRequestConfiguration } /** - * Retrieve a single message or a message reply in a channel or a chat. + * Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param ChatMessageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessage-get?view=graph-rest-1.0 Find more info here @@ -145,7 +145,7 @@ public function toDeleteRequestInformation(?ChatMessageItemRequestBuilderDeleteR } /** - * Retrieve a single message or a message reply in a channel or a chat. + * Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param ChatMessageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilderGetQueryParameters.php index a5955ffd12e..c42cee705f3 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a single message or a message reply in a channel or a chat. + * Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. */ class ChatMessageItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php index ff4cfd545f6..b2841cec606 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. * @param HostedContentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessage-list-hostedcontents?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(ChatMessageHostedContent $body, ?HostedContentsRequestBuild } /** - * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. * @param HostedContentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilderGetQueryParameters.php index 5da86597405..d47b6e6adb7 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + * Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. */ class HostedContentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php index cf53f3f7992..0a6b980d1f6 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?ChatMessageHostedContentItemRequestBuilderDeleteRequestC } /** - * Retrieve the properties and relationships of chatMessageHostedContent object. + * Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. * @param ChatMessageHostedContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessagehostedcontent-get?view=graph-rest-1.0 Find more info here @@ -113,7 +113,7 @@ public function toDeleteRequestInformation(?ChatMessageHostedContentItemRequestB } /** - * Retrieve the properties and relationships of chatMessageHostedContent object. + * Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. * @param ChatMessageHostedContentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilderGetQueryParameters.php index 4d390bbeb5d..908a35aeb81 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of chatMessageHostedContent object. + * Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. */ class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php index e18d4d5a11b..6244f7e11f7 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a single chatMessage or a chat message reply in a channel or a chat. + * Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param SoftDeleteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessage-softdelete?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?SoftDeleteRequestBuilderPostRequestConfiguration $requestC } /** - * Delete a single chatMessage or a chat message reply in a channel or a chat. + * Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param SoftDeleteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php index 3972417ac04..9c1d4bb3582 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param UndoSoftDeleteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessage-undosoftdelete?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?UndoSoftDeleteRequestBuilderPostRequestConfiguration $requ } /** - * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param UndoSoftDeleteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ 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 7f3b7f42aa2..5d19c15f582 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 @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + * List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. * @param RepliesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessage-list-replies?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?RepliesRequestBuilderGetRequestConfiguration $requestConfig } /** - * Create a new reply to a chatMessage in a specified channel. + * Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. * @param ChatMessage $body The request body * @param RepliesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(ChatMessage $body, ?RepliesRequestBuilderPostRequestConfigu } /** - * List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + * List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. * @param RepliesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?RepliesRequestBuilderGetRequestConfigur } /** - * Create a new reply to a chatMessage in a specified channel. + * Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. * @param ChatMessage $body The request body * @param RepliesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilderGetQueryParameters.php index 50214cf3ded..3a017e6d014 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + * List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. */ class RepliesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php index ec88ee7912f..e985925ab6c 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a single chatMessage or a chat message reply in a channel or a chat. + * Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param SoftDeleteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessage-softdelete?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?SoftDeleteRequestBuilderPostRequestConfiguration $requestC } /** - * Delete a single chatMessage or a chat message reply in a channel or a chat. + * Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param SoftDeleteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php index f595bcf3524..54f50a48146 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param UndoSoftDeleteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/chatmessage-undosoftdelete?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?UndoSoftDeleteRequestBuilderPostRequestConfiguration $requ } /** - * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. * @param UndoSoftDeleteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.php index 78ce752ee29..c01f3978aaf 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + * Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. * @param MessagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/channel-list-messages?view=graph-rest-1.0 Find more info here @@ -80,11 +80,11 @@ public function get(?MessagesRequestBuilderGetRequestConfiguration $requestConfi } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. This API is supported in the following national cloud deployments. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 Find more info here */ public function post(ChatMessage $body, ?MessagesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -100,7 +100,7 @@ public function post(ChatMessage $body, ?MessagesRequestBuilderPostRequestConfig } /** - * Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + * Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. * @param MessagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. This API is supported in the following national cloud deployments. * @param ChatMessage $body The request body * @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilderGetQueryParameters.php index b5a4e9aacfb..8e926e98e63 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + * Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. */ class MessagesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.php index 340c53786bc..5deaf6e8c5b 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.php @@ -122,7 +122,7 @@ public function delete(?PrimaryChannelRequestBuilderDeleteRequestConfiguration $ } /** - * Get the default channel, General, of a team. + * Get the default channel, General, of a team. This API is supported in the following national cloud deployments. * @param PrimaryChannelRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/team-get-primarychannel?view=graph-rest-1.0 Find more info here @@ -177,7 +177,7 @@ public function toDeleteRequestInformation(?PrimaryChannelRequestBuilderDeleteRe } /** - * Get the default channel, General, of a team. + * Get the default channel, General, of a team. This API is supported in the following national cloud deployments. * @param PrimaryChannelRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilderGetQueryParameters.php index 05efa5f791a..1d164f5bc70 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the default channel, General, of a team. + * Get the default channel, General, of a team. This API is supported in the following national cloud deployments. */ class PrimaryChannelRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.php index 7b8bc797c20..ce20ec19a23 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. + * Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. This API is supported in the following national cloud deployments. * @param ProvisionEmailRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/channel-provisionemail?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?ProvisionEmailRequestBuilderPostRequestConfiguration $requ } /** - * Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. + * Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. This API is supported in the following national cloud deployments. * @param ProvisionEmailRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.php index 801ff2d3d8b..2bcaaf2f0be 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. + * Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. This API is supported in the following national cloud deployments. * @param RemoveEmailRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/channel-removeemail?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?RemoveEmailRequestBuilderPostRequestConfiguration $request } /** - * Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. + * Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. This API is supported in the following national cloud deployments. * @param RemoveEmailRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php index a603635ed84..8e57df5300d 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + * Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. * @param AllowedMembersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/sharedwithchannelteaminfo-list-allowedmembers?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?AllowedMembersRequestBuilderGetRequestConfiguration $reques } /** - * Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + * Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. * @param AllowedMembersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilderGetQueryParameters.php index fe2bc7f0702..99fea3a29cf 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + * Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. */ class AllowedMembersRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php index 08e16b84227..33b8c49f3c0 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. + * Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. * @param SharedWithChannelTeamInfoItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/sharedwithchannelteaminfo-delete?view=graph-rest-1.0 Find more info here @@ -67,7 +67,7 @@ public function delete(?SharedWithChannelTeamInfoItemRequestBuilderDeleteRequest } /** - * Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + * Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. * @param SharedWithChannelTeamInfoItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/sharedwithchannelteaminfo-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function patch(SharedWithChannelTeamInfo $body, ?SharedWithChannelTeamInf } /** - * Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. + * Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. * @param SharedWithChannelTeamInfoItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -122,7 +122,7 @@ public function toDeleteRequestInformation(?SharedWithChannelTeamInfoItemRequest } /** - * Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + * Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. * @param SharedWithChannelTeamInfoItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters.php index 8006b3f6c5f..f6a4d5bcb09 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + * Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. */ class SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.php index d6e31f625d4..a25cfb202ac 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + * Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. * @param SharedWithTeamsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/sharedwithchannelteaminfo-list?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(SharedWithChannelTeamInfo $body, ?SharedWithTeamsRequestBui } /** - * Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + * Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. * @param SharedWithTeamsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilderGetQueryParameters.php index 8243fec4533..b86f99970e2 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + * Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. */ class SharedWithTeamsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php index 8d7bd361299..ca95887e4b6 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The application that is linked to the tab. This cannot be changed after tab creation. + * The application that is linked to the tab. This can't be changed after tab creation. * @param TeamsAppRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -50,7 +50,7 @@ public function get(?TeamsAppRequestBuilderGetRequestConfiguration $requestConfi } /** - * The application that is linked to the tab. This cannot be changed after tab creation. + * The application that is linked to the tab. This can't be changed after tab creation. * @param TeamsAppRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilderGetQueryParameters.php index 99c00427375..a646fb464a3 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The application that is linked to the tab. This cannot be changed after tab creation. + * The application that is linked to the tab. This can't be changed after tab creation. */ class TeamsAppRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.php index 7b446dbc341..4ff2460eca9 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Removes (unpins) a tab from the specified channel within a team. + * Removes (unpins) a tab from the specified channel within a team. This API is supported in the following national cloud deployments. * @param TeamsTabItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/channel-delete-tabs?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function delete(?TeamsTabItemRequestBuilderDeleteRequestConfiguration $re } /** - * Retrieve the properties and relationships of the specified tab in a channel within a team. + * Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. * @param TeamsTabItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/channel-get-tabs?view=graph-rest-1.0 Find more info here @@ -78,7 +78,7 @@ public function get(?TeamsTabItemRequestBuilderGetRequestConfiguration $requestC } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. * @param TeamsTab $body The request body * @param TeamsTabItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -98,7 +98,7 @@ public function patch(TeamsTab $body, ?TeamsTabItemRequestBuilderPatchRequestCon } /** - * Removes (unpins) a tab from the specified channel within a team. + * Removes (unpins) a tab from the specified channel within a team. This API is supported in the following national cloud deployments. * @param TeamsTabItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -115,7 +115,7 @@ public function toDeleteRequestInformation(?TeamsTabItemRequestBuilderDeleteRequ } /** - * Retrieve the properties and relationships of the specified tab in a channel within a team. + * Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. * @param TeamsTabItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -136,7 +136,7 @@ public function toGetRequestInformation(?TeamsTabItemRequestBuilderGetRequestCon } /** - * Update the properties of the specified tab.This can be used to configure the content of the tab. + * Update the properties of the specified tab.This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. * @param TeamsTab $body The request body * @param TeamsTabItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilderGetQueryParameters.php index cf8fb09ec95..baa502029bf 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of the specified tab in a channel within a team. + * Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. */ class TeamsTabItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/TabsRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/TabsRequestBuilder.php index f0bd6d32a2e..502649a2b06 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/TabsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/TabsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the list of tabs in the specified channel within a team. + * Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. * @param TabsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/channel-list-tabs?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?TabsRequestBuilderGetRequestConfiguration $requestConfigura } /** - * Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + * Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. This API is supported in the following national cloud deployments. * @param TeamsTab $body The request body * @param TabsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(TeamsTab $body, ?TabsRequestBuilderPostRequestConfiguration } /** - * Retrieve the list of tabs in the specified channel within a team. + * Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. * @param TabsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?TabsRequestBuilderGetRequestConfigurati } /** - * Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + * Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. This API is supported in the following national cloud deployments. * @param TeamsTab $body The request body * @param TabsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/TabsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/TabsRequestBuilderGetQueryParameters.php index 51e72c02665..ad8ac3f1957 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/TabsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/TabsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the list of tabs in the specified channel within a team. + * Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. */ class TabsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.php index 0057c51fdf3..dd70f37c21a 100644 --- a/src/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?OfferShiftRequestItemRequestBuilderDeleteRequestConfigur } /** - * Retrieve the properties and relationships of an offerShiftRequest object. + * Retrieve the properties and relationships of an offerShiftRequest object. This API is supported in the following national cloud deployments. * @param OfferShiftRequestItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/offershiftrequest-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?OfferShiftRequestItemRequestBuilderD } /** - * Retrieve the properties and relationships of an offerShiftRequest object. + * Retrieve the properties and relationships of an offerShiftRequest object. This API is supported in the following national cloud deployments. * @param OfferShiftRequestItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilderGetQueryParameters.php index 045c07a54d2..bf6e71b2a7f 100644 --- a/src/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of an offerShiftRequest object. + * Retrieve the properties and relationships of an offerShiftRequest object. This API is supported in the following national cloud deployments. */ class OfferShiftRequestItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.php index 4987b116215..bc35b857413 100644 --- a/src/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the properties and relationships of all offerShiftRequest objects in a team. + * Retrieve the properties and relationships of all offerShiftRequest objects in a team. This API is supported in the following national cloud deployments. * @param OfferShiftRequestsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/offershiftrequest-list?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?OfferShiftRequestsRequestBuilderGetRequestConfiguration $re } /** - * Create an instance of an offerShiftRequest. + * Create an instance of an offerShiftRequest. This API is supported in the following national cloud deployments. * @param OfferShiftRequest $body The request body * @param OfferShiftRequestsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(OfferShiftRequest $body, ?OfferShiftRequestsRequestBuilderP } /** - * Retrieve the properties and relationships of all offerShiftRequest objects in a team. + * Retrieve the properties and relationships of all offerShiftRequest objects in a team. This API is supported in the following national cloud deployments. * @param OfferShiftRequestsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?OfferShiftRequestsRequestBuilderGetRequ } /** - * Create an instance of an offerShiftRequest. + * Create an instance of an offerShiftRequest. This API is supported in the following national cloud deployments. * @param OfferShiftRequest $body The request body * @param OfferShiftRequestsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilderGetQueryParameters.php index 28eb06260df..d30d40378c0 100644 --- a/src/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of all offerShiftRequest objects in a team. + * Retrieve the properties and relationships of all offerShiftRequest objects in a team. This API is supported in the following national cloud deployments. */ class OfferShiftRequestsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.php index c1f15be8ab0..b4de0d8dbd0 100644 --- a/src/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?OpenShiftChangeRequestItemRequestBuilderDeleteRequestCon } /** - * Retrieve the properties and relationships of an openShiftChangeRequest object. + * Retrieve the properties and relationships of an openShiftChangeRequest object. This API is supported in the following national cloud deployments. * @param OpenShiftChangeRequestItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/openshiftchangerequest-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?OpenShiftChangeRequestItemRequestBui } /** - * Retrieve the properties and relationships of an openShiftChangeRequest object. + * Retrieve the properties and relationships of an openShiftChangeRequest object. This API is supported in the following national cloud deployments. * @param OpenShiftChangeRequestItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilderGetQueryParameters.php index 465e08eac0c..3c149da080d 100644 --- a/src/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of an openShiftChangeRequest object. + * Retrieve the properties and relationships of an openShiftChangeRequest object. This API is supported in the following national cloud deployments. */ class OpenShiftChangeRequestItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.php index b95f049568f..eea433be12e 100644 --- a/src/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of openShiftChangeRequest objects in a team. + * Retrieve a list of openShiftChangeRequest objects in a team. This API is supported in the following national cloud deployments. * @param OpenShiftChangeRequestsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/openshiftchangerequest-list?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?OpenShiftChangeRequestsRequestBuilderGetRequestConfiguratio } /** - * Create instance of an openShiftChangeRequest object. + * Create instance of an openShiftChangeRequest object. This API is supported in the following national cloud deployments. * @param OpenShiftChangeRequest $body The request body * @param OpenShiftChangeRequestsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(OpenShiftChangeRequest $body, ?OpenShiftChangeRequestsReque } /** - * Retrieve a list of openShiftChangeRequest objects in a team. + * Retrieve a list of openShiftChangeRequest objects in a team. This API is supported in the following national cloud deployments. * @param OpenShiftChangeRequestsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?OpenShiftChangeRequestsRequestBuilderGe } /** - * Create instance of an openShiftChangeRequest object. + * Create instance of an openShiftChangeRequest object. This API is supported in the following national cloud deployments. * @param OpenShiftChangeRequest $body The request body * @param OpenShiftChangeRequestsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilderGetQueryParameters.php index f6d2ec447f2..d88247376dd 100644 --- a/src/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of openShiftChangeRequest objects in a team. + * Retrieve a list of openShiftChangeRequest objects in a team. This API is supported in the following national cloud deployments. */ class OpenShiftChangeRequestsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.php index 5016c0071d3..163efa95050 100644 --- a/src/Generated/Groups/Item/Team/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an openShift object. + * Delete an openShift object. This API is supported in the following national cloud deployments. * @param OpenShiftItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/openshift-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?OpenShiftItemRequestBuilderDeleteRequestConfiguration $r } /** - * Retrieve the properties and relationships of an openshift object. + * Retrieve the properties and relationships of an openshift object. This API is supported in the following national cloud deployments. * @param OpenShiftItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/openshift-get?view=graph-rest-1.0 Find more info here @@ -90,7 +90,7 @@ public function patch(OpenShift $body, ?OpenShiftItemRequestBuilderPatchRequestC } /** - * Delete an openShift object. + * Delete an openShift object. This API is supported in the following national cloud deployments. * @param OpenShiftItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?OpenShiftItemRequestBuilderDeleteReq } /** - * Retrieve the properties and relationships of an openshift object. + * Retrieve the properties and relationships of an openshift object. This API is supported in the following national cloud deployments. * @param OpenShiftItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilderGetQueryParameters.php index 07c6fa71d03..ce446806c50 100644 --- a/src/Generated/Groups/Item/Team/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of an openshift object. + * Retrieve the properties and relationships of an openshift object. This API is supported in the following national cloud deployments. */ class OpenShiftItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilder.php index 92df1a3213e..544618ab1da 100644 --- a/src/Generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List openShift objects in a team. + * List openShift objects in a team. This API is supported in the following national cloud deployments. * @param OpenShiftsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/openshift-list?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?OpenShiftsRequestBuilderGetRequestConfiguration $requestCon } /** - * Create an instance of an openShift object. + * Create an instance of an openShift object. This API is supported in the following national cloud deployments. * @param OpenShift $body The request body * @param OpenShiftsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(OpenShift $body, ?OpenShiftsRequestBuilderPostRequestConfig } /** - * List openShift objects in a team. + * List openShift objects in a team. This API is supported in the following national cloud deployments. * @param OpenShiftsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?OpenShiftsRequestBuilderGetRequestConfi } /** - * Create an instance of an openShift object. + * Create an instance of an openShift object. This API is supported in the following national cloud deployments. * @param OpenShift $body The request body * @param OpenShiftsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilderGetQueryParameters.php index 06e26d74395..931b7d2287d 100644 --- a/src/Generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List openShift objects in a team. + * List openShift objects in a team. This API is supported in the following national cloud deployments. */ class OpenShiftsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Schedule/ScheduleRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/ScheduleRequestBuilder.php index 063f007e3bb..99ed2be6817 100644 --- a/src/Generated/Groups/Item/Team/Schedule/ScheduleRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/ScheduleRequestBuilder.php @@ -130,7 +130,7 @@ public function delete(?ScheduleRequestBuilderDeleteRequestConfiguration $reques } /** - * Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. + * Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. This API is supported in the following national cloud deployments. * @param ScheduleRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/schedule-get?view=graph-rest-1.0 Find more info here @@ -185,7 +185,7 @@ public function toDeleteRequestInformation(?ScheduleRequestBuilderDeleteRequestC } /** - * Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. + * Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. This API is supported in the following national cloud deployments. * @param ScheduleRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/Schedule/ScheduleRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Schedule/ScheduleRequestBuilderGetQueryParameters.php index 1a5692dad9a..b5a09ded019 100644 --- a/src/Generated/Groups/Item/Team/Schedule/ScheduleRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Schedule/ScheduleRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. + * Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. This API is supported in the following national cloud deployments. */ class ScheduleRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.php index 64de2dcd5fe..19d70dd283b 100644 --- a/src/Generated/Groups/Item/Team/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Mark a schedulingGroup as inactive by setting its isActive property.This method does not remove the schedulingGroup from the schedule. Existing shift instances assigned to the scheduling group remain part of the group. + * Mark a schedulingGroup as inactive by setting its isActive property.This method does not remove the schedulingGroup from the schedule. Existing shift instances assigned to the scheduling group remain part of the group. This API is supported in the following national cloud deployments. * @param SchedulingGroupItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/schedulinggroup-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?SchedulingGroupItemRequestBuilderDeleteRequestConfigurat } /** - * Retrieve the properties and relationships of a schedulingGroup by ID. + * Retrieve the properties and relationships of a schedulingGroup by ID. This API is supported in the following national cloud deployments. * @param SchedulingGroupItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/schedulinggroup-get?view=graph-rest-1.0 Find more info here @@ -90,7 +90,7 @@ public function patch(SchedulingGroup $body, ?SchedulingGroupItemRequestBuilderP } /** - * Mark a schedulingGroup as inactive by setting its isActive property.This method does not remove the schedulingGroup from the schedule. Existing shift instances assigned to the scheduling group remain part of the group. + * Mark a schedulingGroup as inactive by setting its isActive property.This method does not remove the schedulingGroup from the schedule. Existing shift instances assigned to the scheduling group remain part of the group. This API is supported in the following national cloud deployments. * @param SchedulingGroupItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?SchedulingGroupItemRequestBuilderDel } /** - * Retrieve the properties and relationships of a schedulingGroup by ID. + * Retrieve the properties and relationships of a schedulingGroup by ID. This API is supported in the following national cloud deployments. * @param SchedulingGroupItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilderGetQueryParameters.php index ac1252d556d..5dc229cc2b1 100644 --- a/src/Generated/Groups/Item/Team/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a schedulingGroup by ID. + * Retrieve the properties and relationships of a schedulingGroup by ID. This API is supported in the following national cloud deployments. */ class SchedulingGroupItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.php index f0a0d0b6e96..0b9b008d986 100644 --- a/src/Generated/Groups/Item/Team/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the list of schedulingGroups in this schedule. + * Get the list of schedulingGroups in this schedule. This API is supported in the following national cloud deployments. * @param SchedulingGroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/schedule-list-schedulinggroups?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?SchedulingGroupsRequestBuilderGetRequestConfiguration $requ } /** - * Create a new schedulingGroup. + * Create a new schedulingGroup. This API is supported in the following national cloud deployments. * @param SchedulingGroup $body The request body * @param SchedulingGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(SchedulingGroup $body, ?SchedulingGroupsRequestBuilderPostR } /** - * Get the list of schedulingGroups in this schedule. + * Get the list of schedulingGroups in this schedule. This API is supported in the following national cloud deployments. * @param SchedulingGroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?SchedulingGroupsRequestBuilderGetReques } /** - * Create a new schedulingGroup. + * Create a new schedulingGroup. This API is supported in the following national cloud deployments. * @param SchedulingGroup $body The request body * @param SchedulingGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilderGetQueryParameters.php index 77794908e8f..568929190dd 100644 --- a/src/Generated/Groups/Item/Team/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the list of schedulingGroups in this schedule. + * Get the list of schedulingGroups in this schedule. This API is supported in the following national cloud deployments. */ class SchedulingGroupsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Schedule/Share/ShareRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/Share/ShareRequestBuilder.php index 16819dea269..bf0d182eccc 100644 --- a/src/Generated/Groups/Item/Team/Schedule/Share/ShareRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/Share/ShareRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. + * Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. This API is supported in the following national cloud deployments. * @param SharePostRequestBody $body The request body * @param ShareRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(SharePostRequestBody $body, ?ShareRequestBuilderPostRequest } /** - * Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. + * Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. This API is supported in the following national cloud deployments. * @param SharePostRequestBody $body The request body * @param ShareRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/Schedule/Shifts/Item/ShiftItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/Shifts/Item/ShiftItemRequestBuilder.php index 26b1a4b1b73..6044366f72f 100644 --- a/src/Generated/Groups/Item/Team/Schedule/Shifts/Item/ShiftItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/Shifts/Item/ShiftItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a shift from the schedule. + * Delete a shift from the schedule. This API is supported in the following national cloud deployments. * @param ShiftItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/shift-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?ShiftItemRequestBuilderDeleteRequestConfiguration $reque } /** - * Retrieve the properties and relationships of a shift object by ID. + * Retrieve the properties and relationships of a shift object by ID. This API is supported in the following national cloud deployments. * @param ShiftItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/shift-get?view=graph-rest-1.0 Find more info here @@ -90,7 +90,7 @@ public function patch(Shift $body, ?ShiftItemRequestBuilderPatchRequestConfigura } /** - * Delete a shift from the schedule. + * Delete a shift from the schedule. This API is supported in the following national cloud deployments. * @param ShiftItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?ShiftItemRequestBuilderDeleteRequest } /** - * Retrieve the properties and relationships of a shift object by ID. + * Retrieve the properties and relationships of a shift object by ID. This API is supported in the following national cloud deployments. * @param ShiftItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/Schedule/Shifts/Item/ShiftItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Schedule/Shifts/Item/ShiftItemRequestBuilderGetQueryParameters.php index 2ee5cb2261d..5e61ba531f5 100644 --- a/src/Generated/Groups/Item/Team/Schedule/Shifts/Item/ShiftItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Schedule/Shifts/Item/ShiftItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a shift object by ID. + * Retrieve the properties and relationships of a shift object by ID. This API is supported in the following national cloud deployments. */ class ShiftItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Schedule/Shifts/ShiftsRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/Shifts/ShiftsRequestBuilder.php index b5303e73168..59dd233b253 100644 --- a/src/Generated/Groups/Item/Team/Schedule/Shifts/ShiftsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/Shifts/ShiftsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the list of shift instances in a schedule. + * Get the list of shift instances in a schedule. This API is supported in the following national cloud deployments. * @param ShiftsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/schedule-list-shifts?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ShiftsRequestBuilderGetRequestConfiguration $requestConfigu } /** - * Create a new shift instance in a schedule. The duration of a shift cannot be less than 1 minute or longer than 24 hours. + * Create a new shift instance in a schedule. The duration of a shift cannot be less than 1 minute or longer than 24 hours. This API is supported in the following national cloud deployments. * @param Shift $body The request body * @param ShiftsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(Shift $body, ?ShiftsRequestBuilderPostRequestConfiguration } /** - * Get the list of shift instances in a schedule. + * Get the list of shift instances in a schedule. This API is supported in the following national cloud deployments. * @param ShiftsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ShiftsRequestBuilderGetRequestConfigura } /** - * Create a new shift instance in a schedule. The duration of a shift cannot be less than 1 minute or longer than 24 hours. + * Create a new shift instance in a schedule. The duration of a shift cannot be less than 1 minute or longer than 24 hours. This API is supported in the following national cloud deployments. * @param Shift $body The request body * @param ShiftsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/Schedule/Shifts/ShiftsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Schedule/Shifts/ShiftsRequestBuilderGetQueryParameters.php index 8f7b3c44ebc..a219b8b9ae0 100644 --- a/src/Generated/Groups/Item/Team/Schedule/Shifts/ShiftsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Schedule/Shifts/ShiftsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the list of shift instances in a schedule. + * Get the list of shift instances in a schedule. This API is supported in the following national cloud deployments. */ class ShiftsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.php index 36a57763e98..74d576e896a 100644 --- a/src/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?SwapShiftsChangeRequestItemRequestBuilderDeleteRequestCo } /** - * Retrieve the properties and relationships of a swapShiftsChangeRequest object. + * Retrieve the properties and relationships of a swapShiftsChangeRequest object. This API is supported in the following national cloud deployments. * @param SwapShiftsChangeRequestItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/swapshiftschangerequest-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?SwapShiftsChangeRequestItemRequestBu } /** - * Retrieve the properties and relationships of a swapShiftsChangeRequest object. + * Retrieve the properties and relationships of a swapShiftsChangeRequest object. This API is supported in the following national cloud deployments. * @param SwapShiftsChangeRequestItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilderGetQueryParameters.php index 7cec4deebea..08b228045b8 100644 --- a/src/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a swapShiftsChangeRequest object. + * Retrieve the properties and relationships of a swapShiftsChangeRequest object. This API is supported in the following national cloud deployments. */ class SwapShiftsChangeRequestItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.php index d6c52a4597f..01bbafc52e3 100644 --- a/src/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of swapShiftsChangeRequest objects in the team. + * Retrieve a list of swapShiftsChangeRequest objects in the team. This API is supported in the following national cloud deployments. * @param SwapShiftsChangeRequestsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/swapshiftschangerequest-list?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?SwapShiftsChangeRequestsRequestBuilderGetRequestConfigurati } /** - * Create an instance of a swapShiftsChangeRequest object. + * Create an instance of a swapShiftsChangeRequest object. This API is supported in the following national cloud deployments. * @param SwapShiftsChangeRequest $body The request body * @param SwapShiftsChangeRequestsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(SwapShiftsChangeRequest $body, ?SwapShiftsChangeRequestsReq } /** - * Retrieve a list of swapShiftsChangeRequest objects in the team. + * Retrieve a list of swapShiftsChangeRequest objects in the team. This API is supported in the following national cloud deployments. * @param SwapShiftsChangeRequestsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?SwapShiftsChangeRequestsRequestBuilderG } /** - * Create an instance of a swapShiftsChangeRequest object. + * Create an instance of a swapShiftsChangeRequest object. This API is supported in the following national cloud deployments. * @param SwapShiftsChangeRequest $body The request body * @param SwapShiftsChangeRequestsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilderGetQueryParameters.php index c9ef6bee053..ae50e2fff2b 100644 --- a/src/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of swapShiftsChangeRequest objects in the team. + * Retrieve a list of swapShiftsChangeRequest objects in the team. This API is supported in the following national cloud deployments. */ class SwapShiftsChangeRequestsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.php index e46a615e951..1a5d7541123 100644 --- a/src/Generated/Groups/Item/Team/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Mark a timeOffReason as inactive by setting the isActive property. Every team must include at least one timeoff reason. This method does not remove the specified timeOffReason instance. timeOffItem instances that have been assigned this reason remain assigned to this reason. + * Mark a timeOffReason as inactive by setting the isActive property. Every team must include at least one timeoff reason. This method doesn't remove the specified timeOffReason instance. timeOffItem instances that have been assigned this reason remain assigned to this reason. This API is supported in the following national cloud deployments. * @param TimeOffReasonItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/timeoffreason-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?TimeOffReasonItemRequestBuilderDeleteRequestConfiguratio } /** - * Retrieve the properties and relationships of a timeOffReason object by ID. + * Retrieve the properties and relationships of a timeOffReason object by ID. This API is supported in the following national cloud deployments. * @param TimeOffReasonItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/timeoffreason-get?view=graph-rest-1.0 Find more info here @@ -90,7 +90,7 @@ public function patch(TimeOffReason $body, ?TimeOffReasonItemRequestBuilderPatch } /** - * Mark a timeOffReason as inactive by setting the isActive property. Every team must include at least one timeoff reason. This method does not remove the specified timeOffReason instance. timeOffItem instances that have been assigned this reason remain assigned to this reason. + * Mark a timeOffReason as inactive by setting the isActive property. Every team must include at least one timeoff reason. This method doesn't remove the specified timeOffReason instance. timeOffItem instances that have been assigned this reason remain assigned to this reason. This API is supported in the following national cloud deployments. * @param TimeOffReasonItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?TimeOffReasonItemRequestBuilderDelet } /** - * Retrieve the properties and relationships of a timeOffReason object by ID. + * Retrieve the properties and relationships of a timeOffReason object by ID. This API is supported in the following national cloud deployments. * @param TimeOffReasonItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilderGetQueryParameters.php index be9d8c4ef15..9fb4d44b2a9 100644 --- a/src/Generated/Groups/Item/Team/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a timeOffReason object by ID. + * Retrieve the properties and relationships of a timeOffReason object by ID. This API is supported in the following national cloud deployments. */ class TimeOffReasonItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.php index f86e2476f47..a5307a2639e 100644 --- a/src/Generated/Groups/Item/Team/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the list of timeOffReasons in a schedule. + * Get the list of timeOffReasons in a schedule. This API is supported in the following national cloud deployments. * @param TimeOffReasonsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/schedule-list-timeoffreasons?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?TimeOffReasonsRequestBuilderGetRequestConfiguration $reques } /** - * Create a new timeOffReason. + * Create a new timeOffReason. This API is supported in the following national cloud deployments. * @param TimeOffReason $body The request body * @param TimeOffReasonsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(TimeOffReason $body, ?TimeOffReasonsRequestBuilderPostReque } /** - * Get the list of timeOffReasons in a schedule. + * Get the list of timeOffReasons in a schedule. This API is supported in the following national cloud deployments. * @param TimeOffReasonsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?TimeOffReasonsRequestBuilderGetRequestC } /** - * Create a new timeOffReason. + * Create a new timeOffReason. This API is supported in the following national cloud deployments. * @param TimeOffReason $body The request body * @param TimeOffReasonsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilderGetQueryParameters.php index d9eae4e8d61..5a07c67c88a 100644 --- a/src/Generated/Groups/Item/Team/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the list of timeOffReasons in a schedule. + * Get the list of timeOffReasons in a schedule. This API is supported in the following national cloud deployments. */ class TimeOffReasonsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.php index 9690c1f719c..9a82e020723 100644 --- a/src/Generated/Groups/Item/Team/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a timeOffRequest object. + * Delete a timeOffRequest object. This API is supported in the following national cloud deployments. * @param TimeOffRequestItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/timeoffrequest-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?TimeOffRequestItemRequestBuilderDeleteRequestConfigurati } /** - * Retrieve the properties and relationships of a timeoffrequest object. + * Retrieve the properties and relationships of a timeoffrequest object. This API is supported in the following national cloud deployments. * @param TimeOffRequestItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/timeoffrequest-get?view=graph-rest-1.0 Find more info here @@ -89,7 +89,7 @@ public function patch(TimeOffRequest $body, ?TimeOffRequestItemRequestBuilderPat } /** - * Delete a timeOffRequest object. + * Delete a timeOffRequest object. This API is supported in the following national cloud deployments. * @param TimeOffRequestItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?TimeOffRequestItemRequestBuilderDele } /** - * Retrieve the properties and relationships of a timeoffrequest object. + * Retrieve the properties and relationships of a timeoffrequest object. This API is supported in the following national cloud deployments. * @param TimeOffRequestItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilderGetQueryParameters.php index 8ae8ddb5754..3a7df2c1fbe 100644 --- a/src/Generated/Groups/Item/Team/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a timeoffrequest object. + * Retrieve the properties and relationships of a timeoffrequest object. This API is supported in the following national cloud deployments. */ class TimeOffRequestItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.php index bdea82f1d80..aba6afa7ed3 100644 --- a/src/Generated/Groups/Item/Team/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of timeOffRequest objects in the team. + * Retrieve a list of timeOffRequest objects in the team. This API is supported in the following national cloud deployments. * @param TimeOffRequestsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/timeoffrequest-list?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(TimeOffRequest $body, ?TimeOffRequestsRequestBuilderPostReq } /** - * Retrieve a list of timeOffRequest objects in the team. + * Retrieve a list of timeOffRequest objects in the team. This API is supported in the following national cloud deployments. * @param TimeOffRequestsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilderGetQueryParameters.php index b6760a04b86..a487f77b97a 100644 --- a/src/Generated/Groups/Item/Team/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of timeOffRequest objects in the team. + * Retrieve a list of timeOffRequest objects in the team. This API is supported in the following national cloud deployments. */ class TimeOffRequestsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.php index 1af4f1fcbe5..8eb925d89a1 100644 --- a/src/Generated/Groups/Item/Team/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a timeOff instance from a schedule. + * Delete a timeOff instance from a schedule. This API is supported in the following national cloud deployments. * @param TimeOffItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/timeoff-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?TimeOffItemRequestBuilderDeleteRequestConfiguration $req } /** - * Retrieve the properties and relationships of a timeOff object by ID. + * Retrieve the properties and relationships of a timeOff object by ID. This API is supported in the following national cloud deployments. * @param TimeOffItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/timeoff-get?view=graph-rest-1.0 Find more info here @@ -90,7 +90,7 @@ public function patch(TimeOff $body, ?TimeOffItemRequestBuilderPatchRequestConfi } /** - * Delete a timeOff instance from a schedule. + * Delete a timeOff instance from a schedule. This API is supported in the following national cloud deployments. * @param TimeOffItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?TimeOffItemRequestBuilderDeleteReque } /** - * Retrieve the properties and relationships of a timeOff object by ID. + * Retrieve the properties and relationships of a timeOff object by ID. This API is supported in the following national cloud deployments. * @param TimeOffItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/Schedule/TimesOff/Item/TimeOffItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Schedule/TimesOff/Item/TimeOffItemRequestBuilderGetQueryParameters.php index 6d57df74754..dba1316bc2e 100644 --- a/src/Generated/Groups/Item/Team/Schedule/TimesOff/Item/TimeOffItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Schedule/TimesOff/Item/TimeOffItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a timeOff object by ID. + * Retrieve the properties and relationships of a timeOff object by ID. This API is supported in the following national cloud deployments. */ class TimeOffItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Schedule/TimesOff/TimesOffRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/TimesOff/TimesOffRequestBuilder.php index 935edf933b6..2e37315e1cc 100644 --- a/src/Generated/Groups/Item/Team/Schedule/TimesOff/TimesOffRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/TimesOff/TimesOffRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the list of timeOff instances in a schedule. + * Get the list of timeOff instances in a schedule. This API is supported in the following national cloud deployments. * @param TimesOffRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/schedule-list-timesoff?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?TimesOffRequestBuilderGetRequestConfiguration $requestConfi } /** - * Create a new timeOff instance in a schedule. + * Create a new timeOff instance in a schedule. This API is supported in the following national cloud deployments. * @param TimeOff $body The request body * @param TimesOffRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(TimeOff $body, ?TimesOffRequestBuilderPostRequestConfigurat } /** - * Get the list of timeOff instances in a schedule. + * Get the list of timeOff instances in a schedule. This API is supported in the following national cloud deployments. * @param TimesOffRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?TimesOffRequestBuilderGetRequestConfigu } /** - * Create a new timeOff instance in a schedule. + * Create a new timeOff instance in a schedule. This API is supported in the following national cloud deployments. * @param TimeOff $body The request body * @param TimesOffRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/Schedule/TimesOff/TimesOffRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Schedule/TimesOff/TimesOffRequestBuilderGetQueryParameters.php index 778d1993708..117494d680f 100644 --- a/src/Generated/Groups/Item/Team/Schedule/TimesOff/TimesOffRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Schedule/TimesOff/TimesOffRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the list of timeOff instances in a schedule. + * Get the list of timeOff instances in a schedule. This API is supported in the following national cloud deployments. */ class TimesOffRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationRequestBuilder.php b/src/Generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationRequestBuilder.php index e8ff69954ff..8731b06c485 100644 --- a/src/Generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. + * Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. This API is supported in the following national cloud deployments. * @param SendActivityNotificationPostRequestBody $body The request body * @param SendActivityNotificationRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(SendActivityNotificationPostRequestBody $body, ?SendActivit } /** - * Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. + * Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. This API is supported in the following national cloud deployments. * @param SendActivityNotificationPostRequestBody $body The request body * @param SendActivityNotificationRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.php index be2d129f628..8c21f6b295f 100644 --- a/src/Generated/Groups/Item/Team/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a member from a standard tag in a team. + * Delete a member from a standard tag in a team. This API is supported in the following national cloud deployments. * @param TeamworkTagMemberItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/teamworktagmember-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?TeamworkTagMemberItemRequestBuilderDeleteRequestConfigur } /** - * Get the properties and relationships of a member of a standard tag in a team. + * Get the properties and relationships of a member of a standard tag in a team. This API is supported in the following national cloud deployments. * @param TeamworkTagMemberItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/teamworktagmember-get?view=graph-rest-1.0 Find more info here @@ -89,7 +89,7 @@ public function patch(TeamworkTagMember $body, ?TeamworkTagMemberItemRequestBuil } /** - * Delete a member from a standard tag in a team. + * Delete a member from a standard tag in a team. This API is supported in the following national cloud deployments. * @param TeamworkTagMemberItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?TeamworkTagMemberItemRequestBuilderD } /** - * Get the properties and relationships of a member of a standard tag in a team. + * Get the properties and relationships of a member of a standard tag in a team. This API is supported in the following national cloud deployments. * @param TeamworkTagMemberItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilderGetQueryParameters.php index 45f665e5066..e97b4e83b74 100644 --- a/src/Generated/Groups/Item/Team/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the properties and relationships of a member of a standard tag in a team. + * Get the properties and relationships of a member of a standard tag in a team. This API is supported in the following national cloud deployments. */ class TeamworkTagMemberItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Tags/Item/Members/MembersRequestBuilder.php b/src/Generated/Groups/Item/Team/Tags/Item/Members/MembersRequestBuilder.php index 76e97299592..a17e33a1ef1 100644 --- a/src/Generated/Groups/Item/Team/Tags/Item/Members/MembersRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Tags/Item/Members/MembersRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the members of a standard tag in a team and their properties. + * Get a list of the members of a standard tag in a team and their properties. This API is supported in the following national cloud deployments. * @param MembersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/teamworktagmember-list?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?MembersRequestBuilderGetRequestConfiguration $requestConfig } /** - * Create a new teamworkTagMember object in a team. + * Create a new teamworkTagMember object in a team. This API is supported in the following national cloud deployments. * @param TeamworkTagMember $body The request body * @param MembersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(TeamworkTagMember $body, ?MembersRequestBuilderPostRequestC } /** - * Get a list of the members of a standard tag in a team and their properties. + * Get a list of the members of a standard tag in a team and their properties. This API is supported in the following national cloud deployments. * @param MembersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } /** - * Create a new teamworkTagMember object in a team. + * Create a new teamworkTagMember object in a team. This API is supported in the following national cloud deployments. * @param TeamworkTagMember $body The request body * @param MembersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/Tags/Item/Members/MembersRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Tags/Item/Members/MembersRequestBuilderGetQueryParameters.php index 3e025196528..7de5c541cdd 100644 --- a/src/Generated/Groups/Item/Team/Tags/Item/Members/MembersRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Tags/Item/Members/MembersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the members of a standard tag in a team and their properties. + * Get a list of the members of a standard tag in a team and their properties. This API is supported in the following national cloud deployments. */ class MembersRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilder.php index 878579db5c2..a05976fc802 100644 --- a/src/Generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a tag object permanently. + * Delete a tag object permanently. This API is supported in the following national cloud deployments. * @param TeamworkTagItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/teamworktag-delete?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function delete(?TeamworkTagItemRequestBuilderDeleteRequestConfiguration } /** - * Read the properties and relationships of a tag object. + * Read the properties and relationships of a tag object. This API is supported in the following national cloud deployments. * @param TeamworkTagItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/teamworktag-get?view=graph-rest-1.0 Find more info here @@ -78,7 +78,7 @@ public function get(?TeamworkTagItemRequestBuilderGetRequestConfiguration $reque } /** - * Update the properties of a tag object. + * Update the properties of a tag object. This API is supported in the following national cloud deployments. * @param TeamworkTag $body The request body * @param TeamworkTagItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -98,7 +98,7 @@ public function patch(TeamworkTag $body, ?TeamworkTagItemRequestBuilderPatchRequ } /** - * Delete a tag object permanently. + * Delete a tag object permanently. This API is supported in the following national cloud deployments. * @param TeamworkTagItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -115,7 +115,7 @@ public function toDeleteRequestInformation(?TeamworkTagItemRequestBuilderDeleteR } /** - * Read the properties and relationships of a tag object. + * Read the properties and relationships of a tag object. This API is supported in the following national cloud deployments. * @param TeamworkTagItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -136,7 +136,7 @@ public function toGetRequestInformation(?TeamworkTagItemRequestBuilderGetRequest } /** - * Update the properties of a tag object. + * Update the properties of a tag object. This API is supported in the following national cloud deployments. * @param TeamworkTag $body The request body * @param TeamworkTagItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilderGetQueryParameters.php index 1b299e7c8c3..afa789f0306 100644 --- a/src/Generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a tag object. + * Read the properties and relationships of a tag object. This API is supported in the following national cloud deployments. */ class TeamworkTagItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Tags/TagsRequestBuilder.php b/src/Generated/Groups/Item/Team/Tags/TagsRequestBuilder.php index c8a5244a57a..8e99d5f2597 100644 --- a/src/Generated/Groups/Item/Team/Tags/TagsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Tags/TagsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the tag objects and their properties. + * Get a list of the tag objects and their properties. This API is supported in the following national cloud deployments. * @param TagsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/teamworktag-list?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?TagsRequestBuilderGetRequestConfiguration $requestConfigura } /** - * Create a standard tag for members in a team. + * Create a standard tag for members in a team. This API is supported in the following national cloud deployments. * @param TeamworkTag $body The request body * @param TagsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(TeamworkTag $body, ?TagsRequestBuilderPostRequestConfigurat } /** - * Get a list of the tag objects and their properties. + * Get a list of the tag objects and their properties. This API is supported in the following national cloud deployments. * @param TagsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?TagsRequestBuilderGetRequestConfigurati } /** - * Create a standard tag for members in a team. + * Create a standard tag for members in a team. This API is supported in the following national cloud deployments. * @param TeamworkTag $body The request body * @param TagsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Team/Tags/TagsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Tags/TagsRequestBuilderGetQueryParameters.php index 3a3a1074a63..b631233b59f 100644 --- a/src/Generated/Groups/Item/Team/Tags/TagsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Team/Tags/TagsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the tag objects and their properties. + * Get a list of the tag objects and their properties. This API is supported in the following national cloud deployments. */ class TagsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Unarchive/UnarchiveRequestBuilder.php b/src/Generated/Groups/Item/Team/Unarchive/UnarchiveRequestBuilder.php index e1d0d358301..2ac90387d07 100644 --- a/src/Generated/Groups/Item/Team/Unarchive/UnarchiveRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Unarchive/UnarchiveRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. + * Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. This API is supported in the following national cloud deployments. * @param UnarchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/team-unarchive?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?UnarchiveRequestBuilderPostRequestConfiguration $requestCo } /** - * Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. + * Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. This API is supported in the following national cloud deployments. * @param UnarchiveRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.php index b38dec56bdf..8bbd060992e 100644 --- a/src/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.php @@ -48,10 +48,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete conversationThread. + * Delete conversationThread. This API is supported in the following national cloud deployments. * @param ConversationThreadItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/group-delete-thread?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/conversationthread-delete?view=graph-rest-1.0 Find more info here */ public function delete(?ConversationThreadItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -67,10 +67,10 @@ public function delete(?ConversationThreadItemRequestBuilderDeleteRequestConfigu } /** - * Get a thread object. + * Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. This API is supported in the following national cloud deployments. * @param ConversationThreadItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/group-get-thread?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/conversationthread-get?view=graph-rest-1.0 Find more info here */ public function get(?ConversationThreadItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -86,7 +86,7 @@ public function get(?ConversationThreadItemRequestBuilderGetRequestConfiguration } /** - * Update conversation thread + * This API is supported in the following national cloud deployments. * @param ConversationThread $body The request body * @param ConversationThreadItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -106,7 +106,7 @@ public function patch(ConversationThread $body, ?ConversationThreadItemRequestBu } /** - * Delete conversationThread. + * Delete conversationThread. This API is supported in the following national cloud deployments. * @param ConversationThreadItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -123,7 +123,7 @@ public function toDeleteRequestInformation(?ConversationThreadItemRequestBuilder } /** - * Get a thread object. + * Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. This API is supported in the following national cloud deployments. * @param ConversationThreadItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -144,7 +144,7 @@ public function toGetRequestInformation(?ConversationThreadItemRequestBuilderGet } /** - * Update conversation thread + * This API is supported in the following national cloud deployments. * @param ConversationThread $body The request body * @param ConversationThreadItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilderGetQueryParameters.php index acb3425410f..05b3cabd455 100644 --- a/src/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a thread object. + * Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. This API is supported in the following national cloud deployments. */ class ConversationThreadItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.php index 0646cddd77c..5e7f7269d3a 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of attachment objects attached to a post. + * Retrieve a list of attachment objects attached to a post. This API is supported in the following national cloud deployments. * @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/post-list-attachments?view=graph-rest-1.0 Find more info here @@ -99,7 +99,7 @@ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConf } /** - * Retrieve a list of attachment objects attached to a post. + * Retrieve a list of attachment objects attached to a post. This API is supported in the following national cloud deployments. * @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php index 1346a05b960..2fb83d63100 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of attachment objects attached to a post. + * Retrieve a list of attachment objects attached to a post. This API is supported in the following national cloud deployments. */ class AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index 84e113d9b37..5819b3fce43 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CreateUploadSessionPostRequestBody $body, ?CreateUploadSess } /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.php index 9200d2da1c4..902815ab817 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(Extension $body, ?ExtensionsRequestBuilderPostRequestConfig } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php index a709a01f9c3..4b09366131a 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. */ class ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.php index 609b4bd97d3..2defa733194 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?ExtensionItemRequestBuilderDeleteRequestConfiguration $r } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?ExtensionItemRequestBuilderGetRequestConfiguration $request } /** - * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. This API is supported in the following national cloud deployments. * @param Extension $body The request body * @param ExtensionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -127,7 +127,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } /** - * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. This API is supported in the following national cloud deployments. * @param Extension $body The request body * @param ExtensionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php index 0df0d06f0e1..c33cf24ce0a 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. */ class ExtensionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.php index bfebc5d3adf..665ef072eb9 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + * Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. * @param ForwardPostRequestBody $body The request body * @param ForwardRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ForwardPostRequestBody $body, ?ForwardRequestBuilderPostReq } /** - * Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + * Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. * @param ForwardPostRequestBody $body The request body * @param ForwardRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.php index 75978a81ff4..073efefa12c 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of attachment objects attached to a post. + * Retrieve a list of attachment objects attached to a post. This API is supported in the following national cloud deployments. * @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/post-list-attachments?view=graph-rest-1.0 Find more info here @@ -99,7 +99,7 @@ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConf } /** - * Retrieve a list of attachment objects attached to a post. + * Retrieve a list of attachment objects attached to a post. This API is supported in the following national cloud deployments. * @param AttachmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilderGetQueryParameters.php index f6dc01326ce..cb6b220f2b4 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of attachment objects attached to a post. + * Retrieve a list of attachment objects attached to a post. This API is supported in the following national cloud deployments. */ class AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index 3e8f70c6ae2..f9be892dede 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CreateUploadSessionPostRequestBody $body, ?CreateUploadSess } /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. * @param CreateUploadSessionPostRequestBody $body The request body * @param CreateUploadSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.php index abcb8899dcf..dc148105dcb 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(Extension $body, ?ExtensionsRequestBuilderPostRequestConfig } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilderGetQueryParameters.php index 9b41ee77f00..aa393b97026 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. */ class ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.php index a0733d2660e..2f3f7e40e54 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?ExtensionItemRequestBuilderDeleteRequestConfiguration $r } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?ExtensionItemRequestBuilderGetRequestConfiguration $request } /** - * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. This API is supported in the following national cloud deployments. * @param Extension $body The request body * @param ExtensionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq } /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. * @param ExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -127,7 +127,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } /** - * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. This API is supported in the following national cloud deployments. * @param Extension $body The request body * @param ExtensionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php index 8cebfb72037..4244bb00e24 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + * Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. */ class ExtensionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.php index 7be61f470d7..5bc0b603b5f 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + * Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. * @param ForwardPostRequestBody $body The request body * @param ForwardRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ForwardPostRequestBody $body, ?ForwardRequestBuilderPostReq } /** - * Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + * Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. * @param ForwardPostRequestBody $body The request body * @param ForwardRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.php index b93d2cbd5e5..58ab0430e1b 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.php @@ -31,11 +31,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. * @param ReplyPostRequestBody $body The request body * @param ReplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/post-reply?view=graph-rest-1.0 Find more info here */ public function post(ReplyPostRequestBody $body, ?ReplyRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -51,7 +51,7 @@ public function post(ReplyPostRequestBody $body, ?ReplyRequestBuilderPostRequest } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. * @param ReplyPostRequestBody $body The request body * @param ReplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.php index c43936aabce..ee15483072c 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.php @@ -31,11 +31,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. * @param ReplyPostRequestBody $body The request body * @param ReplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/post-reply?view=graph-rest-1.0 Find more info here */ public function post(ReplyPostRequestBody $body, ?ReplyRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -51,7 +51,7 @@ public function post(ReplyPostRequestBody $body, ?ReplyRequestBuilderPostRequest } /** - * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. * @param ReplyPostRequestBody $body The request body * @param ReplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.php index 0d4a91ae889..67d51ab5085 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.php @@ -52,10 +52,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. This API is supported in the following national cloud deployments. * @param PostsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/conversationthread-list-posts?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/post-get?view=graph-rest-1.0 Find more info here */ public function get(?PostsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -71,7 +71,7 @@ public function get(?PostsRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. This API is supported in the following national cloud deployments. * @param PostsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilderGetQueryParameters.php index 91ed3aa47ec..76534f6e3e7 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. This API is supported in the following national cloud deployments. */ class PostsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.php index fce40ae99d3..207dcef7a36 100644 --- a/src/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.php @@ -31,11 +31,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. This API is supported in the following national cloud deployments. * @param ReplyPostRequestBody $body The request body * @param ReplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/post-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/conversationthread-reply?view=graph-rest-1.0 Find more info here */ public function post(ReplyPostRequestBody $body, ?ReplyRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -51,7 +51,7 @@ public function post(ReplyPostRequestBody $body, ?ReplyRequestBuilderPostRequest } /** - * Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. This API is supported in the following national cloud deployments. * @param ReplyPostRequestBody $body The request body * @param ReplyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Threads/ThreadsRequestBuilder.php b/src/Generated/Groups/Item/Threads/ThreadsRequestBuilder.php index 8b9c43d1129..bf10836ceba 100644 --- a/src/Generated/Groups/Item/Threads/ThreadsRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/ThreadsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get all the threads of a group. + * Get all the threads of a group. This API is supported in the following national cloud deployments. * @param ThreadsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/group-list-threads?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ThreadsRequestBuilderGetRequestConfiguration $requestConfig } /** - * Start a new group conversation by first creating a thread. A new conversation, conversation thread, and post are created in the group.Use reply thread or reply post to further post to that thread. Note: You can also start a new thread in an existing conversation. + * Start a new group conversation by first creating a thread. A new conversation, conversation thread, and post are created in the group.Use reply thread or reply post to further post to that thread. Note: You can also start a new thread in an existing conversation. This API is supported in the following national cloud deployments. * @param ConversationThread $body The request body * @param ThreadsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(ConversationThread $body, ?ThreadsRequestBuilderPostRequest } /** - * Get all the threads of a group. + * Get all the threads of a group. This API is supported in the following national cloud deployments. * @param ThreadsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ThreadsRequestBuilderGetRequestConfigur } /** - * Start a new group conversation by first creating a thread. A new conversation, conversation thread, and post are created in the group.Use reply thread or reply post to further post to that thread. Note: You can also start a new thread in an existing conversation. + * Start a new group conversation by first creating a thread. A new conversation, conversation thread, and post are created in the group.Use reply thread or reply post to further post to that thread. Note: You can also start a new thread in an existing conversation. This API is supported in the following national cloud deployments. * @param ConversationThread $body The request body * @param ThreadsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/Item/Threads/ThreadsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Threads/ThreadsRequestBuilderGetQueryParameters.php index de31ef3788f..411b2335795 100644 --- a/src/Generated/Groups/Item/Threads/ThreadsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Groups/Item/Threads/ThreadsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get all the threads of a group. + * Get all the threads of a group. This API is supported in the following national cloud deployments. */ class ThreadsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/UnsubscribeByMail/UnsubscribeByMailRequestBuilder.php b/src/Generated/Groups/Item/UnsubscribeByMail/UnsubscribeByMailRequestBuilder.php index 42a4ef98fe1..9a4dd6c8a57 100644 --- a/src/Generated/Groups/Item/UnsubscribeByMail/UnsubscribeByMailRequestBuilder.php +++ b/src/Generated/Groups/Item/UnsubscribeByMail/UnsubscribeByMailRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Calling this method will prevent the current user from receiving email notifications for this group about new posts, events, and files in that group. Supported for Microsoft 365 groups only. + * Calling this method prevents the current user from receiving email notifications for this group about new posts, events, and files in that group. Supported for Microsoft 365 groups only. This API is supported in the following national cloud deployments. * @param UnsubscribeByMailRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/group-unsubscribebymail?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?UnsubscribeByMailRequestBuilderPostRequestConfiguration $r } /** - * Calling this method will prevent the current user from receiving email notifications for this group about new posts, events, and files in that group. Supported for Microsoft 365 groups only. + * Calling this method prevents the current user from receiving email notifications for this group about new posts, events, and files in that group. Supported for Microsoft 365 groups only. This API is supported in the following national cloud deployments. * @param UnsubscribeByMailRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/Groups/Item/ValidateProperties/ValidatePropertiesRequestBuilder.php index ecc23f4f521..770756208fb 100644 --- a/src/Generated/Groups/Item/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/Groups/Item/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to update a Microsoft 365 group. To validate the properties before creating a group, use the directoryobject:validateProperties function. The following policy validations are performed for the display name and mail nickname properties: This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to update a Microsoft 365 group. To validate the properties before creating a group, use the directoryobject:validateProperties function. The following policy validations are performed for the display name and mail nickname properties: This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ValidatePropertiesPostRequestBody $body, ?ValidatePropertie } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to update a Microsoft 365 group. To validate the properties before creating a group, use the directoryobject:validateProperties function. The following policy validations are performed for the display name and mail nickname properties: This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to update a Microsoft 365 group. To validate the properties before creating a group, use the directoryobject:validateProperties function. The following policy validations are performed for the display name and mail nickname properties: This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Groups/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/Groups/ValidateProperties/ValidatePropertiesRequestBuilder.php index 7fef869a9a3..e380e97eb9d 100644 --- a/src/Generated/Groups/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/Groups/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ValidatePropertiesPostRequestBody $body, ?ValidatePropertie } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Identity/ApiConnectors/ApiConnectorsRequestBuilder.php b/src/Generated/Identity/ApiConnectors/ApiConnectorsRequestBuilder.php index 6cc1219ea89..95a8afc7078 100644 --- a/src/Generated/Identity/ApiConnectors/ApiConnectorsRequestBuilder.php +++ b/src/Generated/Identity/ApiConnectors/ApiConnectorsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read the properties of an identityApiConnector object. + * Read the properties of an identityApiConnector object. This API is supported in the following national cloud deployments. * @param ApiConnectorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identityapiconnector-list?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ApiConnectorsRequestBuilderGetRequestConfiguration $request } /** - * Create a new identityApiConnector object. + * Create a new identityApiConnector object. This API is supported in the following national cloud deployments. * @param IdentityApiConnector $body The request body * @param ApiConnectorsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(IdentityApiConnector $body, ?ApiConnectorsRequestBuilderPos } /** - * Read the properties of an identityApiConnector object. + * Read the properties of an identityApiConnector object. This API is supported in the following national cloud deployments. * @param ApiConnectorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ApiConnectorsRequestBuilderGetRequestCo } /** - * Create a new identityApiConnector object. + * Create a new identityApiConnector object. This API is supported in the following national cloud deployments. * @param IdentityApiConnector $body The request body * @param ApiConnectorsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Identity/ApiConnectors/ApiConnectorsRequestBuilderGetQueryParameters.php b/src/Generated/Identity/ApiConnectors/ApiConnectorsRequestBuilderGetQueryParameters.php index fdb60bd878b..759efbdc3a1 100644 --- a/src/Generated/Identity/ApiConnectors/ApiConnectorsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/ApiConnectors/ApiConnectorsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties of an identityApiConnector object. + * Read the properties of an identityApiConnector object. This API is supported in the following national cloud deployments. */ class ApiConnectorsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/ApiConnectors/Item/IdentityApiConnectorItemRequestBuilder.php b/src/Generated/Identity/ApiConnectors/Item/IdentityApiConnectorItemRequestBuilder.php index 0073f87fa7f..a9b23d27b59 100644 --- a/src/Generated/Identity/ApiConnectors/Item/IdentityApiConnectorItemRequestBuilder.php +++ b/src/Generated/Identity/ApiConnectors/Item/IdentityApiConnectorItemRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an identityApiConnector object. + * Delete an identityApiConnector object. This API is supported in the following national cloud deployments. * @param IdentityApiConnectorItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identityapiconnector-delete?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function delete(?IdentityApiConnectorItemRequestBuilderDeleteRequestConfi } /** - * Read the properties of an identityApiConnector object. + * Read the properties of an identityApiConnector object. This API is supported in the following national cloud deployments. * @param IdentityApiConnectorItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identityapiconnector-get?view=graph-rest-1.0 Find more info here @@ -78,7 +78,7 @@ public function get(?IdentityApiConnectorItemRequestBuilderGetRequestConfigurati } /** - * Update the properties of an identityApiConnector object. + * Update the properties of an identityApiConnector object. This API is supported in the following national cloud deployments. * @param IdentityApiConnector $body The request body * @param IdentityApiConnectorItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -98,7 +98,7 @@ public function patch(IdentityApiConnector $body, ?IdentityApiConnectorItemReque } /** - * Delete an identityApiConnector object. + * Delete an identityApiConnector object. This API is supported in the following national cloud deployments. * @param IdentityApiConnectorItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -115,7 +115,7 @@ public function toDeleteRequestInformation(?IdentityApiConnectorItemRequestBuild } /** - * Read the properties of an identityApiConnector object. + * Read the properties of an identityApiConnector object. This API is supported in the following national cloud deployments. * @param IdentityApiConnectorItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -136,7 +136,7 @@ public function toGetRequestInformation(?IdentityApiConnectorItemRequestBuilderG } /** - * Update the properties of an identityApiConnector object. + * Update the properties of an identityApiConnector object. This API is supported in the following national cloud deployments. * @param IdentityApiConnector $body The request body * @param IdentityApiConnectorItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Identity/ApiConnectors/Item/IdentityApiConnectorItemRequestBuilderGetQueryParameters.php b/src/Generated/Identity/ApiConnectors/Item/IdentityApiConnectorItemRequestBuilderGetQueryParameters.php index c6e73e20fd4..896c6c76a20 100644 --- a/src/Generated/Identity/ApiConnectors/Item/IdentityApiConnectorItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/ApiConnectors/Item/IdentityApiConnectorItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties of an identityApiConnector object. + * Read the properties of an identityApiConnector object. This API is supported in the following national cloud deployments. */ class IdentityApiConnectorItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/ApiConnectors/Item/UploadClientCertificate/UploadClientCertificateRequestBuilder.php b/src/Generated/Identity/ApiConnectors/Item/UploadClientCertificate/UploadClientCertificateRequestBuilder.php index 55ab182f3af..5dd2b4af235 100644 --- a/src/Generated/Identity/ApiConnectors/Item/UploadClientCertificate/UploadClientCertificateRequestBuilder.php +++ b/src/Generated/Identity/ApiConnectors/Item/UploadClientCertificate/UploadClientCertificateRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. + * Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. This API is supported in the following national cloud deployments. * @param UploadClientCertificatePostRequestBody $body The request body * @param UploadClientCertificateRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(UploadClientCertificatePostRequestBody $body, ?UploadClient } /** - * Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. + * Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. This API is supported in the following national cloud deployments. * @param UploadClientCertificatePostRequestBody $body The request body * @param UploadClientCertificateRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Identity/B2xUserFlows/B2xUserFlowsRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/B2xUserFlowsRequestBuilder.php index b6a8b550d8a..95e43bd3d9b 100644 --- a/src/Generated/Identity/B2xUserFlows/B2xUserFlowsRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/B2xUserFlowsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of b2xIdentityUserFlow objects. + * Retrieve a list of b2xIdentityUserFlow objects. This API is supported in the following national cloud deployments. * @param B2xUserFlowsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitycontainer-list-b2xuserflows?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?B2xUserFlowsRequestBuilderGetRequestConfiguration $requestC } /** - * Create a new b2xIdentityUserFlow object. + * Create a new b2xIdentityUserFlow object. This API is supported in the following national cloud deployments. * @param B2xIdentityUserFlow $body The request body * @param B2xUserFlowsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(B2xIdentityUserFlow $body, ?B2xUserFlowsRequestBuilderPostR } /** - * Retrieve a list of b2xIdentityUserFlow objects. + * Retrieve a list of b2xIdentityUserFlow objects. This API is supported in the following national cloud deployments. * @param B2xUserFlowsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?B2xUserFlowsRequestBuilderGetRequestCon } /** - * Create a new b2xIdentityUserFlow object. + * Create a new b2xIdentityUserFlow object. This API is supported in the following national cloud deployments. * @param B2xIdentityUserFlow $body The request body * @param B2xUserFlowsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Identity/B2xUserFlows/B2xUserFlowsRequestBuilderGetQueryParameters.php b/src/Generated/Identity/B2xUserFlows/B2xUserFlowsRequestBuilderGetQueryParameters.php index 2009a98671d..3486d9533b8 100644 --- a/src/Generated/Identity/B2xUserFlows/B2xUserFlowsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/B2xUserFlows/B2xUserFlowsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of b2xIdentityUserFlow objects. + * Retrieve a list of b2xIdentityUserFlow objects. This API is supported in the following national cloud deployments. */ class B2xUserFlowsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/UploadClientCertificate/UploadClientCertificateRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/UploadClientCertificate/UploadClientCertificateRequestBuilder.php index bdea8c13b9d..0f96578eb42 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/UploadClientCertificate/UploadClientCertificateRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/UploadClientCertificate/UploadClientCertificateRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. + * Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. This API is supported in the following national cloud deployments. * @param UploadClientCertificatePostRequestBody $body The request body * @param UploadClientCertificateRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(UploadClientCertificatePostRequestBody $body, ?UploadClient } /** - * Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. + * Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. This API is supported in the following national cloud deployments. * @param UploadClientCertificatePostRequestBody $body The request body * @param UploadClientCertificateRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/UploadClientCertificate/UploadClientCertificateRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/UploadClientCertificate/UploadClientCertificateRequestBuilder.php index e02c903707a..1750111d948 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/UploadClientCertificate/UploadClientCertificateRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/UploadClientCertificate/UploadClientCertificateRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. + * Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. This API is supported in the following national cloud deployments. * @param UploadClientCertificatePostRequestBody $body The request body * @param UploadClientCertificateRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(UploadClientCertificatePostRequestBody $body, ?UploadClient } /** - * Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. + * Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. This API is supported in the following national cloud deployments. * @param UploadClientCertificatePostRequestBody $body The request body * @param UploadClientCertificateRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Identity/B2xUserFlows/Item/B2xIdentityUserFlowItemRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/B2xIdentityUserFlowItemRequestBuilder.php index e36ee27cb97..a68ebfdeebe 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/B2xIdentityUserFlowItemRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/B2xIdentityUserFlowItemRequestBuilder.php @@ -72,7 +72,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a b2xIdentityUserFlow object. + * Delete a b2xIdentityUserFlow object. This API is supported in the following national cloud deployments. * @param B2xIdentityUserFlowItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/b2xidentityuserflow-delete?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function delete(?B2xIdentityUserFlowItemRequestBuilderDeleteRequestConfig } /** - * Retrieve the properties and relationships of a b2xIdentityUserFlow object. + * Retrieve the properties and relationships of a b2xIdentityUserFlow object. This API is supported in the following national cloud deployments. * @param B2xIdentityUserFlowItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/b2xidentityuserflow-get?view=graph-rest-1.0 Find more info here @@ -129,7 +129,7 @@ public function patch(B2xIdentityUserFlow $body, ?B2xIdentityUserFlowItemRequest } /** - * Delete a b2xIdentityUserFlow object. + * Delete a b2xIdentityUserFlow object. This API is supported in the following national cloud deployments. * @param B2xIdentityUserFlowItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -146,7 +146,7 @@ public function toDeleteRequestInformation(?B2xIdentityUserFlowItemRequestBuilde } /** - * Retrieve the properties and relationships of a b2xIdentityUserFlow object. + * Retrieve the properties and relationships of a b2xIdentityUserFlow object. This API is supported in the following national cloud deployments. * @param B2xIdentityUserFlowItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Identity/B2xUserFlows/Item/B2xIdentityUserFlowItemRequestBuilderGetQueryParameters.php b/src/Generated/Identity/B2xUserFlows/Item/B2xIdentityUserFlowItemRequestBuilderGetQueryParameters.php index 9a827fb568e..ef72fcde2c7 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/B2xIdentityUserFlowItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/B2xUserFlows/Item/B2xIdentityUserFlowItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a b2xIdentityUserFlow object. + * Retrieve the properties and relationships of a b2xIdentityUserFlow object. This API is supported in the following national cloud deployments. */ class B2xIdentityUserFlowItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/B2xUserFlows/Item/IdentityProviders/IdentityProvidersRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/IdentityProviders/IdentityProvidersRequestBuilder.php index d873b8ce137..678b49e6219 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/IdentityProviders/IdentityProvidersRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/IdentityProviders/IdentityProvidersRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the identity providers in a b2xIdentityUserFlow object. + * Get the identity providers in a b2xIdentityUserFlow object. This API is supported in the following national cloud deployments. * @param IdentityProvidersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/b2xidentityuserflow-list-identityproviders?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?IdentityProvidersRequestBuilderGetRequestConfiguration $req } /** - * Get the identity providers in a b2xIdentityUserFlow object. + * Get the identity providers in a b2xIdentityUserFlow object. This API is supported in the following national cloud deployments. * @param IdentityProvidersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Identity/B2xUserFlows/Item/IdentityProviders/IdentityProvidersRequestBuilderGetQueryParameters.php b/src/Generated/Identity/B2xUserFlows/Item/IdentityProviders/IdentityProvidersRequestBuilderGetQueryParameters.php index 18a76e7e9c4..d4bcef03151 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/IdentityProviders/IdentityProvidersRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/B2xUserFlows/Item/IdentityProviders/IdentityProvidersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the identity providers in a b2xIdentityUserFlow object. + * Get the identity providers in a b2xIdentityUserFlow object. This API is supported in the following national cloud deployments. */ class IdentityProvidersRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/DefaultPagesRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/DefaultPagesRequestBuilder.php index 1a85108ed72..167d700b5af 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/DefaultPagesRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/DefaultPagesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Collection of pages with the default content to display in a user flow for a specified language. This collection does not allow any kind of modification. + * Collection of pages with the default content to display in a user flow for a specified language. This collection doesn't allow any kind of modification. * @param DefaultPagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(UserFlowLanguagePage $body, ?DefaultPagesRequestBuilderPost } /** - * Collection of pages with the default content to display in a user flow for a specified language. This collection does not allow any kind of modification. + * Collection of pages with the default content to display in a user flow for a specified language. This collection doesn't allow any kind of modification. * @param DefaultPagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/DefaultPagesRequestBuilderGetQueryParameters.php b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/DefaultPagesRequestBuilderGetQueryParameters.php index 77f58b9e564..78da7868ce6 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/DefaultPagesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/DefaultPagesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Collection of pages with the default content to display in a user flow for a specified language. This collection does not allow any kind of modification. + * Collection of pages with the default content to display in a user flow for a specified language. This collection doesn't allow any kind of modification. */ class DefaultPagesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Item/UserFlowLanguagePageItemRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Item/UserFlowLanguagePageItemRequestBuilder.php index 79b012d8ae3..6f7f0676a3c 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Item/UserFlowLanguagePageItemRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Item/UserFlowLanguagePageItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?UserFlowLanguagePageItemRequestBuilderDeleteRequestConfi } /** - * Collection of pages with the default content to display in a user flow for a specified language. This collection does not allow any kind of modification. + * Collection of pages with the default content to display in a user flow for a specified language. This collection doesn't allow any kind of modification. * @param UserFlowLanguagePageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -112,7 +112,7 @@ public function toDeleteRequestInformation(?UserFlowLanguagePageItemRequestBuild } /** - * Collection of pages with the default content to display in a user flow for a specified language. This collection does not allow any kind of modification. + * Collection of pages with the default content to display in a user flow for a specified language. This collection doesn't allow any kind of modification. * @param UserFlowLanguagePageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Item/UserFlowLanguagePageItemRequestBuilderGetQueryParameters.php b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Item/UserFlowLanguagePageItemRequestBuilderGetQueryParameters.php index ca189168d38..5242f321533 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Item/UserFlowLanguagePageItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Item/UserFlowLanguagePageItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Collection of pages with the default content to display in a user flow for a specified language. This collection does not allow any kind of modification. + * Collection of pages with the default content to display in a user flow for a specified language. This collection doesn't allow any kind of modification. */ class UserFlowLanguagePageItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Item/UserFlowLanguagePageItemRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Item/UserFlowLanguagePageItemRequestBuilder.php index 7f3cd68c1e1..09e9656676a 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Item/UserFlowLanguagePageItemRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Item/UserFlowLanguagePageItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?UserFlowLanguagePageItemRequestBuilderDeleteRequestConfi } /** - * Collection of pages with the overrides messages to display in a user flow for a specified language. This collection only allows to modify the content of the page, any other modification is not allowed (creation or deletion of pages). + * Collection of pages with the overrides messages to display in a user flow for a specified language. This collection only allows you to modify the content of the page, any other modification isn't allowed (creation or deletion of pages). * @param UserFlowLanguagePageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -112,7 +112,7 @@ public function toDeleteRequestInformation(?UserFlowLanguagePageItemRequestBuild } /** - * Collection of pages with the overrides messages to display in a user flow for a specified language. This collection only allows to modify the content of the page, any other modification is not allowed (creation or deletion of pages). + * Collection of pages with the overrides messages to display in a user flow for a specified language. This collection only allows you to modify the content of the page, any other modification isn't allowed (creation or deletion of pages). * @param UserFlowLanguagePageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Item/UserFlowLanguagePageItemRequestBuilderGetQueryParameters.php b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Item/UserFlowLanguagePageItemRequestBuilderGetQueryParameters.php index 0f9945ca34f..69081671913 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Item/UserFlowLanguagePageItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Item/UserFlowLanguagePageItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Collection of pages with the overrides messages to display in a user flow for a specified language. This collection only allows to modify the content of the page, any other modification is not allowed (creation or deletion of pages). + * Collection of pages with the overrides messages to display in a user flow for a specified language. This collection only allows you to modify the content of the page, any other modification isn't allowed (creation or deletion of pages). */ class UserFlowLanguagePageItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/OverridesPagesRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/OverridesPagesRequestBuilder.php index 70ea4b91793..4ca030d0fdf 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/OverridesPagesRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/OverridesPagesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the userFlowLanguagePage resources from the overridesPages navigation property. These pages are used to customize the values shown to the user during a user journey in a user flow. + * Get the userFlowLanguagePage resources from the overridesPages navigation property. These pages are used to customize the values shown to the user during a user journey in a user flow. This API is supported in the following national cloud deployments. * @param OverridesPagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/userflowlanguageconfiguration-list-overridespages?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(UserFlowLanguagePage $body, ?OverridesPagesRequestBuilderPo } /** - * Get the userFlowLanguagePage resources from the overridesPages navigation property. These pages are used to customize the values shown to the user during a user journey in a user flow. + * Get the userFlowLanguagePage resources from the overridesPages navigation property. These pages are used to customize the values shown to the user during a user journey in a user flow. This API is supported in the following national cloud deployments. * @param OverridesPagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/OverridesPagesRequestBuilderGetQueryParameters.php b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/OverridesPagesRequestBuilderGetQueryParameters.php index c8b374eca59..a9d80ae11c5 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/OverridesPagesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/OverridesPagesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the userFlowLanguagePage resources from the overridesPages navigation property. These pages are used to customize the values shown to the user during a user journey in a user flow. + * Get the userFlowLanguagePage resources from the overridesPages navigation property. These pages are used to customize the values shown to the user during a user journey in a user flow. This API is supported in the following national cloud deployments. */ class OverridesPagesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/UserFlowLanguageConfigurationItemRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/UserFlowLanguageConfigurationItemRequestBuilder.php index 3711d83b8be..b40a00104d8 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/UserFlowLanguageConfigurationItemRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/UserFlowLanguageConfigurationItemRequestBuilder.php @@ -66,7 +66,7 @@ public function delete(?UserFlowLanguageConfigurationItemRequestBuilderDeleteReq } /** - * Read the properties and relationships of a userFlowLanguageConfiguration object. These objects represent a language available in a user flow. Note: Language customization is enabled by default in Azure Active Directory user flows. + * Read the properties and relationships of a userFlowLanguageConfiguration object. These objects represent a language available in a user flow. Note: Language customization is enabled by default in Azure Active Directory user flows. This API is supported in the following national cloud deployments. * @param UserFlowLanguageConfigurationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/userflowlanguageconfiguration-get?view=graph-rest-1.0 Find more info here @@ -121,7 +121,7 @@ public function toDeleteRequestInformation(?UserFlowLanguageConfigurationItemReq } /** - * Read the properties and relationships of a userFlowLanguageConfiguration object. These objects represent a language available in a user flow. Note: Language customization is enabled by default in Azure Active Directory user flows. + * Read the properties and relationships of a userFlowLanguageConfiguration object. These objects represent a language available in a user flow. Note: Language customization is enabled by default in Azure Active Directory user flows. This API is supported in the following national cloud deployments. * @param UserFlowLanguageConfigurationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/UserFlowLanguageConfigurationItemRequestBuilderGetQueryParameters.php b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/UserFlowLanguageConfigurationItemRequestBuilderGetQueryParameters.php index e0d5a79c296..a7e577ea88f 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/UserFlowLanguageConfigurationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/UserFlowLanguageConfigurationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a userFlowLanguageConfiguration object. These objects represent a language available in a user flow. Note: Language customization is enabled by default in Azure Active Directory user flows. + * Read the properties and relationships of a userFlowLanguageConfiguration object. These objects represent a language available in a user flow. Note: Language customization is enabled by default in Azure Active Directory user flows. This API is supported in the following national cloud deployments. */ class UserFlowLanguageConfigurationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/B2xUserFlows/Item/Languages/LanguagesRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/Languages/LanguagesRequestBuilder.php index 242f192fa1e..be7adaf83f0 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/Languages/LanguagesRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/Languages/LanguagesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of languages supported for customization in a B2X user flow. + * Retrieve a list of languages supported for customization in a B2X user flow. This API is supported in the following national cloud deployments. * @param LanguagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/b2xidentityuserflow-list-languages?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(UserFlowLanguageConfiguration $body, ?LanguagesRequestBuild } /** - * Retrieve a list of languages supported for customization in a B2X user flow. + * Retrieve a list of languages supported for customization in a B2X user flow. This API is supported in the following national cloud deployments. * @param LanguagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Identity/B2xUserFlows/Item/Languages/LanguagesRequestBuilderGetQueryParameters.php b/src/Generated/Identity/B2xUserFlows/Item/Languages/LanguagesRequestBuilderGetQueryParameters.php index 9d45b8fa071..33458c78caa 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/Languages/LanguagesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/B2xUserFlows/Item/Languages/LanguagesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of languages supported for customization in a B2X user flow. + * Retrieve a list of languages supported for customization in a B2X user flow. This API is supported in the following national cloud deployments. */ class LanguagesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/IdentityUserFlowAttributeAssignmentItemRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/IdentityUserFlowAttributeAssignmentItemRequestBuilder.php index 2c93da6c95a..913250eeaaa 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/IdentityUserFlowAttributeAssignmentItemRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/IdentityUserFlowAttributeAssignmentItemRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an identityUserFlowAttributeAssignment object. + * Delete an identityUserFlowAttributeAssignment object. This API is supported in the following national cloud deployments. * @param IdentityUserFlowAttributeAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identityuserflowattributeassignment-delete?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function delete(?IdentityUserFlowAttributeAssignmentItemRequestBuilderDel } /** - * Read the properties and relationships of an identityUserFlowAttributeAssignment object. + * Read the properties and relationships of an identityUserFlowAttributeAssignment object. This API is supported in the following national cloud deployments. * @param IdentityUserFlowAttributeAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identityuserflowattributeassignment-get?view=graph-rest-1.0 Find more info here @@ -78,7 +78,7 @@ public function get(?IdentityUserFlowAttributeAssignmentItemRequestBuilderGetReq } /** - * Update the properties of a identityUserFlowAttributeAssignment object. + * Update the properties of a identityUserFlowAttributeAssignment object. This API is supported in the following national cloud deployments. * @param IdentityUserFlowAttributeAssignment $body The request body * @param IdentityUserFlowAttributeAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -98,7 +98,7 @@ public function patch(IdentityUserFlowAttributeAssignment $body, ?IdentityUserFl } /** - * Delete an identityUserFlowAttributeAssignment object. + * Delete an identityUserFlowAttributeAssignment object. This API is supported in the following national cloud deployments. * @param IdentityUserFlowAttributeAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -115,7 +115,7 @@ public function toDeleteRequestInformation(?IdentityUserFlowAttributeAssignmentI } /** - * Read the properties and relationships of an identityUserFlowAttributeAssignment object. + * Read the properties and relationships of an identityUserFlowAttributeAssignment object. This API is supported in the following national cloud deployments. * @param IdentityUserFlowAttributeAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -136,7 +136,7 @@ public function toGetRequestInformation(?IdentityUserFlowAttributeAssignmentItem } /** - * Update the properties of a identityUserFlowAttributeAssignment object. + * Update the properties of a identityUserFlowAttributeAssignment object. This API is supported in the following national cloud deployments. * @param IdentityUserFlowAttributeAssignment $body The request body * @param IdentityUserFlowAttributeAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/IdentityUserFlowAttributeAssignmentItemRequestBuilderGetQueryParameters.php b/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/IdentityUserFlowAttributeAssignmentItemRequestBuilderGetQueryParameters.php index 79a0e55a233..e595679c3c7 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/IdentityUserFlowAttributeAssignmentItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/IdentityUserFlowAttributeAssignmentItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of an identityUserFlowAttributeAssignment object. + * Read the properties and relationships of an identityUserFlowAttributeAssignment object. This API is supported in the following national cloud deployments. */ class IdentityUserFlowAttributeAssignmentItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/SetOrder/SetOrderRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/SetOrder/SetOrderRequestBuilder.php index 696d0ba358e..c651bf0a6d1 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/SetOrder/SetOrderRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/SetOrder/SetOrderRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Set the order of identityUserFlowAttributeAssignments being collected within a user flow. + * Set the order of identityUserFlowAttributeAssignments being collected within a user flow. This API is supported in the following national cloud deployments. * @param SetOrderPostRequestBody $body The request body * @param SetOrderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(SetOrderPostRequestBody $body, ?SetOrderRequestBuilderPostR } /** - * Set the order of identityUserFlowAttributeAssignments being collected within a user flow. + * Set the order of identityUserFlowAttributeAssignments being collected within a user flow. This API is supported in the following national cloud deployments. * @param SetOrderPostRequestBody $body The request body * @param SetOrderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/UserAttributeAssignmentsRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/UserAttributeAssignmentsRequestBuilder.php index 13cdc43fb62..2a0b3559ce8 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/UserAttributeAssignmentsRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/UserAttributeAssignmentsRequestBuilder.php @@ -69,7 +69,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the identityUserFlowAttributeAssignment resources from the userAttributeAssignments navigation property in a b2xIdentityUserFlow. + * Get the identityUserFlowAttributeAssignment resources from the userAttributeAssignments navigation property in a b2xIdentityUserFlow. This API is supported in the following national cloud deployments. * @param UserAttributeAssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/b2xidentityuserflow-list-userattributeassignments?view=graph-rest-1.0 Find more info here @@ -88,7 +88,7 @@ public function get(?UserAttributeAssignmentsRequestBuilderGetRequestConfigurati } /** - * Create a new identityUserFlowAttributeAssignment object in a b2xIdentityUserFlow. + * Create a new identityUserFlowAttributeAssignment object in a b2xIdentityUserFlow. This API is supported in the following national cloud deployments. * @param IdentityUserFlowAttributeAssignment $body The request body * @param UserAttributeAssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -108,7 +108,7 @@ public function post(IdentityUserFlowAttributeAssignment $body, ?UserAttributeAs } /** - * Get the identityUserFlowAttributeAssignment resources from the userAttributeAssignments navigation property in a b2xIdentityUserFlow. + * Get the identityUserFlowAttributeAssignment resources from the userAttributeAssignments navigation property in a b2xIdentityUserFlow. This API is supported in the following national cloud deployments. * @param UserAttributeAssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -129,7 +129,7 @@ public function toGetRequestInformation(?UserAttributeAssignmentsRequestBuilderG } /** - * Create a new identityUserFlowAttributeAssignment object in a b2xIdentityUserFlow. + * Create a new identityUserFlowAttributeAssignment object in a b2xIdentityUserFlow. This API is supported in the following national cloud deployments. * @param IdentityUserFlowAttributeAssignment $body The request body * @param UserAttributeAssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/UserAttributeAssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/UserAttributeAssignmentsRequestBuilderGetQueryParameters.php index 0dc9e8228c7..f7bd9f8b977 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/UserAttributeAssignmentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/UserAttributeAssignmentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the identityUserFlowAttributeAssignment resources from the userAttributeAssignments navigation property in a b2xIdentityUserFlow. + * Get the identityUserFlowAttributeAssignment resources from the userAttributeAssignments navigation property in a b2xIdentityUserFlow. This API is supported in the following national cloud deployments. */ class UserAttributeAssignmentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/AuthenticationContextClassReferencesRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/AuthenticationContextClassReferencesRequestBuilder.php index 862fe05dc41..a54fa366654 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/AuthenticationContextClassReferencesRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/AuthenticationContextClassReferencesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of authenticationContextClassReference objects. + * Retrieve a list of authenticationContextClassReference objects. This API is supported in the following national cloud deployments. * @param AuthenticationContextClassReferencesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/conditionalaccessroot-list-authenticationcontextclassreferences?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(AuthenticationContextClassReference $body, ?AuthenticationC } /** - * Retrieve a list of authenticationContextClassReference objects. + * Retrieve a list of authenticationContextClassReference objects. This API is supported in the following national cloud deployments. * @param AuthenticationContextClassReferencesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/AuthenticationContextClassReferencesRequestBuilderGetQueryParameters.php b/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/AuthenticationContextClassReferencesRequestBuilderGetQueryParameters.php index 2b4d9fdc5d0..dbd7b9e1182 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/AuthenticationContextClassReferencesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/AuthenticationContextClassReferencesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of authenticationContextClassReference objects. + * Retrieve a list of authenticationContextClassReference objects. This API is supported in the following national cloud deployments. */ class AuthenticationContextClassReferencesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Item/AuthenticationContextClassReferenceItemRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Item/AuthenticationContextClassReferenceItemRequestBuilder.php index b51035f9b0f..50c6bb09c59 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Item/AuthenticationContextClassReferenceItemRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Item/AuthenticationContextClassReferenceItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an authenticationContextClassReference object that's not published or used by a conditional access policy. + * Delete an authenticationContextClassReference object that's not published or used by a conditional access policy. This API is supported in the following national cloud deployments. * @param AuthenticationContextClassReferenceItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/authenticationcontextclassreference-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?AuthenticationContextClassReferenceItemRequestBuilderDel } /** - * Retrieve the properties and relationships of a authenticationContextClassReference object. + * Retrieve the properties and relationships of a authenticationContextClassReference object. This API is supported in the following national cloud deployments. * @param AuthenticationContextClassReferenceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/authenticationcontextclassreference-get?view=graph-rest-1.0 Find more info here @@ -70,7 +70,7 @@ public function get(?AuthenticationContextClassReferenceItemRequestBuilderGetReq } /** - * Create an authenticationContextClassReference object, if the ID has not been used. If ID has been used, this call updates the authenticationContextClassReference object. + * Create an authenticationContextClassReference object, if the ID has not been used. If ID has been used, this call updates the authenticationContextClassReference object. This API is supported in the following national cloud deployments. * @param AuthenticationContextClassReference $body The request body * @param AuthenticationContextClassReferenceItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -90,7 +90,7 @@ public function patch(AuthenticationContextClassReference $body, ?Authentication } /** - * Delete an authenticationContextClassReference object that's not published or used by a conditional access policy. + * Delete an authenticationContextClassReference object that's not published or used by a conditional access policy. This API is supported in the following national cloud deployments. * @param AuthenticationContextClassReferenceItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?AuthenticationContextClassReferenceI } /** - * Retrieve the properties and relationships of a authenticationContextClassReference object. + * Retrieve the properties and relationships of a authenticationContextClassReference object. This API is supported in the following national cloud deployments. * @param AuthenticationContextClassReferenceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -128,7 +128,7 @@ public function toGetRequestInformation(?AuthenticationContextClassReferenceItem } /** - * Create an authenticationContextClassReference object, if the ID has not been used. If ID has been used, this call updates the authenticationContextClassReference object. + * Create an authenticationContextClassReference object, if the ID has not been used. If ID has been used, this call updates the authenticationContextClassReference object. This API is supported in the following national cloud deployments. * @param AuthenticationContextClassReference $body The request body * @param AuthenticationContextClassReferenceItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Item/AuthenticationContextClassReferenceItemRequestBuilderGetQueryParameters.php b/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Item/AuthenticationContextClassReferenceItemRequestBuilderGetQueryParameters.php index 791860bcb32..303f7bfd023 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Item/AuthenticationContextClassReferenceItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Item/AuthenticationContextClassReferenceItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a authenticationContextClassReference object. + * Retrieve the properties and relationships of a authenticationContextClassReference object. This API is supported in the following national cloud deployments. */ class AuthenticationContextClassReferenceItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/AuthenticationMethodModesRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/AuthenticationMethodModesRequestBuilder.php index a065aa56285..85140ea19b1 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/AuthenticationMethodModesRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/AuthenticationMethodModesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of all supported authentication methods, or all supported authentication method combinations as a list of authenticationMethodModes objects and their properties. + * Get a list of all supported authentication methods, or all supported authentication method combinations as a list of authenticationMethodModes objects and their properties. This API is supported in the following national cloud deployments. * @param AuthenticationMethodModesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/authenticationstrengthroot-list-authenticationmethodmodes?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(AuthenticationMethodModeDetail $body, ?AuthenticationMethod } /** - * Get a list of all supported authentication methods, or all supported authentication method combinations as a list of authenticationMethodModes objects and their properties. + * Get a list of all supported authentication methods, or all supported authentication method combinations as a list of authenticationMethodModes objects and their properties. This API is supported in the following national cloud deployments. * @param AuthenticationMethodModesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/AuthenticationMethodModesRequestBuilderGetQueryParameters.php b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/AuthenticationMethodModesRequestBuilderGetQueryParameters.php index 4e7501bce7b..c635ea02ace 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/AuthenticationMethodModesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/AuthenticationMethodModesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of all supported authentication methods, or all supported authentication method combinations as a list of authenticationMethodModes objects and their properties. + * Get a list of all supported authentication methods, or all supported authentication method combinations as a list of authenticationMethodModes objects and their properties. This API is supported in the following national cloud deployments. */ class AuthenticationMethodModesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.php index 37cfc4a766b..1bb510a8052 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. + * Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. This API is supported in the following national cloud deployments. * @param CombinationConfigurationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/authenticationstrengthpolicy-list-combinationconfigurations?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?CombinationConfigurationsRequestBuilderGetRequestConfigurat } /** - * Create a new authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be created, and these may only be created for custom authentication strength policies. + * Create a new authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be created, and these may only be created for custom authentication strength policies. This API is supported in the following national cloud deployments. * @param AuthenticationCombinationConfiguration $body The request body * @param CombinationConfigurationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(AuthenticationCombinationConfiguration $body, ?CombinationC } /** - * Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. + * Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. This API is supported in the following national cloud deployments. * @param CombinationConfigurationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?CombinationConfigurationsRequestBuilder } /** - * Create a new authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be created, and these may only be created for custom authentication strength policies. + * Create a new authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be created, and these may only be created for custom authentication strength policies. This API is supported in the following national cloud deployments. * @param AuthenticationCombinationConfiguration $body The request body * @param CombinationConfigurationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilderGetQueryParameters.php b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilderGetQueryParameters.php index 94f2cd31a97..1f70b5873c0 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. + * Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. This API is supported in the following national cloud deployments. */ class CombinationConfigurationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.php index 749f031a3de..fc79dd90731 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an authenticationCombinationConfiguration for a custom authenticationStrengthPolicy object. + * Delete an authenticationCombinationConfiguration for a custom authenticationStrengthPolicy object. This API is supported in the following national cloud deployments. * @param AuthenticationCombinationConfigurationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/authenticationstrengthpolicy-delete-combinationconfigurations?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?AuthenticationCombinationConfigurationItemRequestBuilder } /** - * Read the properties and relationships of an authenticationCombinationConfiguration object. + * Read the properties and relationships of an authenticationCombinationConfiguration object. This API is supported in the following national cloud deployments. * @param AuthenticationCombinationConfigurationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/authenticationcombinationconfiguration-get?view=graph-rest-1.0 Find more info here @@ -70,7 +70,7 @@ public function get(?AuthenticationCombinationConfigurationItemRequestBuilderGet } /** - * Update the properties of an authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be updated as they are the only type of authenticationCombinationConfiguration that may be created. + * Update the properties of an authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be updated as they're the only type of authenticationCombinationConfiguration that may be created. This API is supported in the following national cloud deployments. * @param AuthenticationCombinationConfiguration $body The request body * @param AuthenticationCombinationConfigurationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -90,7 +90,7 @@ public function patch(AuthenticationCombinationConfiguration $body, ?Authenticat } /** - * Delete an authenticationCombinationConfiguration for a custom authenticationStrengthPolicy object. + * Delete an authenticationCombinationConfiguration for a custom authenticationStrengthPolicy object. This API is supported in the following national cloud deployments. * @param AuthenticationCombinationConfigurationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?AuthenticationCombinationConfigurati } /** - * Read the properties and relationships of an authenticationCombinationConfiguration object. + * Read the properties and relationships of an authenticationCombinationConfiguration object. This API is supported in the following national cloud deployments. * @param AuthenticationCombinationConfigurationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -128,7 +128,7 @@ public function toGetRequestInformation(?AuthenticationCombinationConfigurationI } /** - * Update the properties of an authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be updated as they are the only type of authenticationCombinationConfiguration that may be created. + * Update the properties of an authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be updated as they're the only type of authenticationCombinationConfiguration that may be created. This API is supported in the following national cloud deployments. * @param AuthenticationCombinationConfiguration $body The request body * @param AuthenticationCombinationConfigurationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilderGetQueryParameters.php b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilderGetQueryParameters.php index 472541d9288..6134c973ac9 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of an authenticationCombinationConfiguration object. + * Read the properties and relationships of an authenticationCombinationConfiguration object. This API is supported in the following national cloud deployments. */ class AuthenticationCombinationConfigurationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.php index e0806e48c1a..c831fdf328c 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Update the allowedCombinations property of an authenticationStrengthPolicy object. To update other properties of an authenticationStrengthPolicy object, use the Update authenticationStrengthPolicy method. + * Update the allowedCombinations property of an authenticationStrengthPolicy object. To update other properties of an authenticationStrengthPolicy object, use the Update authenticationStrengthPolicy method. This API is supported in the following national cloud deployments. * @param UpdateAllowedCombinationsPostRequestBody $body The request body * @param UpdateAllowedCombinationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(UpdateAllowedCombinationsPostRequestBody $body, ?UpdateAllo } /** - * Update the allowedCombinations property of an authenticationStrengthPolicy object. To update other properties of an authenticationStrengthPolicy object, use the Update authenticationStrengthPolicy method. + * Update the allowedCombinations property of an authenticationStrengthPolicy object. To update other properties of an authenticationStrengthPolicy object, use the Update authenticationStrengthPolicy method. This API is supported in the following national cloud deployments. * @param UpdateAllowedCombinationsPostRequestBody $body The request body * @param UpdateAllowedCombinationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.php index 5edfb0f2b36..4db32829335 100644 --- a/src/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a countryNamedLocation object. + * Delete a countryNamedLocation object. This API is supported in the following national cloud deployments. * @param NamedLocationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/countrynamedlocation-delete?view=graph-rest-1.0 Find more info here @@ -51,10 +51,10 @@ public function delete(?NamedLocationItemRequestBuilderDeleteRequestConfiguratio } /** - * Retrieve the properties and relationships of a countryNamedLocation object. + * Retrieve the properties and relationships of an ipNamedLocation object. This API is supported in the following national cloud deployments. * @param NamedLocationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/countrynamedlocation-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/ipnamedlocation-get?view=graph-rest-1.0 Find more info here */ public function get(?NamedLocationItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -70,7 +70,7 @@ public function get(?NamedLocationItemRequestBuilderGetRequestConfiguration $req } /** - * Update the properties of a countryNamedLocation object. + * Update the properties of a countryNamedLocation object. This API is supported in the following national cloud deployments. * @param NamedLocation $body The request body * @param NamedLocationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -90,7 +90,7 @@ public function patch(NamedLocation $body, ?NamedLocationItemRequestBuilderPatch } /** - * Delete a countryNamedLocation object. + * Delete a countryNamedLocation object. This API is supported in the following national cloud deployments. * @param NamedLocationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?NamedLocationItemRequestBuilderDelet } /** - * Retrieve the properties and relationships of a countryNamedLocation object. + * Retrieve the properties and relationships of an ipNamedLocation object. This API is supported in the following national cloud deployments. * @param NamedLocationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -128,7 +128,7 @@ public function toGetRequestInformation(?NamedLocationItemRequestBuilderGetReque } /** - * Update the properties of a countryNamedLocation object. + * Update the properties of a countryNamedLocation object. This API is supported in the following national cloud deployments. * @param NamedLocation $body The request body * @param NamedLocationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilderGetQueryParameters.php b/src/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilderGetQueryParameters.php index a8d1c5b81e0..db79976b457 100644 --- a/src/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a countryNamedLocation object. + * Retrieve the properties and relationships of an ipNamedLocation object. This API is supported in the following national cloud deployments. */ class NamedLocationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/ConditionalAccess/NamedLocations/NamedLocationsRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/NamedLocations/NamedLocationsRequestBuilder.php index 61dd8547455..c063203b1a6 100644 --- a/src/Generated/Identity/ConditionalAccess/NamedLocations/NamedLocationsRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/NamedLocations/NamedLocationsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of namedLocation objects. + * Get a list of namedLocation objects. This API is supported in the following national cloud deployments. * @param NamedLocationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/conditionalaccessroot-list-namedlocations?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?NamedLocationsRequestBuilderGetRequestConfiguration $reques } /** - * Create a new namedLocation object. Named locations can be either ipNamedLocation or countryNamedLocation objects. + * Create a new namedLocation object. Named locations can be either ipNamedLocation or countryNamedLocation objects. This API is supported in the following national cloud deployments. * @param NamedLocation $body The request body * @param NamedLocationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(NamedLocation $body, ?NamedLocationsRequestBuilderPostReque } /** - * Get a list of namedLocation objects. + * Get a list of namedLocation objects. This API is supported in the following national cloud deployments. * @param NamedLocationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?NamedLocationsRequestBuilderGetRequestC } /** - * Create a new namedLocation object. Named locations can be either ipNamedLocation or countryNamedLocation objects. + * Create a new namedLocation object. Named locations can be either ipNamedLocation or countryNamedLocation objects. This API is supported in the following national cloud deployments. * @param NamedLocation $body The request body * @param NamedLocationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Identity/ConditionalAccess/NamedLocations/NamedLocationsRequestBuilderGetQueryParameters.php b/src/Generated/Identity/ConditionalAccess/NamedLocations/NamedLocationsRequestBuilderGetQueryParameters.php index 3ed5ecda74c..438c47427ee 100644 --- a/src/Generated/Identity/ConditionalAccess/NamedLocations/NamedLocationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/ConditionalAccess/NamedLocations/NamedLocationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of namedLocation objects. + * Get a list of namedLocation objects. This API is supported in the following national cloud deployments. */ class NamedLocationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/ConditionalAccess/Policies/Item/ConditionalAccessPolicyItemRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/Policies/Item/ConditionalAccessPolicyItemRequestBuilder.php index 1e41672b735..b697eda45c4 100644 --- a/src/Generated/Identity/ConditionalAccess/Policies/Item/ConditionalAccessPolicyItemRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/Policies/Item/ConditionalAccessPolicyItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a conditionalAccessPolicy object. + * Delete a conditionalAccessPolicy object. This API is supported in the following national cloud deployments. * @param ConditionalAccessPolicyItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/conditionalaccesspolicy-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?ConditionalAccessPolicyItemRequestBuilderDeleteRequestCo } /** - * Retrieve the properties and relationships of a conditionalAccessPolicy object. + * Retrieve the properties and relationships of a conditionalAccessPolicy object. This API is supported in the following national cloud deployments. * @param ConditionalAccessPolicyItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/conditionalaccesspolicy-get?view=graph-rest-1.0 Find more info here @@ -70,7 +70,7 @@ public function get(?ConditionalAccessPolicyItemRequestBuilderGetRequestConfigur } /** - * Update the properties of a conditionalAccessPolicy object. + * Update the properties of a conditionalAccessPolicy object. This API is supported in the following national cloud deployments. * @param ConditionalAccessPolicy $body The request body * @param ConditionalAccessPolicyItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -90,7 +90,7 @@ public function patch(ConditionalAccessPolicy $body, ?ConditionalAccessPolicyIte } /** - * Delete a conditionalAccessPolicy object. + * Delete a conditionalAccessPolicy object. This API is supported in the following national cloud deployments. * @param ConditionalAccessPolicyItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?ConditionalAccessPolicyItemRequestBu } /** - * Retrieve the properties and relationships of a conditionalAccessPolicy object. + * Retrieve the properties and relationships of a conditionalAccessPolicy object. This API is supported in the following national cloud deployments. * @param ConditionalAccessPolicyItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -128,7 +128,7 @@ public function toGetRequestInformation(?ConditionalAccessPolicyItemRequestBuild } /** - * Update the properties of a conditionalAccessPolicy object. + * Update the properties of a conditionalAccessPolicy object. This API is supported in the following national cloud deployments. * @param ConditionalAccessPolicy $body The request body * @param ConditionalAccessPolicyItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Identity/ConditionalAccess/Policies/Item/ConditionalAccessPolicyItemRequestBuilderGetQueryParameters.php b/src/Generated/Identity/ConditionalAccess/Policies/Item/ConditionalAccessPolicyItemRequestBuilderGetQueryParameters.php index 5797f8242cd..cd53630ead5 100644 --- a/src/Generated/Identity/ConditionalAccess/Policies/Item/ConditionalAccessPolicyItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/ConditionalAccess/Policies/Item/ConditionalAccessPolicyItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a conditionalAccessPolicy object. + * Retrieve the properties and relationships of a conditionalAccessPolicy object. This API is supported in the following national cloud deployments. */ class ConditionalAccessPolicyItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/ConditionalAccess/Policies/PoliciesRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/Policies/PoliciesRequestBuilder.php index 3f820ab6bee..be194695b32 100644 --- a/src/Generated/Identity/ConditionalAccess/Policies/PoliciesRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/Policies/PoliciesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of conditionalAccessPolicy objects. + * Retrieve a list of conditionalAccessPolicy objects. This API is supported in the following national cloud deployments. * @param PoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/conditionalaccessroot-list-policies?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?PoliciesRequestBuilderGetRequestConfiguration $requestConfi } /** - * Create a new conditionalAccessPolicy. + * Create a new conditionalAccessPolicy. This API is supported in the following national cloud deployments. * @param ConditionalAccessPolicy $body The request body * @param PoliciesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(ConditionalAccessPolicy $body, ?PoliciesRequestBuilderPostR } /** - * Retrieve a list of conditionalAccessPolicy objects. + * Retrieve a list of conditionalAccessPolicy objects. This API is supported in the following national cloud deployments. * @param PoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?PoliciesRequestBuilderGetRequestConfigu } /** - * Create a new conditionalAccessPolicy. + * Create a new conditionalAccessPolicy. This API is supported in the following national cloud deployments. * @param ConditionalAccessPolicy $body The request body * @param PoliciesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Identity/ConditionalAccess/Policies/PoliciesRequestBuilderGetQueryParameters.php b/src/Generated/Identity/ConditionalAccess/Policies/PoliciesRequestBuilderGetQueryParameters.php index ec46d634143..4a3d95dba60 100644 --- a/src/Generated/Identity/ConditionalAccess/Policies/PoliciesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/ConditionalAccess/Policies/PoliciesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of conditionalAccessPolicy objects. + * Retrieve a list of conditionalAccessPolicy objects. This API is supported in the following national cloud deployments. */ class PoliciesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/ConditionalAccess/Templates/Item/ConditionalAccessTemplateItemRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/Templates/Item/ConditionalAccessTemplateItemRequestBuilder.php index 2c582022c43..fef01216783 100644 --- a/src/Generated/Identity/ConditionalAccess/Templates/Item/ConditionalAccessTemplateItemRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/Templates/Item/ConditionalAccessTemplateItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read the properties and relationships of a conditionalAccessTemplate object. + * Read the properties and relationships of a conditionalAccessTemplate object. This API is supported in the following national cloud deployments. * @param ConditionalAccessTemplateItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/conditionalaccesstemplate-get?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function get(?ConditionalAccessTemplateItemRequestBuilderGetRequestConfig } /** - * Read the properties and relationships of a conditionalAccessTemplate object. + * Read the properties and relationships of a conditionalAccessTemplate object. This API is supported in the following national cloud deployments. * @param ConditionalAccessTemplateItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Identity/ConditionalAccess/Templates/Item/ConditionalAccessTemplateItemRequestBuilderGetQueryParameters.php b/src/Generated/Identity/ConditionalAccess/Templates/Item/ConditionalAccessTemplateItemRequestBuilderGetQueryParameters.php index 17a55512ce2..743f18bbf78 100644 --- a/src/Generated/Identity/ConditionalAccess/Templates/Item/ConditionalAccessTemplateItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/ConditionalAccess/Templates/Item/ConditionalAccessTemplateItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a conditionalAccessTemplate object. + * Read the properties and relationships of a conditionalAccessTemplate object. This API is supported in the following national cloud deployments. */ class ConditionalAccessTemplateItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/ConditionalAccess/Templates/TemplatesRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/Templates/TemplatesRequestBuilder.php index 253a62e2f0d..d6b68f4e506 100644 --- a/src/Generated/Identity/ConditionalAccess/Templates/TemplatesRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/Templates/TemplatesRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the conditionalAccessTemplate objects and their properties. + * Get a list of the conditionalAccessTemplate objects and their properties. This API is supported in the following national cloud deployments. * @param TemplatesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/conditionalaccessroot-list-templates?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?TemplatesRequestBuilderGetRequestConfiguration $requestConf } /** - * Get a list of the conditionalAccessTemplate objects and their properties. + * Get a list of the conditionalAccessTemplate objects and their properties. This API is supported in the following national cloud deployments. * @param TemplatesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Identity/ConditionalAccess/Templates/TemplatesRequestBuilderGetQueryParameters.php b/src/Generated/Identity/ConditionalAccess/Templates/TemplatesRequestBuilderGetQueryParameters.php index 5da2fdd6115..48671a8bf93 100644 --- a/src/Generated/Identity/ConditionalAccess/Templates/TemplatesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/ConditionalAccess/Templates/TemplatesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the conditionalAccessTemplate objects and their properties. + * Get a list of the conditionalAccessTemplate objects and their properties. This API is supported in the following national cloud deployments. */ class TemplatesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesGetResponse.php b/src/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesGetResponse.php new file mode 100644 index 00000000000..ff6d8e98edd --- /dev/null +++ b/src/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesGetResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.php b/src/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.php index 33a91a59ee8..01fe5fb1c7d 100644 --- a/src/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.php +++ b/src/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?AvailableProviderTypesRequestBuilderGetRequestConfiguration '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [AvailableProviderTypesResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [AvailableProviderTypesGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesResponse.php b/src/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesResponse.php deleted file mode 100644 index 25a0386cbdb..00000000000 --- a/src/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/Identity/IdentityProviders/IdentityProvidersRequestBuilder.php b/src/Generated/Identity/IdentityProviders/IdentityProvidersRequestBuilder.php index 22326fa061b..c8fd4b2d158 100644 --- a/src/Generated/Identity/IdentityProviders/IdentityProvidersRequestBuilder.php +++ b/src/Generated/Identity/IdentityProviders/IdentityProvidersRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a collection of identity provider resources that are configured for a tenant, and that are derived from identityProviderBase. For an Azure AD tenant, the providers can be socialIdentityProviders or builtinIdentityProviders objects. For an Azure AD B2C, the providers can be socialIdentityProvider, or appleManagedIdentityProvider objects. + * Get a collection of identity provider resources that are configured for a tenant, and that are derived from identityProviderBase. For an Azure AD tenant, the providers can be socialIdentityProviders or builtinIdentityProviders objects. For an Azure AD B2C, the providers can be socialIdentityProvider, or appleManagedIdentityProvider objects. This API is supported in the following national cloud deployments. * @param IdentityProvidersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitycontainer-list-identityproviders?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?IdentityProvidersRequestBuilderGetRequestConfiguration $req } /** - * Create an identity provider object that is of the type specified in the request body. Among the types of providers derived from identityProviderBase, you can currently create a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently create a socialIdentityProvider, or an appleManagedIdentityProvider resource. + * Create an identity provider object that is of the type specified in the request body. Among the types of providers derived from identityProviderBase, you can currently create a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently create a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is supported in the following national cloud deployments. * @param IdentityProviderBase $body The request body * @param IdentityProvidersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(IdentityProviderBase $body, ?IdentityProvidersRequestBuilde } /** - * Get a collection of identity provider resources that are configured for a tenant, and that are derived from identityProviderBase. For an Azure AD tenant, the providers can be socialIdentityProviders or builtinIdentityProviders objects. For an Azure AD B2C, the providers can be socialIdentityProvider, or appleManagedIdentityProvider objects. + * Get a collection of identity provider resources that are configured for a tenant, and that are derived from identityProviderBase. For an Azure AD tenant, the providers can be socialIdentityProviders or builtinIdentityProviders objects. For an Azure AD B2C, the providers can be socialIdentityProvider, or appleManagedIdentityProvider objects. This API is supported in the following national cloud deployments. * @param IdentityProvidersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?IdentityProvidersRequestBuilderGetReque } /** - * Create an identity provider object that is of the type specified in the request body. Among the types of providers derived from identityProviderBase, you can currently create a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently create a socialIdentityProvider, or an appleManagedIdentityProvider resource. + * Create an identity provider object that is of the type specified in the request body. Among the types of providers derived from identityProviderBase, you can currently create a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently create a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is supported in the following national cloud deployments. * @param IdentityProviderBase $body The request body * @param IdentityProvidersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Identity/IdentityProviders/IdentityProvidersRequestBuilderGetQueryParameters.php b/src/Generated/Identity/IdentityProviders/IdentityProvidersRequestBuilderGetQueryParameters.php index ed1d578413b..f24fa32221d 100644 --- a/src/Generated/Identity/IdentityProviders/IdentityProvidersRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/IdentityProviders/IdentityProvidersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a collection of identity provider resources that are configured for a tenant, and that are derived from identityProviderBase. For an Azure AD tenant, the providers can be socialIdentityProviders or builtinIdentityProviders objects. For an Azure AD B2C, the providers can be socialIdentityProvider, or appleManagedIdentityProvider objects. + * Get a collection of identity provider resources that are configured for a tenant, and that are derived from identityProviderBase. For an Azure AD tenant, the providers can be socialIdentityProviders or builtinIdentityProviders objects. For an Azure AD B2C, the providers can be socialIdentityProvider, or appleManagedIdentityProvider objects. This API is supported in the following national cloud deployments. */ class IdentityProvidersRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/IdentityProviders/Item/IdentityProviderBaseItemRequestBuilder.php b/src/Generated/Identity/IdentityProviders/Item/IdentityProviderBaseItemRequestBuilder.php index 9d2f86e946d..47bd89d0fbd 100644 --- a/src/Generated/Identity/IdentityProviders/Item/IdentityProviderBaseItemRequestBuilder.php +++ b/src/Generated/Identity/IdentityProviders/Item/IdentityProviderBaseItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an identity provider resource that is of the type specified by the id in the request. Among the types of providers derived from identityProviderBase, you can currently delete a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently delete a socialIdentityProvider, or an appleManagedIdentityProvider resource. + * Delete an identity provider resource that is of the type specified by the id in the request. Among the types of providers derived from identityProviderBase, you can currently delete a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently delete a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is supported in the following national cloud deployments. * @param IdentityProviderBaseItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identityproviderbase-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?IdentityProviderBaseItemRequestBuilderDeleteRequestConfi } /** - * Get the properties and relationships of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently get a socialIdentityProvider or a builtinIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently get a socialIdentityProvider, or an appleManagedIdentityProvider resource. + * Get the properties and relationships of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently get a socialIdentityProvider or a builtinIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently get a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is supported in the following national cloud deployments. * @param IdentityProviderBaseItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identityproviderbase-get?view=graph-rest-1.0 Find more info here @@ -70,7 +70,7 @@ public function get(?IdentityProviderBaseItemRequestBuilderGetRequestConfigurati } /** - * Update the properties of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently update a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently update a socialIdentityProvider, or an appleManagedIdentityProvider resource. + * Update the properties of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently update a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently update a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is supported in the following national cloud deployments. * @param IdentityProviderBase $body The request body * @param IdentityProviderBaseItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -90,7 +90,7 @@ public function patch(IdentityProviderBase $body, ?IdentityProviderBaseItemReque } /** - * Delete an identity provider resource that is of the type specified by the id in the request. Among the types of providers derived from identityProviderBase, you can currently delete a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently delete a socialIdentityProvider, or an appleManagedIdentityProvider resource. + * Delete an identity provider resource that is of the type specified by the id in the request. Among the types of providers derived from identityProviderBase, you can currently delete a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently delete a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is supported in the following national cloud deployments. * @param IdentityProviderBaseItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?IdentityProviderBaseItemRequestBuild } /** - * Get the properties and relationships of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently get a socialIdentityProvider or a builtinIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently get a socialIdentityProvider, or an appleManagedIdentityProvider resource. + * Get the properties and relationships of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently get a socialIdentityProvider or a builtinIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently get a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is supported in the following national cloud deployments. * @param IdentityProviderBaseItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -128,7 +128,7 @@ public function toGetRequestInformation(?IdentityProviderBaseItemRequestBuilderG } /** - * Update the properties of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently update a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently update a socialIdentityProvider, or an appleManagedIdentityProvider resource. + * Update the properties of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently update a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently update a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is supported in the following national cloud deployments. * @param IdentityProviderBase $body The request body * @param IdentityProviderBaseItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Identity/IdentityProviders/Item/IdentityProviderBaseItemRequestBuilderGetQueryParameters.php b/src/Generated/Identity/IdentityProviders/Item/IdentityProviderBaseItemRequestBuilderGetQueryParameters.php index ff2068bba05..56ab33dddfe 100644 --- a/src/Generated/Identity/IdentityProviders/Item/IdentityProviderBaseItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/IdentityProviders/Item/IdentityProviderBaseItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the properties and relationships of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently get a socialIdentityProvider or a builtinIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently get a socialIdentityProvider, or an appleManagedIdentityProvider resource. + * Get the properties and relationships of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently get a socialIdentityProvider or a builtinIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently get a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is supported in the following national cloud deployments. */ class IdentityProviderBaseItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/UserFlowAttributes/Item/IdentityUserFlowAttributeItemRequestBuilder.php b/src/Generated/Identity/UserFlowAttributes/Item/IdentityUserFlowAttributeItemRequestBuilder.php index 963e4a580c3..df88c9d23f0 100644 --- a/src/Generated/Identity/UserFlowAttributes/Item/IdentityUserFlowAttributeItemRequestBuilder.php +++ b/src/Generated/Identity/UserFlowAttributes/Item/IdentityUserFlowAttributeItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an identityUserFlowAttribute. Only custom user flow attributes can be deleted. + * Delete a custom identityUserFlowAttribute. This API is supported in the following national cloud deployments. * @param IdentityUserFlowAttributeItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identityuserflowattribute-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?IdentityUserFlowAttributeItemRequestBuilderDeleteRequest } /** - * Retrieve the properties and relationships of a identityUserFlowAttribute object. + * Retrieve the properties and relationships of a identityUserFlowAttribute object. This API is supported in the following national cloud deployments. * @param IdentityUserFlowAttributeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identityuserflowattribute-get?view=graph-rest-1.0 Find more info here @@ -70,7 +70,7 @@ public function get(?IdentityUserFlowAttributeItemRequestBuilderGetRequestConfig } /** - * Update the properties of a identityUserFlowAttribute object. Only custom user flow attributes can be updated. + * Update the properties of a custom identityUserFlowAttribute object. This API is supported in the following national cloud deployments. * @param IdentityUserFlowAttribute $body The request body * @param IdentityUserFlowAttributeItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -90,7 +90,7 @@ public function patch(IdentityUserFlowAttribute $body, ?IdentityUserFlowAttribut } /** - * Delete an identityUserFlowAttribute. Only custom user flow attributes can be deleted. + * Delete a custom identityUserFlowAttribute. This API is supported in the following national cloud deployments. * @param IdentityUserFlowAttributeItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?IdentityUserFlowAttributeItemRequest } /** - * Retrieve the properties and relationships of a identityUserFlowAttribute object. + * Retrieve the properties and relationships of a identityUserFlowAttribute object. This API is supported in the following national cloud deployments. * @param IdentityUserFlowAttributeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -128,7 +128,7 @@ public function toGetRequestInformation(?IdentityUserFlowAttributeItemRequestBui } /** - * Update the properties of a identityUserFlowAttribute object. Only custom user flow attributes can be updated. + * Update the properties of a custom identityUserFlowAttribute object. This API is supported in the following national cloud deployments. * @param IdentityUserFlowAttribute $body The request body * @param IdentityUserFlowAttributeItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Identity/UserFlowAttributes/Item/IdentityUserFlowAttributeItemRequestBuilderGetQueryParameters.php b/src/Generated/Identity/UserFlowAttributes/Item/IdentityUserFlowAttributeItemRequestBuilderGetQueryParameters.php index 5d844c4ed72..3150fa9afcb 100644 --- a/src/Generated/Identity/UserFlowAttributes/Item/IdentityUserFlowAttributeItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/UserFlowAttributes/Item/IdentityUserFlowAttributeItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a identityUserFlowAttribute object. + * Retrieve the properties and relationships of a identityUserFlowAttribute object. This API is supported in the following national cloud deployments. */ class IdentityUserFlowAttributeItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/UserFlowAttributes/UserFlowAttributesRequestBuilder.php b/src/Generated/Identity/UserFlowAttributes/UserFlowAttributesRequestBuilder.php index 638358960b9..10f2e6a4f34 100644 --- a/src/Generated/Identity/UserFlowAttributes/UserFlowAttributesRequestBuilder.php +++ b/src/Generated/Identity/UserFlowAttributes/UserFlowAttributesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of identityUserFlowAttribute objects. + * Retrieve a list of identityUserFlowAttribute objects. This API is supported in the following national cloud deployments. * @param UserFlowAttributesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identityuserflowattribute-list?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?UserFlowAttributesRequestBuilderGetRequestConfiguration $re } /** - * Create a new identityUserFlowAttribute object. + * Create a new custom identityUserFlowAttribute object. This API is supported in the following national cloud deployments. * @param IdentityUserFlowAttribute $body The request body * @param UserFlowAttributesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(IdentityUserFlowAttribute $body, ?UserFlowAttributesRequest } /** - * Retrieve a list of identityUserFlowAttribute objects. + * Retrieve a list of identityUserFlowAttribute objects. This API is supported in the following national cloud deployments. * @param UserFlowAttributesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?UserFlowAttributesRequestBuilderGetRequ } /** - * Create a new identityUserFlowAttribute object. + * Create a new custom identityUserFlowAttribute object. This API is supported in the following national cloud deployments. * @param IdentityUserFlowAttribute $body The request body * @param UserFlowAttributesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Identity/UserFlowAttributes/UserFlowAttributesRequestBuilderGetQueryParameters.php b/src/Generated/Identity/UserFlowAttributes/UserFlowAttributesRequestBuilderGetQueryParameters.php index e47bc484d2e..273ab3020c9 100644 --- a/src/Generated/Identity/UserFlowAttributes/UserFlowAttributesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Identity/UserFlowAttributes/UserFlowAttributesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of identityUserFlowAttribute objects. + * Retrieve a list of identityUserFlowAttribute objects. This API is supported in the following national cloud deployments. */ class UserFlowAttributesRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/DefinitionsRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/DefinitionsRequestBuilder.php index 0b4e3c57b57..72eb1cdbfb2 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/DefinitionsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/DefinitionsRequestBuilder.php @@ -63,7 +63,7 @@ public function filterByCurrentUserWithOn(string $on): FilterByCurrentUserWithOn } /** - * Get a list of the accessReviewScheduleDefinition objects and their properties. + * Get a list of the accessReviewScheduleDefinition objects and their properties. This API is supported in the following national cloud deployments. * @param DefinitionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accessreviewset-list-definitions?view=graph-rest-1.0 Find more info here @@ -82,7 +82,7 @@ public function get(?DefinitionsRequestBuilderGetRequestConfiguration $requestCo } /** - * Create a new accessReviewScheduleDefinition object. + * Create a new accessReviewScheduleDefinition object. This API is supported in the following national cloud deployments. * @param AccessReviewScheduleDefinition $body The request body * @param DefinitionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -102,7 +102,7 @@ public function post(AccessReviewScheduleDefinition $body, ?DefinitionsRequestBu } /** - * Get a list of the accessReviewScheduleDefinition objects and their properties. + * Get a list of the accessReviewScheduleDefinition objects and their properties. This API is supported in the following national cloud deployments. * @param DefinitionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -123,7 +123,7 @@ public function toGetRequestInformation(?DefinitionsRequestBuilderGetRequestConf } /** - * Create a new accessReviewScheduleDefinition object. + * Create a new accessReviewScheduleDefinition object. This API is supported in the following national cloud deployments. * @param AccessReviewScheduleDefinition $body The request body * @param DefinitionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/DefinitionsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/DefinitionsRequestBuilderGetQueryParameters.php index 2e29c7a9673..a89dd547cd4 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/DefinitionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/DefinitionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the accessReviewScheduleDefinition objects and their properties. + * Get a list of the accessReviewScheduleDefinition objects and their properties. This API is supported in the following national cloud deployments. */ class DefinitionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php new file mode 100644 index 00000000000..aff7859ce01 --- /dev/null +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AccessReviewScheduleDefinition::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, AccessReviewScheduleDefinition::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/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index 4108061d4a3..75789f2b47e 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -45,7 +45,7 @@ public function get(?FilterByCurrentUserWithOnRequestBuilderGetRequestConfigurat '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php deleted file mode 100644 index 8efeefe9746..00000000000 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AccessReviewScheduleDefinition::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, AccessReviewScheduleDefinition::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/IdentityGovernance/AccessReviews/Definitions/Item/AccessReviewScheduleDefinitionItemRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/AccessReviewScheduleDefinitionItemRequestBuilder.php index 4919faf5680..6f940778d25 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/AccessReviewScheduleDefinitionItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/AccessReviewScheduleDefinitionItemRequestBuilder.php @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Deletes an accessReviewScheduleDefinition object. + * Deletes an accessReviewScheduleDefinition object. This API is supported in the following national cloud deployments. * @param AccessReviewScheduleDefinitionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accessreviewscheduledefinition-delete?view=graph-rest-1.0 Find more info here @@ -67,7 +67,7 @@ public function delete(?AccessReviewScheduleDefinitionItemRequestBuilderDeleteRe } /** - * Read the properties and relationships of an accessReviewScheduleDefinition object. To retrieve the instances of the access review series, use the list accessReviewInstance API. + * Read the properties and relationships of an accessReviewScheduleDefinition object. To retrieve the instances of the access review series, use the list accessReviewInstance API. This API is supported in the following national cloud deployments. * @param AccessReviewScheduleDefinitionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accessreviewscheduledefinition-get?view=graph-rest-1.0 Find more info here @@ -106,7 +106,7 @@ public function patch(AccessReviewScheduleDefinition $body, ?AccessReviewSchedul } /** - * Deletes an accessReviewScheduleDefinition object. + * Deletes an accessReviewScheduleDefinition object. This API is supported in the following national cloud deployments. * @param AccessReviewScheduleDefinitionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -123,7 +123,7 @@ public function toDeleteRequestInformation(?AccessReviewScheduleDefinitionItemRe } /** - * Read the properties and relationships of an accessReviewScheduleDefinition object. To retrieve the instances of the access review series, use the list accessReviewInstance API. + * Read the properties and relationships of an accessReviewScheduleDefinition object. To retrieve the instances of the access review series, use the list accessReviewInstance API. This API is supported in the following national cloud deployments. * @param AccessReviewScheduleDefinitionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/AccessReviewScheduleDefinitionItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/AccessReviewScheduleDefinitionItemRequestBuilderGetQueryParameters.php index c363ff1f6bc..fc1f0c9e053 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/AccessReviewScheduleDefinitionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/AccessReviewScheduleDefinitionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of an accessReviewScheduleDefinition object. To retrieve the instances of the access review series, use the list accessReviewInstance API. + * Read the properties and relationships of an accessReviewScheduleDefinition object. To retrieve the instances of the access review series, use the list accessReviewInstance API. This API is supported in the following national cloud deployments. */ class AccessReviewScheduleDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php new file mode 100644 index 00000000000..319b1da7e8a --- /dev/null +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AccessReviewInstance::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, AccessReviewInstance::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/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index 4d7b4d249bc..880ba8a76b0 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -45,7 +45,7 @@ public function get(?FilterByCurrentUserWithOnRequestBuilderGetRequestConfigurat '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php deleted file mode 100644 index d9077b059f8..00000000000 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AccessReviewInstance::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, AccessReviewInstance::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/IdentityGovernance/AccessReviews/Definitions/Item/Instances/InstancesRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/InstancesRequestBuilder.php index bd22b8c7ac0..172cb8558d4 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/InstancesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/InstancesRequestBuilder.php @@ -63,7 +63,7 @@ public function filterByCurrentUserWithOn(string $on): FilterByCurrentUserWithOn } /** - * Get a list of the accessReviewInstance objects and their properties. + * Get a list of the accessReviewInstance objects and their properties. This API is supported in the following national cloud deployments. * @param InstancesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accessreviewscheduledefinition-list-instances?view=graph-rest-1.0 Find more info here @@ -101,7 +101,7 @@ public function post(AccessReviewInstance $body, ?InstancesRequestBuilderPostReq } /** - * Get a list of the accessReviewInstance objects and their properties. + * Get a list of the accessReviewInstance objects and their properties. This API is supported in the following national cloud deployments. * @param InstancesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/InstancesRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/InstancesRequestBuilderGetQueryParameters.php index c5bce5bb289..7f2afd15915 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/InstancesRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/InstancesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the accessReviewInstance objects and their properties. + * Get a list of the accessReviewInstance objects and their properties. This API is supported in the following national cloud deployments. */ class InstancesRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.php index f19f60710f8..e4daebc1e90 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Allows the acceptance of recommendations on all accessReviewInstanceDecisionItem objects that have not been reviewed on an accessReviewInstance object for which the calling user is a reviewer. + * Allows the acceptance of recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed on an accessReviewInstance object for which the calling user is a reviewer. This API is supported in the following national cloud deployments. * @param AcceptRecommendationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accessreviewinstance-acceptrecommendations?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?AcceptRecommendationsRequestBuilderPostRequestConfiguratio } /** - * Allows the acceptance of recommendations on all accessReviewInstanceDecisionItem objects that have not been reviewed on an accessReviewInstance object for which the calling user is a reviewer. + * Allows the acceptance of recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed on an accessReviewInstance object for which the calling user is a reviewer. This API is supported in the following national cloud deployments. * @param AcceptRecommendationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AccessReviewInstanceItemRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AccessReviewInstanceItemRequestBuilder.php index b2f2742b69a..304567bd4e6 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AccessReviewInstanceItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AccessReviewInstanceItemRequestBuilder.php @@ -122,7 +122,7 @@ public function delete(?AccessReviewInstanceItemRequestBuilderDeleteRequestConfi } /** - * Read the properties and relationships of an accessReviewInstance object. + * Read the properties and relationships of an accessReviewInstance object. This API is supported in the following national cloud deployments. * @param AccessReviewInstanceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accessreviewinstance-get?view=graph-rest-1.0 Find more info here @@ -178,7 +178,7 @@ public function toDeleteRequestInformation(?AccessReviewInstanceItemRequestBuild } /** - * Read the properties and relationships of an accessReviewInstance object. + * Read the properties and relationships of an accessReviewInstance object. This API is supported in the following national cloud deployments. * @param AccessReviewInstanceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AccessReviewInstanceItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AccessReviewInstanceItemRequestBuilderGetQueryParameters.php index 532b07c3c53..f4152e32b17 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AccessReviewInstanceItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AccessReviewInstanceItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of an accessReviewInstance object. + * Read the properties and relationships of an accessReviewInstance object. This API is supported in the following national cloud deployments. */ class AccessReviewInstanceItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ApplyDecisions/ApplyDecisionsRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ApplyDecisions/ApplyDecisionsRequestBuilder.php index cd674313667..64c23164a86 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ApplyDecisions/ApplyDecisionsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ApplyDecisions/ApplyDecisionsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Apply review decisions on an accessReviewInstance if the decisions were not applied automatically because the autoApplyDecisionsEnabled property is false in the review's accessReviewScheduleSettings. The status of the accessReviewInstance must be Completed to call this method. + * Apply review decisions on an accessReviewInstance if the decisions were not applied automatically because the autoApplyDecisionsEnabled property is false in the review's accessReviewScheduleSettings. The status of the accessReviewInstance must be Completed to call this method. This API is supported in the following national cloud deployments. * @param ApplyDecisionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accessreviewinstance-applydecisions?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ApplyDecisionsRequestBuilderPostRequestConfiguration $requ } /** - * Apply review decisions on an accessReviewInstance if the decisions were not applied automatically because the autoApplyDecisionsEnabled property is false in the review's accessReviewScheduleSettings. The status of the accessReviewInstance must be Completed to call this method. + * Apply review decisions on an accessReviewInstance if the decisions were not applied automatically because the autoApplyDecisionsEnabled property is false in the review's accessReviewScheduleSettings. The status of the accessReviewInstance must be Completed to call this method. This API is supported in the following national cloud deployments. * @param ApplyDecisionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.php index 64e763ad11b..553294bf17d 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Enables reviewers to review all accessReviewInstanceDecisionItem objects in batches by using principalId, resourceId, or neither. + * Enables reviewers to review all accessReviewInstanceDecisionItem objects in batches by using principalId, resourceId, or neither. This API is supported in the following national cloud deployments. * @param BatchRecordDecisionsPostRequestBody $body The request body * @param BatchRecordDecisionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(BatchRecordDecisionsPostRequestBody $body, ?BatchRecordDeci } /** - * Enables reviewers to review all accessReviewInstanceDecisionItem objects in batches by using principalId, resourceId, or neither. + * Enables reviewers to review all accessReviewInstanceDecisionItem objects in batches by using principalId, resourceId, or neither. This API is supported in the following national cloud deployments. * @param BatchRecordDecisionsPostRequestBody $body The request body * @param BatchRecordDecisionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/ContactedReviewersRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/ContactedReviewersRequestBuilder.php index 5a59faa31cf..f6f235f339b 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/ContactedReviewersRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/ContactedReviewersRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the reviewers for an access review instance, irrespective of whether or not they have received a notification. The reviewers are represented by an accessReviewReviewer object. A list of zero or more objects are returned, including all of their nested properties. + * Get the reviewers for an access review instance, irrespective of whether or not they have received a notification. The reviewers are represented by an accessReviewReviewer object. A list of zero or more objects are returned, including all of their nested properties. This API is supported in the following national cloud deployments. * @param ContactedReviewersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accessreviewinstance-list-contactedreviewers?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(AccessReviewReviewer $body, ?ContactedReviewersRequestBuild } /** - * Get the reviewers for an access review instance, irrespective of whether or not they have received a notification. The reviewers are represented by an accessReviewReviewer object. A list of zero or more objects are returned, including all of their nested properties. + * Get the reviewers for an access review instance, irrespective of whether or not they have received a notification. The reviewers are represented by an accessReviewReviewer object. A list of zero or more objects are returned, including all of their nested properties. This API is supported in the following national cloud deployments. * @param ContactedReviewersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/ContactedReviewersRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/ContactedReviewersRequestBuilderGetQueryParameters.php index db2fd1ff1e7..ad638fa8b8f 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/ContactedReviewersRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/ContactedReviewersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the reviewers for an access review instance, irrespective of whether or not they have received a notification. The reviewers are represented by an accessReviewReviewer object. A list of zero or more objects are returned, including all of their nested properties. + * Get the reviewers for an access review instance, irrespective of whether or not they have received a notification. The reviewers are represented by an accessReviewReviewer object. A list of zero or more objects are returned, including all of their nested properties. This API is supported in the following national cloud deployments. */ class ContactedReviewersRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/DecisionsRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/DecisionsRequestBuilder.php index d1151480755..8bf9fb9f7a8 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/DecisionsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/DecisionsRequestBuilder.php @@ -63,7 +63,7 @@ public function filterByCurrentUserWithOn(string $on): FilterByCurrentUserWithOn } /** - * Retrieve the accessReviewInstanceDecisionItem objects for a specific accessReviewInstance. A list of zero or more accessReviewInstanceDecisionItem objects are returned, including all of their nested properties. + * Retrieve the accessReviewInstanceDecisionItem objects for a specific accessReviewInstance. A list of zero or more accessReviewInstanceDecisionItem objects are returned, including all of their nested properties. This API is supported in the following national cloud deployments. * @param DecisionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accessreviewinstance-list-decisions?view=graph-rest-1.0 Find more info here @@ -101,7 +101,7 @@ public function post(AccessReviewInstanceDecisionItem $body, ?DecisionsRequestBu } /** - * Retrieve the accessReviewInstanceDecisionItem objects for a specific accessReviewInstance. A list of zero or more accessReviewInstanceDecisionItem objects are returned, including all of their nested properties. + * Retrieve the accessReviewInstanceDecisionItem objects for a specific accessReviewInstance. A list of zero or more accessReviewInstanceDecisionItem objects are returned, including all of their nested properties. This API is supported in the following national cloud deployments. * @param DecisionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/DecisionsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/DecisionsRequestBuilderGetQueryParameters.php index 99f98d6cbf9..52f0023318b 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/DecisionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/DecisionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the accessReviewInstanceDecisionItem objects for a specific accessReviewInstance. A list of zero or more accessReviewInstanceDecisionItem objects are returned, including all of their nested properties. + * Retrieve the accessReviewInstanceDecisionItem objects for a specific accessReviewInstance. A list of zero or more accessReviewInstanceDecisionItem objects are returned, including all of their nested properties. This API is supported in the following national cloud deployments. */ class DecisionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php new file mode 100644 index 00000000000..d51ce7c272b --- /dev/null +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AccessReviewInstanceDecisionItem::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, AccessReviewInstanceDecisionItem::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/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index 2367051c2b4..7ea9345a32c 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -45,7 +45,7 @@ public function get(?FilterByCurrentUserWithOnRequestBuilderGetRequestConfigurat '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php deleted file mode 100644 index 7fd0e40ad16..00000000000 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AccessReviewInstanceDecisionItem::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, AccessReviewInstanceDecisionItem::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/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.php index f9abd961fbf..c3b736d3f65 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?AccessReviewInstanceDecisionItemItemRequestBuilderDelete } /** - * Read the properties and relationships of an accessReviewInstanceDecisionItem object. + * Read the properties and relationships of an accessReviewInstanceDecisionItem object. This API is supported in the following national cloud deployments. * @param AccessReviewInstanceDecisionItemItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accessreviewinstancedecisionitem-get?view=graph-rest-1.0 Find more info here @@ -113,7 +113,7 @@ public function toDeleteRequestInformation(?AccessReviewInstanceDecisionItemItem } /** - * Read the properties and relationships of an accessReviewInstanceDecisionItem object. + * Read the properties and relationships of an accessReviewInstanceDecisionItem object. This API is supported in the following national cloud deployments. * @param AccessReviewInstanceDecisionItemItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilderGetQueryParameters.php index 5783c232afa..dd11f14cb59 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of an accessReviewInstanceDecisionItem object. + * Read the properties and relationships of an accessReviewInstanceDecisionItem object. This API is supported in the following national cloud deployments. */ class AccessReviewInstanceDecisionItemItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ResetDecisions/ResetDecisionsRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ResetDecisions/ResetDecisionsRequestBuilder.php index 90c6b6122d8..b63d307c122 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ResetDecisions/ResetDecisionsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ResetDecisions/ResetDecisionsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Resets all accessReviewInstanceDecisionItem objects on an accessReviewInstance to notReviewed. + * Resets all accessReviewInstanceDecisionItem objects on an accessReviewInstance to notReviewed. This API is supported in the following national cloud deployments. * @param ResetDecisionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accessreviewinstance-resetdecisions?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ResetDecisionsRequestBuilderPostRequestConfiguration $requ } /** - * Resets all accessReviewInstanceDecisionItem objects on an accessReviewInstance to notReviewed. + * Resets all accessReviewInstanceDecisionItem objects on an accessReviewInstance to notReviewed. This API is supported in the following national cloud deployments. * @param ResetDecisionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/SendReminder/SendReminderRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/SendReminder/SendReminderRequestBuilder.php index 8040d07b888..d3a85c528ff 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/SendReminder/SendReminderRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/SendReminder/SendReminderRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Send a reminder to the reviewers of an active accessReviewInstance. + * Send a reminder to the reviewers of an active accessReviewInstance. This API is supported in the following national cloud deployments. * @param SendReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accessreviewinstance-sendreminder?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?SendReminderRequestBuilderPostRequestConfiguration $reques } /** - * Send a reminder to the reviewers of an active accessReviewInstance. + * Send a reminder to the reviewers of an active accessReviewInstance. This API is supported in the following national cloud deployments. * @param SendReminderRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php new file mode 100644 index 00000000000..379dd6211db --- /dev/null +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AccessReviewStage::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, AccessReviewStage::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/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index 203f02927b0..f960e4ddbc2 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -45,7 +45,7 @@ public function get(?FilterByCurrentUserWithOnRequestBuilderGetRequestConfigurat '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php deleted file mode 100644 index 473c87dedc1..00000000000 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AccessReviewStage::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, AccessReviewStage::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/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilder.php index d5b596f38b0..1234c79d708 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilder.php @@ -66,7 +66,7 @@ public function delete(?AccessReviewStageItemRequestBuilderDeleteRequestConfigur } /** - * Retrieve the properties and relationships of an accessReviewStage object. + * Retrieve the properties and relationships of an accessReviewStage object. This API is supported in the following national cloud deployments. * @param AccessReviewStageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accessreviewstage-get?view=graph-rest-1.0 Find more info here @@ -85,7 +85,7 @@ public function get(?AccessReviewStageItemRequestBuilderGetRequestConfiguration } /** - * Update the properties of an accessReviewStage object. Only the reviewers and fallbackReviewers properties can be updated. You can only add reviewers to the fallbackReviewers property but can't remove existing fallbackReviewers. To update an accessReviewStage, its status must be NotStarted, Initializing, or InProgress. + * Update the properties of an accessReviewStage object. Only the reviewers and fallbackReviewers properties can be updated. You can only add reviewers to the fallbackReviewers property but can't remove existing fallbackReviewers. To update an accessReviewStage, its status must be NotStarted, Initializing, or InProgress. This API is supported in the following national cloud deployments. * @param AccessReviewStage $body The request body * @param AccessReviewStageItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -122,7 +122,7 @@ public function toDeleteRequestInformation(?AccessReviewStageItemRequestBuilderD } /** - * Retrieve the properties and relationships of an accessReviewStage object. + * Retrieve the properties and relationships of an accessReviewStage object. This API is supported in the following national cloud deployments. * @param AccessReviewStageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -143,7 +143,7 @@ public function toGetRequestInformation(?AccessReviewStageItemRequestBuilderGetR } /** - * Update the properties of an accessReviewStage object. Only the reviewers and fallbackReviewers properties can be updated. You can only add reviewers to the fallbackReviewers property but can't remove existing fallbackReviewers. To update an accessReviewStage, its status must be NotStarted, Initializing, or InProgress. + * Update the properties of an accessReviewStage object. Only the reviewers and fallbackReviewers properties can be updated. You can only add reviewers to the fallbackReviewers property but can't remove existing fallbackReviewers. To update an accessReviewStage, its status must be NotStarted, Initializing, or InProgress. This API is supported in the following national cloud deployments. * @param AccessReviewStage $body The request body * @param AccessReviewStageItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilderGetQueryParameters.php index 48d2c97dbb1..c7e61ba37e8 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of an accessReviewStage object. + * Retrieve the properties and relationships of an accessReviewStage object. This API is supported in the following national cloud deployments. */ class AccessReviewStageItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/DecisionsRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/DecisionsRequestBuilder.php index 54597347e0d..51fc05f6905 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/DecisionsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/DecisionsRequestBuilder.php @@ -63,7 +63,7 @@ public function filterByCurrentUserWithOn(string $on): FilterByCurrentUserWithOn } /** - * Get the decisions from a stage in a multi-stage access review. The decisions in an accessReviewStage object are represented by an accessReviewInstanceDecisionItem object. + * Get the decisions from a stage in a multi-stage access review. The decisions in an accessReviewStage object are represented by an accessReviewInstanceDecisionItem object. This API is supported in the following national cloud deployments. * @param DecisionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accessreviewstage-list-decisions?view=graph-rest-1.0 Find more info here @@ -101,7 +101,7 @@ public function post(AccessReviewInstanceDecisionItem $body, ?DecisionsRequestBu } /** - * Get the decisions from a stage in a multi-stage access review. The decisions in an accessReviewStage object are represented by an accessReviewInstanceDecisionItem object. + * Get the decisions from a stage in a multi-stage access review. The decisions in an accessReviewStage object are represented by an accessReviewInstanceDecisionItem object. This API is supported in the following national cloud deployments. * @param DecisionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/DecisionsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/DecisionsRequestBuilderGetQueryParameters.php index 3d18fe4b831..2afd19e2dba 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/DecisionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/DecisionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the decisions from a stage in a multi-stage access review. The decisions in an accessReviewStage object are represented by an accessReviewInstanceDecisionItem object. + * Get the decisions from a stage in a multi-stage access review. The decisions in an accessReviewStage object are represented by an accessReviewInstanceDecisionItem object. This API is supported in the following national cloud deployments. */ class DecisionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php new file mode 100644 index 00000000000..90292f802ef --- /dev/null +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AccessReviewInstanceDecisionItem::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, AccessReviewInstanceDecisionItem::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/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index 2cf44da85e2..9b7b38341ef 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -45,7 +45,7 @@ public function get(?FilterByCurrentUserWithOnRequestBuilderGetRequestConfigurat '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php deleted file mode 100644 index 2db0918d4bb..00000000000 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AccessReviewInstanceDecisionItem::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, AccessReviewInstanceDecisionItem::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/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.php index 367e643f8b4..33b534a7ee9 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?AccessReviewInstanceDecisionItemItemRequestBuilderDelete } /** - * Read the properties and relationships of an accessReviewInstanceDecisionItem object. + * Read the properties and relationships of an accessReviewInstanceDecisionItem object. This API is supported in the following national cloud deployments. * @param AccessReviewInstanceDecisionItemItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accessreviewinstancedecisionitem-get?view=graph-rest-1.0 Find more info here @@ -77,7 +77,7 @@ public function get(?AccessReviewInstanceDecisionItemItemRequestBuilderGetReques } /** - * Update access decisions, known as accessReviewInstanceDecisionItems, for which the user is the reviewer. + * Update access decisions, known as accessReviewInstanceDecisionItems, for which the user is the reviewer. This API is supported in the following national cloud deployments. * @param AccessReviewInstanceDecisionItem $body The request body * @param AccessReviewInstanceDecisionItemItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -114,7 +114,7 @@ public function toDeleteRequestInformation(?AccessReviewInstanceDecisionItemItem } /** - * Read the properties and relationships of an accessReviewInstanceDecisionItem object. + * Read the properties and relationships of an accessReviewInstanceDecisionItem object. This API is supported in the following national cloud deployments. * @param AccessReviewInstanceDecisionItemItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -135,7 +135,7 @@ public function toGetRequestInformation(?AccessReviewInstanceDecisionItemItemReq } /** - * Update access decisions, known as accessReviewInstanceDecisionItems, for which the user is the reviewer. + * Update access decisions, known as accessReviewInstanceDecisionItems, for which the user is the reviewer. This API is supported in the following national cloud deployments. * @param AccessReviewInstanceDecisionItem $body The request body * @param AccessReviewInstanceDecisionItemItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilderGetQueryParameters.php index 6fc5bcd56a6..3a363bddf77 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of an accessReviewInstanceDecisionItem object. + * Read the properties and relationships of an accessReviewInstanceDecisionItem object. This API is supported in the following national cloud deployments. */ class AccessReviewInstanceDecisionItemItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Stop/StopRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Stop/StopRequestBuilder.php index c74363e8d31..44915f3153b 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Stop/StopRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Stop/StopRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Stop an access review stage that is inProgress. After the access review stage stops, the stage status will be Completed and the reviewers can no longer give input. If there are subsequent stages that depend on the completed stage, the next stage will be created. The accessReviewInstanceDecisionItem objects will always reflect the last decisions recorded across all stages at that given time, regardless of the status of the stages. + * Stop an access review stage that is inProgress. After the access review stage stops, the stage status will be Completed and the reviewers can no longer give input. If there are subsequent stages that depend on the completed stage, the next stage will be created. The accessReviewInstanceDecisionItem objects will always reflect the last decisions recorded across all stages at that given time, regardless of the status of the stages. This API is supported in the following national cloud deployments. * @param StopRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accessreviewstage-stop?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?StopRequestBuilderPostRequestConfiguration $requestConfigu } /** - * Stop an access review stage that is inProgress. After the access review stage stops, the stage status will be Completed and the reviewers can no longer give input. If there are subsequent stages that depend on the completed stage, the next stage will be created. The accessReviewInstanceDecisionItem objects will always reflect the last decisions recorded across all stages at that given time, regardless of the status of the stages. + * Stop an access review stage that is inProgress. After the access review stage stops, the stage status will be Completed and the reviewers can no longer give input. If there are subsequent stages that depend on the completed stage, the next stage will be created. The accessReviewInstanceDecisionItem objects will always reflect the last decisions recorded across all stages at that given time, regardless of the status of the stages. This API is supported in the following national cloud deployments. * @param StopRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/StagesRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/StagesRequestBuilder.php index cd65e2c69fc..1f06bcf5e72 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/StagesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/StagesRequestBuilder.php @@ -63,7 +63,7 @@ public function filterByCurrentUserWithOn(string $on): FilterByCurrentUserWithOn } /** - * Retrieve the stages in a multi-stage access review instance. + * Retrieve the stages in a multi-stage access review instance. This API is supported in the following national cloud deployments. * @param StagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accessreviewinstance-list-stages?view=graph-rest-1.0 Find more info here @@ -101,7 +101,7 @@ public function post(AccessReviewStage $body, ?StagesRequestBuilderPostRequestCo } /** - * Retrieve the stages in a multi-stage access review instance. + * Retrieve the stages in a multi-stage access review instance. This API is supported in the following national cloud deployments. * @param StagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/StagesRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/StagesRequestBuilderGetQueryParameters.php index c75d97785d3..b63ea23dcb2 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/StagesRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/StagesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the stages in a multi-stage access review instance. + * Retrieve the stages in a multi-stage access review instance. This API is supported in the following national cloud deployments. */ class StagesRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stop/StopRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stop/StopRequestBuilder.php index 21da3086cf5..f9103095f95 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stop/StopRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stop/StopRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Stop a currently active accessReviewInstance. After the access review instance stops, the instance status is marked as Completed, the reviewers can no longer give input, and the access review decisions are applied. Stopping an instance will not stop future instances. To prevent a recurring access review from starting future instances, update the schedule definition to change its scheduled end date. + * Stop a currently active accessReviewInstance. After the access review instance stops, the instance status is marked as Completed, the reviewers can no longer give input, and the access review decisions are applied. Stopping an instance will not stop future instances. To prevent a recurring access review from starting future instances, update the schedule definition to change its scheduled end date. This API is supported in the following national cloud deployments. * @param StopRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accessreviewinstance-stop?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?StopRequestBuilderPostRequestConfiguration $requestConfigu } /** - * Stop a currently active accessReviewInstance. After the access review instance stops, the instance status is marked as Completed, the reviewers can no longer give input, and the access review decisions are applied. Stopping an instance will not stop future instances. To prevent a recurring access review from starting future instances, update the schedule definition to change its scheduled end date. + * Stop a currently active accessReviewInstance. After the access review instance stops, the instance status is marked as Completed, the reviewers can no longer give input, and the access review decisions are applied. Stopping an instance will not stop future instances. To prevent a recurring access review from starting future instances, update the schedule definition to change its scheduled end date. This API is supported in the following national cloud deployments. * @param StopRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/HistoryDefinitionsRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/HistoryDefinitionsRequestBuilder.php index 6e3072c8a08..6966a5f5240 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/HistoryDefinitionsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/HistoryDefinitionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the accessReviewHistoryDefinition objects created in the last 30 days, including all nested properties. + * Retrieve the accessReviewHistoryDefinition objects created in the last 30 days, including all nested properties. This API is supported in the following national cloud deployments. * @param HistoryDefinitionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accessreviewset-list-historydefinitions?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?HistoryDefinitionsRequestBuilderGetRequestConfiguration $re } /** - * Create a new accessReviewHistoryDefinition object. + * Create a new accessReviewHistoryDefinition object. This API is supported in the following national cloud deployments. * @param AccessReviewHistoryDefinition $body The request body * @param HistoryDefinitionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(AccessReviewHistoryDefinition $body, ?HistoryDefinitionsReq } /** - * Retrieve the accessReviewHistoryDefinition objects created in the last 30 days, including all nested properties. + * Retrieve the accessReviewHistoryDefinition objects created in the last 30 days, including all nested properties. This API is supported in the following national cloud deployments. * @param HistoryDefinitionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?HistoryDefinitionsRequestBuilderGetRequ } /** - * Create a new accessReviewHistoryDefinition object. + * Create a new accessReviewHistoryDefinition object. This API is supported in the following national cloud deployments. * @param AccessReviewHistoryDefinition $body The request body * @param HistoryDefinitionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/HistoryDefinitionsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/HistoryDefinitionsRequestBuilderGetQueryParameters.php index c97bf233f8b..720ffa3ce93 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/HistoryDefinitionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/HistoryDefinitionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the accessReviewHistoryDefinition objects created in the last 30 days, including all nested properties. + * Retrieve the accessReviewHistoryDefinition objects created in the last 30 days, including all nested properties. This API is supported in the following national cloud deployments. */ class HistoryDefinitionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/AccessReviewHistoryDefinitionItemRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/AccessReviewHistoryDefinitionItemRequestBuilder.php index 82806f6db12..a4fad393710 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/AccessReviewHistoryDefinitionItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/AccessReviewHistoryDefinitionItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?AccessReviewHistoryDefinitionItemRequestBuilderDeleteReq } /** - * Retrieve an accessReviewHistoryDefinition object by its identifier. All the properties of the access review history definition object are returned. If the definition is 30 days or older, a 404 Not Found error is returned. + * Retrieve an accessReviewHistoryDefinition object by its identifier. All the properties of the access review history definition object are returned. If the definition is 30 days or older, a 404 Not Found error is returned. This API is supported in the following national cloud deployments. * @param AccessReviewHistoryDefinitionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accessreviewhistorydefinition-get?view=graph-rest-1.0 Find more info here @@ -113,7 +113,7 @@ public function toDeleteRequestInformation(?AccessReviewHistoryDefinitionItemReq } /** - * Retrieve an accessReviewHistoryDefinition object by its identifier. All the properties of the access review history definition object are returned. If the definition is 30 days or older, a 404 Not Found error is returned. + * Retrieve an accessReviewHistoryDefinition object by its identifier. All the properties of the access review history definition object are returned. If the definition is 30 days or older, a 404 Not Found error is returned. This API is supported in the following national cloud deployments. * @param AccessReviewHistoryDefinitionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/AccessReviewHistoryDefinitionItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/AccessReviewHistoryDefinitionItemRequestBuilderGetQueryParameters.php index 517a6c3b0cc..0ec7a234321 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/AccessReviewHistoryDefinitionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/AccessReviewHistoryDefinitionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve an accessReviewHistoryDefinition object by its identifier. All the properties of the access review history definition object are returned. If the definition is 30 days or older, a 404 Not Found error is returned. + * Retrieve an accessReviewHistoryDefinition object by its identifier. All the properties of the access review history definition object are returned. If the definition is 30 days or older, a 404 Not Found error is returned. This API is supported in the following national cloud deployments. */ class AccessReviewHistoryDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/InstancesRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/InstancesRequestBuilder.php index c3f2bde173c..001758e007a 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/InstancesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/InstancesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the instances of an access review history definition created in the last 30 days. + * Retrieve the instances of an access review history definition created in the last 30 days. This API is supported in the following national cloud deployments. * @param InstancesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accessreviewhistorydefinition-list-instances?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(AccessReviewHistoryInstance $body, ?InstancesRequestBuilder } /** - * Retrieve the instances of an access review history definition created in the last 30 days. + * Retrieve the instances of an access review history definition created in the last 30 days. This API is supported in the following national cloud deployments. * @param InstancesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/InstancesRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/InstancesRequestBuilderGetQueryParameters.php index a2b37357b6c..53a081a28c4 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/InstancesRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/InstancesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the instances of an access review history definition created in the last 30 days. + * Retrieve the instances of an access review history definition created in the last 30 days. This API is supported in the following national cloud deployments. */ class InstancesRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Item/GenerateDownloadUri/GenerateDownloadUriRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Item/GenerateDownloadUri/GenerateDownloadUriRequestBuilder.php index bf8d60d7836..ad9d87bb25b 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Item/GenerateDownloadUri/GenerateDownloadUriRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Item/GenerateDownloadUri/GenerateDownloadUriRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Generates a URI for an accessReviewHistoryInstance object the status for which is done. Each URI can be used to retrieve the instance's review history data. Each URI is valid for 24 hours and can be retrieved by fetching the downloadUri property from the accessReviewHistoryInstance object. + * Generates a URI for an accessReviewHistoryInstance object the status for which is done. Each URI can be used to retrieve the instance's review history data. Each URI is valid for 24 hours and can be retrieved by fetching the downloadUri property from the accessReviewHistoryInstance object. This API is supported in the following national cloud deployments. * @param GenerateDownloadUriRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accessreviewhistoryinstance-generatedownloaduri?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?GenerateDownloadUriRequestBuilderPostRequestConfiguration } /** - * Generates a URI for an accessReviewHistoryInstance object the status for which is done. Each URI can be used to retrieve the instance's review history data. Each URI is valid for 24 hours and can be retrieved by fetching the downloadUri property from the accessReviewHistoryInstance object. + * Generates a URI for an accessReviewHistoryInstance object the status for which is done. Each URI can be used to retrieve the instance's review history data. Each URI is valid for 24 hours and can be retrieved by fetching the downloadUri property from the accessReviewHistoryInstance object. This API is supported in the following national cloud deployments. * @param GenerateDownloadUriRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/AppConsentRequestsRequestBuilder.php b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/AppConsentRequestsRequestBuilder.php index b70d81731c4..fa19bfb7c8a 100644 --- a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/AppConsentRequestsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/AppConsentRequestsRequestBuilder.php @@ -63,7 +63,7 @@ public function filterByCurrentUserWithOn(string $on): FilterByCurrentUserWithOn } /** - * Retrieve appConsentRequest objects and their properties. + * Retrieve appConsentRequest objects and their properties. This API is supported in the following national cloud deployments. * @param AppConsentRequestsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/appconsentapprovalroute-list-appconsentrequests?view=graph-rest-1.0 Find more info here @@ -101,7 +101,7 @@ public function post(AppConsentRequest $body, ?AppConsentRequestsRequestBuilderP } /** - * Retrieve appConsentRequest objects and their properties. + * Retrieve appConsentRequest objects and their properties. This API is supported in the following national cloud deployments. * @param AppConsentRequestsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/AppConsentRequestsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/AppConsentRequestsRequestBuilderGetQueryParameters.php index aa004316772..dbe3d027b21 100644 --- a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/AppConsentRequestsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/AppConsentRequestsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve appConsentRequest objects and their properties. + * Retrieve appConsentRequest objects and their properties. This API is supported in the following national cloud deployments. */ class AppConsentRequestsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php new file mode 100644 index 00000000000..323eadbde97 --- /dev/null +++ b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AppConsentRequest::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, AppConsentRequest::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/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index 4aaf52ce931..1fa6768c1ad 100644 --- a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -45,7 +45,7 @@ public function get(?FilterByCurrentUserWithOnRequestBuilderGetRequestConfigurat '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php deleted file mode 100644 index 0f3213fd094..00000000000 --- a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AppConsentRequest::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, AppConsentRequest::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/IdentityGovernance/AppConsent/AppConsentRequests/Item/AppConsentRequestItemRequestBuilder.php b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/AppConsentRequestItemRequestBuilder.php index 439b20d2439..f35a30213c4 100644 --- a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/AppConsentRequestItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/AppConsentRequestItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?AppConsentRequestItemRequestBuilderDeleteRequestConfigur } /** - * Read the properties and relationships of an appConsentRequest object. + * Read the properties and relationships of an appConsentRequest object. This API is supported in the following national cloud deployments. * @param AppConsentRequestItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/appconsentrequest-get?view=graph-rest-1.0 Find more info here @@ -113,7 +113,7 @@ public function toDeleteRequestInformation(?AppConsentRequestItemRequestBuilderD } /** - * Read the properties and relationships of an appConsentRequest object. + * Read the properties and relationships of an appConsentRequest object. This API is supported in the following national cloud deployments. * @param AppConsentRequestItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/AppConsentRequestItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/AppConsentRequestItemRequestBuilderGetQueryParameters.php index 1ca03976a37..7ff35109e8f 100644 --- a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/AppConsentRequestItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/AppConsentRequestItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of an appConsentRequest object. + * Read the properties and relationships of an appConsentRequest object. This API is supported in the following national cloud deployments. */ class AppConsentRequestItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php new file mode 100644 index 00000000000..237f051bac5 --- /dev/null +++ b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([UserConsentRequest::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, UserConsentRequest::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/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index 052c5fd9d72..2f09c333dca 100644 --- a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -45,7 +45,7 @@ public function get(?FilterByCurrentUserWithOnRequestBuilderGetRequestConfigurat '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php deleted file mode 100644 index b7ecaa6c217..00000000000 --- a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([UserConsentRequest::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, UserConsentRequest::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/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/Item/ApprovalStageItemRequestBuilder.php b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/Item/ApprovalStageItemRequestBuilder.php index 1872e87217d..9de651ff65a 100644 --- a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/Item/ApprovalStageItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/Item/ApprovalStageItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?ApprovalStageItemRequestBuilderDeleteRequestConfiguratio } /** - * In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. + * In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. This API is supported in the following national cloud deployments. * @param ApprovalStageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/approvalstage-get?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?ApprovalStageItemRequestBuilderGetRequestConfiguration $req } /** - * In Azure AD entitlement management, approve or deny an approvalStage object in an approval. + * In Azure AD entitlement management, approve or deny an approvalStage object in an approval. This API is supported in the following national cloud deployments. * @param ApprovalStage $body The request body * @param ApprovalStageItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?ApprovalStageItemRequestBuilderDelet } /** - * In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. + * In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. This API is supported in the following national cloud deployments. * @param ApprovalStageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -127,7 +127,7 @@ public function toGetRequestInformation(?ApprovalStageItemRequestBuilderGetReque } /** - * In Azure AD entitlement management, approve or deny an approvalStage object in an approval. + * In Azure AD entitlement management, approve or deny an approvalStage object in an approval. This API is supported in the following national cloud deployments. * @param ApprovalStage $body The request body * @param ApprovalStageItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/Item/ApprovalStageItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/Item/ApprovalStageItemRequestBuilderGetQueryParameters.php index 0b8b3ad4b1d..388bfb71292 100644 --- a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/Item/ApprovalStageItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/Item/ApprovalStageItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. + * In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. This API is supported in the following national cloud deployments. */ class ApprovalStageItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/StagesRequestBuilder.php b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/StagesRequestBuilder.php index be0456d86aa..cfa0e64b84a 100644 --- a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/StagesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/StagesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + * In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. * @param StagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/approval-list-stages?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(ApprovalStage $body, ?StagesRequestBuilderPostRequestConfig } /** - * In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + * In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. * @param StagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/StagesRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/StagesRequestBuilderGetQueryParameters.php index b11043f54ce..eb3ba2146c2 100644 --- a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/StagesRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/StagesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + * In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. */ class StagesRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/UserConsentRequestItemRequestBuilder.php b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/UserConsentRequestItemRequestBuilder.php index a864a2bb850..d86f0b057de 100644 --- a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/UserConsentRequestItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/UserConsentRequestItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?UserConsentRequestItemRequestBuilderDeleteRequestConfigu } /** - * Read the properties and relationships of a userConsentRequest object. + * Read the properties and relationships of a userConsentRequest object. This API is supported in the following national cloud deployments. * @param UserConsentRequestItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/userconsentrequest-get?view=graph-rest-1.0 Find more info here @@ -113,7 +113,7 @@ public function toDeleteRequestInformation(?UserConsentRequestItemRequestBuilder } /** - * Read the properties and relationships of a userConsentRequest object. + * Read the properties and relationships of a userConsentRequest object. This API is supported in the following national cloud deployments. * @param UserConsentRequestItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/UserConsentRequestItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/UserConsentRequestItemRequestBuilderGetQueryParameters.php index 7df1b41fb7b..7ef232eb90c 100644 --- a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/UserConsentRequestItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/UserConsentRequestItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a userConsentRequest object. + * Read the properties and relationships of a userConsentRequest object. This API is supported in the following national cloud deployments. */ class UserConsentRequestItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/UserConsentRequestsRequestBuilder.php b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/UserConsentRequestsRequestBuilder.php index 4d56b6763e5..0247003d92e 100644 --- a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/UserConsentRequestsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/UserConsentRequestsRequestBuilder.php @@ -63,7 +63,7 @@ public function filterByCurrentUserWithOn(string $on): FilterByCurrentUserWithOn } /** - * Retrieve a collection of userConsentRequest objects and their properties. + * Retrieve a collection of userConsentRequest objects and their properties. This API is supported in the following national cloud deployments. * @param UserConsentRequestsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/appconsentrequest-list-userconsentrequests?view=graph-rest-1.0 Find more info here @@ -101,7 +101,7 @@ public function post(UserConsentRequest $body, ?UserConsentRequestsRequestBuilde } /** - * Retrieve a collection of userConsentRequest objects and their properties. + * Retrieve a collection of userConsentRequest objects and their properties. This API is supported in the following national cloud deployments. * @param UserConsentRequestsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/UserConsentRequestsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/UserConsentRequestsRequestBuilderGetQueryParameters.php index 061f53ee062..3b0d54f6bc2 100644 --- a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/UserConsentRequestsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/UserConsentRequestsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a collection of userConsentRequest objects and their properties. + * Retrieve a collection of userConsentRequest objects and their properties. This API is supported in the following national cloud deployments. */ class UserConsentRequestsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/AccessPackageAssignmentApprovalsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/AccessPackageAssignmentApprovalsRequestBuilder.php index d01b902662f..66cf6a53476 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/AccessPackageAssignmentApprovalsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/AccessPackageAssignmentApprovalsRequestBuilder.php @@ -63,7 +63,7 @@ public function filterByCurrentUserWithOn(string $on): FilterByCurrentUserWithOn } /** - * In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + * In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. * @param AccessPackageAssignmentApprovalsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -100,7 +100,7 @@ public function post(Approval $body, ?AccessPackageAssignmentApprovalsRequestBui } /** - * In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + * In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. * @param AccessPackageAssignmentApprovalsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/AccessPackageAssignmentApprovalsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/AccessPackageAssignmentApprovalsRequestBuilderGetQueryParameters.php index 9ae38faebff..b25d7796a46 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/AccessPackageAssignmentApprovalsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/AccessPackageAssignmentApprovalsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + * In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. */ class AccessPackageAssignmentApprovalsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php new file mode 100644 index 00000000000..2bf38901aa5 --- /dev/null +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Approval::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, Approval::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/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index fb42232e0a1..2a5683b893b 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -45,7 +45,7 @@ public function get(?FilterByCurrentUserWithOnRequestBuilderGetRequestConfigurat '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php deleted file mode 100644 index 3d433a442ac..00000000000 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Approval::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, Approval::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/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/ApprovalItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/ApprovalItemRequestBuilder.php index 8306f36be1d..dd79508b439 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/ApprovalItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/ApprovalItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?ApprovalItemRequestBuilderDeleteRequestConfiguration $re } /** - * In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + * In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. * @param ApprovalItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/approval-get?view=graph-rest-1.0 Find more info here @@ -113,7 +113,7 @@ public function toDeleteRequestInformation(?ApprovalItemRequestBuilderDeleteRequ } /** - * In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + * In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. * @param ApprovalItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/ApprovalItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/ApprovalItemRequestBuilderGetQueryParameters.php index e32127006df..a4f0ed4e369 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/ApprovalItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/ApprovalItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + * In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. */ class ApprovalItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilder.php index 6c1e5be6746..3b118dce008 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?ApprovalStageItemRequestBuilderDeleteRequestConfiguratio } /** - * In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. + * In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. This API is supported in the following national cloud deployments. * @param ApprovalStageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/approvalstage-get?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?ApprovalStageItemRequestBuilderGetRequestConfiguration $req } /** - * In Azure AD entitlement management, approve or deny an approvalStage object in an approval. + * In Azure AD entitlement management, approve or deny an approvalStage object in an approval. This API is supported in the following national cloud deployments. * @param ApprovalStage $body The request body * @param ApprovalStageItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?ApprovalStageItemRequestBuilderDelet } /** - * In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. + * In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. This API is supported in the following national cloud deployments. * @param ApprovalStageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -127,7 +127,7 @@ public function toGetRequestInformation(?ApprovalStageItemRequestBuilderGetReque } /** - * In Azure AD entitlement management, approve or deny an approvalStage object in an approval. + * In Azure AD entitlement management, approve or deny an approvalStage object in an approval. This API is supported in the following national cloud deployments. * @param ApprovalStage $body The request body * @param ApprovalStageItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilderGetQueryParameters.php index 92d590477d3..7c30dbe0b09 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. + * In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. This API is supported in the following national cloud deployments. */ class ApprovalStageItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/StagesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/StagesRequestBuilder.php index 21db7cefc8e..46e45bff911 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/StagesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/StagesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + * In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. * @param StagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/approval-list-stages?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(ApprovalStage $body, ?StagesRequestBuilderPostRequestConfig } /** - * In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + * In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. * @param StagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/StagesRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/StagesRequestBuilderGetQueryParameters.php index 8dd1b299caa..c875133383f 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/StagesRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/StagesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + * In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. */ class StagesRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/AccessPackagesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/AccessPackagesRequestBuilder.php index 9e471d6925d..3e8f3624022 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/AccessPackagesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/AccessPackagesRequestBuilder.php @@ -63,7 +63,7 @@ public function filterByCurrentUserWithOn(string $on): FilterByCurrentUserWithOn } /** - * Retrieve a list of accessPackage objects. The resulting list includes all the access packages that the caller has access to read, across all catalogs. + * Retrieve a list of accessPackage objects. The resulting list includes all the access packages that the caller has access to read, across all catalogs. This API is supported in the following national cloud deployments. * @param AccessPackagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/entitlementmanagement-list-accesspackages?view=graph-rest-1.0 Find more info here @@ -82,7 +82,7 @@ public function get(?AccessPackagesRequestBuilderGetRequestConfiguration $reques } /** - * Create a new accessPackage object. The access package will be added to an existing accessPackageCatalog. + * Create a new accessPackage object. The access package will be added to an existing accessPackageCatalog. This API is supported in the following national cloud deployments. * @param AccessPackage $body The request body * @param AccessPackagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -102,7 +102,7 @@ public function post(AccessPackage $body, ?AccessPackagesRequestBuilderPostReque } /** - * Retrieve a list of accessPackage objects. The resulting list includes all the access packages that the caller has access to read, across all catalogs. + * Retrieve a list of accessPackage objects. The resulting list includes all the access packages that the caller has access to read, across all catalogs. This API is supported in the following national cloud deployments. * @param AccessPackagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -123,7 +123,7 @@ public function toGetRequestInformation(?AccessPackagesRequestBuilderGetRequestC } /** - * Create a new accessPackage object. The access package will be added to an existing accessPackageCatalog. + * Create a new accessPackage object. The access package will be added to an existing accessPackageCatalog. This API is supported in the following national cloud deployments. * @param AccessPackage $body The request body * @param AccessPackagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/AccessPackagesRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/AccessPackagesRequestBuilderGetQueryParameters.php index a11f766ecb4..7b831120ee2 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/AccessPackagesRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/AccessPackagesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of accessPackage objects. The resulting list includes all the access packages that the caller has access to read, across all catalogs. + * Retrieve a list of accessPackage objects. The resulting list includes all the access packages that the caller has access to read, across all catalogs. This API is supported in the following national cloud deployments. */ class AccessPackagesRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php new file mode 100644 index 00000000000..6e1946317f5 --- /dev/null +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AccessPackage::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, AccessPackage::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/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index 3c539444a8e..eda82db8fa7 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -45,7 +45,7 @@ public function get(?FilterByCurrentUserWithOnRequestBuilderGetRequestConfigurat '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php deleted file mode 100644 index 911f208213e..00000000000 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AccessPackage::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, AccessPackage::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/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.php index ba6a81fce77..12eb0b24640 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.php @@ -88,7 +88,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an accessPackage object. You cannot delete an access package if it has any accessPackageAssignment. + * Delete an accessPackage object. You cannot delete an access package if it has any accessPackageAssignment. This API is supported in the following national cloud deployments. * @param AccessPackageItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accesspackage-delete?view=graph-rest-1.0 Find more info here @@ -107,7 +107,7 @@ public function delete(?AccessPackageItemRequestBuilderDeleteRequestConfiguratio } /** - * Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. + * Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. This API is supported in the following national cloud deployments. * @param AccessPackageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accesspackage-list-resourcerolescopes?view=graph-rest-1.0 Find more info here @@ -126,7 +126,7 @@ public function get(?AccessPackageItemRequestBuilderGetRequestConfiguration $req } /** - * Update an existing accessPackage object to change one or more of its properties, such as the display name or description. + * Update an existing accessPackage object to change one or more of its properties, such as the display name or description. This API is supported in the following national cloud deployments. * @param AccessPackage $body The request body * @param AccessPackageItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -146,7 +146,7 @@ public function patch(AccessPackage $body, ?AccessPackageItemRequestBuilderPatch } /** - * Delete an accessPackage object. You cannot delete an access package if it has any accessPackageAssignment. + * Delete an accessPackage object. You cannot delete an access package if it has any accessPackageAssignment. This API is supported in the following national cloud deployments. * @param AccessPackageItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -163,7 +163,7 @@ public function toDeleteRequestInformation(?AccessPackageItemRequestBuilderDelet } /** - * Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. + * Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. This API is supported in the following national cloud deployments. * @param AccessPackageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -184,7 +184,7 @@ public function toGetRequestInformation(?AccessPackageItemRequestBuilderGetReque } /** - * Update an existing accessPackage object to change one or more of its properties, such as the display name or description. + * Update an existing accessPackage object to change one or more of its properties, such as the display name or description. This API is supported in the following national cloud deployments. * @param AccessPackage $body The request body * @param AccessPackageItemRequestBuilderPatchRequestConfiguration|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/AccessPackageItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilderGetQueryParameters.php index 95e920d4be4..dab420eb748 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. + * Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. This API is supported in the following national cloud deployments. */ class AccessPackageItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilder.php index 86c47b887e9..7a4ff5dcf8f 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of the accessPackage objects that have marked a specified accessPackage as incompatible. + * Retrieve a list of the accessPackage objects that have marked a specified accessPackage as incompatible. This API is supported in the following national cloud deployments. * @param AccessPackagesIncompatibleWithRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accesspackage-list-accesspackagesincompatiblewith?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?AccessPackagesIncompatibleWithRequestBuilderGetRequestConfi } /** - * Retrieve a list of the accessPackage objects that have marked a specified accessPackage as incompatible. + * Retrieve a list of the accessPackage objects that have marked a specified accessPackage as incompatible. This API is supported in the following national cloud deployments. * @param AccessPackagesIncompatibleWithRequestBuilderGetRequestConfiguration|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/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilderGetQueryParameters.php index d58dd916e2d..9f61d264d3a 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of the accessPackage objects that have marked a specified accessPackage as incompatible. + * Retrieve a list of the accessPackage objects that have marked a specified accessPackage as incompatible. This API is supported in the following national cloud deployments. */ class AccessPackagesIncompatibleWithRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsPostResponse.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsPostResponse.php new file mode 100644 index 00000000000..f0a87949813 --- /dev/null +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AccessPackageAssignmentRequestRequirements::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, AccessPackageAssignmentRequestRequirements::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/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsRequestBuilder.php index e6c77a20d87..0a8d7a4ebf3 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * In Azure AD entitlement management, this action retrieves a list of accessPackageAssignmentRequestRequirements objects that the currently signed-in user can use to create an accessPackageAssignmentRequest. Each requirement object corresponds to an access package assignment policy that the currently signed-in user is allowed to request an assignment for. + * In Azure AD entitlement management, this action retrieves a list of accessPackageAssignmentRequestRequirements objects that the currently signed-in user can use to create an accessPackageAssignmentRequest. Each requirement object corresponds to an access package assignment policy that the currently signed-in user is allowed to request an assignment for. This API is supported in the following national cloud deployments. * @param GetApplicablePolicyRequirementsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accesspackage-getapplicablepolicyrequirements?view=graph-rest-1.0 Find more info here @@ -43,14 +43,14 @@ public function post(?GetApplicablePolicyRequirementsRequestBuilderPostRequestCo '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetApplicablePolicyRequirementsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetApplicablePolicyRequirementsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * In Azure AD entitlement management, this action retrieves a list of accessPackageAssignmentRequestRequirements objects that the currently signed-in user can use to create an accessPackageAssignmentRequest. Each requirement object corresponds to an access package assignment policy that the currently signed-in user is allowed to request an assignment for. + * In Azure AD entitlement management, this action retrieves a list of accessPackageAssignmentRequestRequirements objects that the currently signed-in user can use to create an accessPackageAssignmentRequest. Each requirement object corresponds to an access package assignment policy that the currently signed-in user is allowed to request an assignment for. This API is supported in the following national cloud deployments. * @param GetApplicablePolicyRequirementsRequestBuilderPostRequestConfiguration|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/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsResponse.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsResponse.php deleted file mode 100644 index b27d499bef0..00000000000 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AccessPackageAssignmentRequestRequirements::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, AccessPackageAssignmentRequestRequirements::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/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilder.php index 40cd907141a..e601bc4fda7 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilder.php @@ -60,7 +60,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. + * Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. * @param IncompatibleAccessPackagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accesspackage-list-incompatibleaccesspackages?view=graph-rest-1.0 Find more info here @@ -79,7 +79,7 @@ public function get(?IncompatibleAccessPackagesRequestBuilderGetRequestConfigura } /** - * Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. + * Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. * @param IncompatibleAccessPackagesRequestBuilderGetRequestConfiguration|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/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilderGetQueryParameters.php index 9b8e41d6cf5..392b4db7819 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. + * Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. */ class IncompatibleAccessPackagesRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Item/Ref/RefRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Item/Ref/RefRequestBuilder.php index 94d2ed07f19..0020f566982 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Item/Ref/RefRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. + * Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accesspackage-delete-incompatibleaccesspackage?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function delete(?RefRequestBuilderDeleteRequestConfiguration $requestConf } /** - * Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. + * Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|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/IncompatibleAccessPackages/Item/Ref/RefRequestBuilderDeleteQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Item/Ref/RefRequestBuilderDeleteQueryParameters.php index dc90625416a..953fee19826 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Item/Ref/RefRequestBuilderDeleteQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Item/Ref/RefRequestBuilderDeleteQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. + * Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. */ class RefRequestBuilderDeleteQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.php index 98796377cbd..189c6fc8bd8 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.php @@ -33,7 +33,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. + * Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accesspackage-list-incompatibleaccesspackages?view=graph-rest-1.0 Find more info here @@ -52,7 +52,7 @@ public function get(?RefRequestBuilderGetRequestConfiguration $requestConfigurat } /** - * Add an accessPackage to the list of access packages that have been marked as incompatible on an accessPackage. + * Add an accessPackage to the list of access packages that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -72,7 +72,7 @@ public function post(ReferenceCreate $body, ?RefRequestBuilderPostRequestConfigu } /** - * Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. + * Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -93,7 +93,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } /** - * Add an accessPackage to the list of access packages that have been marked as incompatible on an accessPackage. + * Add an accessPackage to the list of access packages that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|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/IncompatibleAccessPackages/Ref/RefRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilderGetQueryParameters.php index 48a9b42cdee..f2b2d0ccace 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. + * Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. */ class RefRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilder.php index e5e65822978..1118f29e882 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilder.php @@ -60,7 +60,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. + * Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. * @param IncompatibleGroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accesspackage-list-incompatiblegroups?view=graph-rest-1.0 Find more info here @@ -79,7 +79,7 @@ public function get(?IncompatibleGroupsRequestBuilderGetRequestConfiguration $re } /** - * Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. + * Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. * @param IncompatibleGroupsRequestBuilderGetRequestConfiguration|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/IncompatibleGroups/IncompatibleGroupsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilderGetQueryParameters.php index 40c87315a65..e79e0b68945 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. + * Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. */ class IncompatibleGroupsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/GroupItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/GroupItemRequestBuilder.php index 49bbf258323..ade75d065bd 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/GroupItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/GroupItemRequestBuilder.php @@ -3,6 +3,7 @@ namespace Microsoft\Graph\Generated\IdentityGovernance\EntitlementManagement\AccessPackages\Item\IncompatibleGroups\Item; use Microsoft\Graph\Generated\IdentityGovernance\EntitlementManagement\AccessPackages\Item\IncompatibleGroups\Item\Ref\RefRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\EntitlementManagement\AccessPackages\Item\IncompatibleGroups\Item\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; use Microsoft\Kiota\Abstractions\RequestAdapter; @@ -18,6 +19,13 @@ public function ref(): RefRequestBuilder { return new RefRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new GroupItemRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/Ref/RefRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/Ref/RefRequestBuilder.php index e7bfc94bd14..ab7e78c18af 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/Ref/RefRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove a group from the list of groups that have been marked as incompatible on an accessPackage. + * Remove a group from the list of groups that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accesspackage-delete-incompatiblegroup?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function delete(?RefRequestBuilderDeleteRequestConfiguration $requestConf } /** - * Remove a group from the list of groups that have been marked as incompatible on an accessPackage. + * Remove a group from the list of groups that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|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/IncompatibleGroups/Item/Ref/RefRequestBuilderDeleteQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/Ref/RefRequestBuilderDeleteQueryParameters.php index b90b1664374..9cdd194b70d 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/Ref/RefRequestBuilderDeleteQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/Ref/RefRequestBuilderDeleteQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Remove a group from the list of groups that have been marked as incompatible on an accessPackage. + * Remove a group from the list of groups that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. */ class RefRequestBuilderDeleteQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..c1b3f28d0e3 --- /dev/null +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/{group%2Did}/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..06619488864 --- /dev/null +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..21b5fa255d2 --- /dev/null +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/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/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..31abe708954 --- /dev/null +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/{group%2Did}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..91b1dc030d5 --- /dev/null +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..a302e88b6aa --- /dev/null +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.php index 3bd9129e910..d4600fd9f5b 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.php @@ -33,7 +33,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. + * Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accesspackage-list-incompatiblegroups?view=graph-rest-1.0 Find more info here @@ -52,7 +52,7 @@ public function get(?RefRequestBuilderGetRequestConfiguration $requestConfigurat } /** - * Add a group to the list of groups that have been marked as incompatible on an accessPackage. + * Add a group to the list of groups that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -72,7 +72,7 @@ public function post(ReferenceCreate $body, ?RefRequestBuilderPostRequestConfigu } /** - * Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. + * Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -93,7 +93,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } /** - * Add a group to the list of groups that have been marked as incompatible on an accessPackage. + * Add a group to the list of groups that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|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/IncompatibleGroups/Ref/RefRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilderGetQueryParameters.php index f61cf8d9fb6..2a1cb83b815 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. + * Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. */ class RefRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/AccessPackageResourceRoleScopeItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/AccessPackageResourceRoleScopeItemRequestBuilder.php index 718c57213fb..fea1073e932 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/AccessPackageResourceRoleScopeItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/AccessPackageResourceRoleScopeItemRequestBuilder.php @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove a accessPackageResourceRoleScope from an accessPackage list of resource role scopes. + * Remove a accessPackageResourceRoleScope from an accessPackage list of resource role scopes. This API is supported in the following national cloud deployments. * @param AccessPackageResourceRoleScopeItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accesspackage-delete-resourcerolescopes?view=graph-rest-1.0 Find more info here @@ -104,7 +104,7 @@ public function patch(AccessPackageResourceRoleScope $body, ?AccessPackageResour } /** - * Remove a accessPackageResourceRoleScope from an accessPackage list of resource role scopes. + * Remove a accessPackageResourceRoleScope from an accessPackage list of resource role scopes. This API is supported in the following national cloud deployments. * @param AccessPackageResourceRoleScopeItemRequestBuilderDeleteRequestConfiguration|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/ResourceRoleScopes/ResourceRoleScopesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/ResourceRoleScopesRequestBuilder.php index d41af1c0f66..86ce0f6b5a8 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/ResourceRoleScopesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/ResourceRoleScopesRequestBuilder.php @@ -71,7 +71,7 @@ public function get(?ResourceRoleScopesRequestBuilderGetRequestConfiguration $re } /** - * Create a new accessPackageResourceRoleScope for adding a resource role to an access package. The access package resource, for a group, an app, or a SharePoint Online site, must already exist in the access package catalog, and the originId for the resource role retrieved from the list of the resource roles. Once you add the resource role scope to the access package, the user will receive this resource role through any current and future access package assignments. + * Create a new accessPackageResourceRoleScope for adding a resource role to an access package. The access package resource, for a group, an app, or a SharePoint Online site, must already exist in the access package catalog, and the originId for the resource role retrieved from the list of the resource roles. Once you add the resource role scope to the access package, the user will receive this resource role through any current and future access package assignments. This API is supported in the following national cloud deployments. * @param AccessPackageResourceRoleScope $body The request body * @param ResourceRoleScopesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -112,7 +112,7 @@ public function toGetRequestInformation(?ResourceRoleScopesRequestBuilderGetRequ } /** - * Create a new accessPackageResourceRoleScope for adding a resource role to an access package. The access package resource, for a group, an app, or a SharePoint Online site, must already exist in the access package catalog, and the originId for the resource role retrieved from the list of the resource roles. Once you add the resource role scope to the access package, the user will receive this resource role through any current and future access package assignments. + * Create a new accessPackageResourceRoleScope for adding a resource role to an access package. The access package resource, for a group, an app, or a SharePoint Online site, must already exist in the access package catalog, and the originId for the resource role retrieved from the list of the resource roles. Once you add the resource role scope to the access package, the user will receive this resource role through any current and future access package assignments. This API is supported in the following national cloud deployments. * @param AccessPackageResourceRoleScope $body The request body * @param ResourceRoleScopesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/AssignmentPoliciesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/AssignmentPoliciesRequestBuilder.php index e3e559828af..bf6438fb95f 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/AssignmentPoliciesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/AssignmentPoliciesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * In Azure AD entitlement management, retrieve a list of accessPackageAssignmentPolicy objects. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=accessPackageAssignmentPolicies as a query parameter. + * In Azure AD entitlement management, retrieve a list of accessPackageAssignmentPolicy objects. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=accessPackageAssignmentPolicies as a query parameter. This API is supported in the following national cloud deployments. * @param AssignmentPoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/entitlementmanagement-list-assignmentpolicies?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?AssignmentPoliciesRequestBuilderGetRequestConfiguration $re } /** - * In Azure AD entitlement management, create a new accessPackageAssignmentPolicy object. The request will include a reference to the accessPackage that will contain this policy, which must already exist. + * In Azure AD entitlement management, create a new accessPackageAssignmentPolicy object. The request will include a reference to the accessPackage that will contain this policy, which must already exist. This API is supported in the following national cloud deployments. * @param AccessPackageAssignmentPolicy $body The request body * @param AssignmentPoliciesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(AccessPackageAssignmentPolicy $body, ?AssignmentPoliciesReq } /** - * In Azure AD entitlement management, retrieve a list of accessPackageAssignmentPolicy objects. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=accessPackageAssignmentPolicies as a query parameter. + * In Azure AD entitlement management, retrieve a list of accessPackageAssignmentPolicy objects. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=accessPackageAssignmentPolicies as a query parameter. This API is supported in the following national cloud deployments. * @param AssignmentPoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?AssignmentPoliciesRequestBuilderGetRequ } /** - * In Azure AD entitlement management, create a new accessPackageAssignmentPolicy object. The request will include a reference to the accessPackage that will contain this policy, which must already exist. + * In Azure AD entitlement management, create a new accessPackageAssignmentPolicy object. The request will include a reference to the accessPackage that will contain this policy, which must already exist. This API is supported in the following national cloud deployments. * @param AccessPackageAssignmentPolicy $body The request body * @param AssignmentPoliciesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/AssignmentPoliciesRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/AssignmentPoliciesRequestBuilderGetQueryParameters.php index 7167572d302..3887d1b8567 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/AssignmentPoliciesRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/AssignmentPoliciesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * In Azure AD entitlement management, retrieve a list of accessPackageAssignmentPolicy objects. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=accessPackageAssignmentPolicies as a query parameter. + * In Azure AD entitlement management, retrieve a list of accessPackageAssignmentPolicy objects. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=accessPackageAssignmentPolicies as a query parameter. This API is supported in the following national cloud deployments. */ class AssignmentPoliciesRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilder.php index 8b2ba0bdb95..b9c6bdd3f3a 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilder.php @@ -64,7 +64,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * In Azure AD entitlement management, delete an accessPackageAssignmentPolicy. + * In Azure AD entitlement management, delete an accessPackageAssignmentPolicy. This API is supported in the following national cloud deployments. * @param AccessPackageAssignmentPolicyItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accesspackageassignmentpolicy-delete?view=graph-rest-1.0 Find more info here @@ -83,7 +83,7 @@ public function delete(?AccessPackageAssignmentPolicyItemRequestBuilderDeleteReq } /** - * In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. + * In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. This API is supported in the following national cloud deployments. * @param AccessPackageAssignmentPolicyItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accesspackageassignmentpolicy-get?view=graph-rest-1.0 Find more info here @@ -121,7 +121,7 @@ public function put(AccessPackageAssignmentPolicy $body, ?AccessPackageAssignmen } /** - * In Azure AD entitlement management, delete an accessPackageAssignmentPolicy. + * In Azure AD entitlement management, delete an accessPackageAssignmentPolicy. This API is supported in the following national cloud deployments. * @param AccessPackageAssignmentPolicyItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -138,7 +138,7 @@ public function toDeleteRequestInformation(?AccessPackageAssignmentPolicyItemReq } /** - * In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. + * In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. This API is supported in the following national cloud deployments. * @param AccessPackageAssignmentPolicyItemRequestBuilderGetRequestConfiguration|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/AccessPackageAssignmentPolicyItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilderGetQueryParameters.php index b19ed01418d..d5b3cefee3f 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. + * In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. This API is supported in the following national cloud deployments. */ class AccessPackageAssignmentPolicyItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/AssignmentRequestsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/AssignmentRequestsRequestBuilder.php index 1ad666386e3..a9a037f35fb 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/AssignmentRequestsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/AssignmentRequestsRequestBuilder.php @@ -63,7 +63,7 @@ public function filterByCurrentUserWithOn(string $on): FilterByCurrentUserWithOn } /** - * In Azure AD entitlement management, retrieve a list of accessPackageAssignmentRequest objects. The resulting list includes all the assignment requests, current and well as expired, that the caller has access to read, across all catalogs and access packages. + * In Azure AD entitlement management, retrieve a list of accessPackageAssignmentRequest objects. The resulting list includes all the assignment requests, current and well as expired, that the caller has access to read, across all catalogs and access packages. This API is supported in the following national cloud deployments. * @param AssignmentRequestsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/entitlementmanagement-list-assignmentrequests?view=graph-rest-1.0 Find more info here @@ -82,7 +82,7 @@ public function get(?AssignmentRequestsRequestBuilderGetRequestConfiguration $re } /** - * In Azure AD Entitlement Management, create a new accessPackageAssignmentRequest object. This operation is used to assign a user to an access package, update the assignment, or to remove an access package assignment. + * In Azure AD Entitlement Management, create a new accessPackageAssignmentRequest object. This operation is used to assign a user to an access package, update the assignment, or to remove an access package assignment. This API is supported in the following national cloud deployments. * @param AccessPackageAssignmentRequest $body The request body * @param AssignmentRequestsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -102,7 +102,7 @@ public function post(AccessPackageAssignmentRequest $body, ?AssignmentRequestsRe } /** - * In Azure AD entitlement management, retrieve a list of accessPackageAssignmentRequest objects. The resulting list includes all the assignment requests, current and well as expired, that the caller has access to read, across all catalogs and access packages. + * In Azure AD entitlement management, retrieve a list of accessPackageAssignmentRequest objects. The resulting list includes all the assignment requests, current and well as expired, that the caller has access to read, across all catalogs and access packages. This API is supported in the following national cloud deployments. * @param AssignmentRequestsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -123,7 +123,7 @@ public function toGetRequestInformation(?AssignmentRequestsRequestBuilderGetRequ } /** - * In Azure AD Entitlement Management, create a new accessPackageAssignmentRequest object. This operation is used to assign a user to an access package, update the assignment, or to remove an access package assignment. + * In Azure AD Entitlement Management, create a new accessPackageAssignmentRequest object. This operation is used to assign a user to an access package, update the assignment, or to remove an access package assignment. This API is supported in the following national cloud deployments. * @param AccessPackageAssignmentRequest $body The request body * @param AssignmentRequestsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/AssignmentRequestsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/AssignmentRequestsRequestBuilderGetQueryParameters.php index 8b504de621e..a09124ee6fb 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/AssignmentRequestsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/AssignmentRequestsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * In Azure AD entitlement management, retrieve a list of accessPackageAssignmentRequest objects. The resulting list includes all the assignment requests, current and well as expired, that the caller has access to read, across all catalogs and access packages. + * In Azure AD entitlement management, retrieve a list of accessPackageAssignmentRequest objects. The resulting list includes all the assignment requests, current and well as expired, that the caller has access to read, across all catalogs and access packages. This API is supported in the following national cloud deployments. */ class AssignmentRequestsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php new file mode 100644 index 00000000000..e61901d3ff4 --- /dev/null +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AccessPackageAssignmentRequest::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, AccessPackageAssignmentRequest::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/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index 17813146678..f4f25742278 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -45,7 +45,7 @@ public function get(?FilterByCurrentUserWithOnRequestBuilderGetRequestConfigurat '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php deleted file mode 100644 index b0248a8c528..00000000000 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AccessPackageAssignmentRequest::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, AccessPackageAssignmentRequest::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/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignmentRequestItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignmentRequestItemRequestBuilder.php index 6685306cdb2..dd3eafcc548 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignmentRequestItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignmentRequestItemRequestBuilder.php @@ -80,7 +80,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an accessPackageAssignmentRequest object. This request can be made to remove a denied or completed request. You cannot delete an access package assignment request if it has any accessPackageAssignment objects. + * Delete an accessPackageAssignmentRequest object. This request can be made to remove a denied or completed request. You cannot delete an access package assignment request if it has any accessPackageAssignment objects. This API is supported in the following national cloud deployments. * @param AccessPackageAssignmentRequestItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accesspackageassignmentrequest-delete?view=graph-rest-1.0 Find more info here @@ -99,7 +99,7 @@ public function delete(?AccessPackageAssignmentRequestItemRequestBuilderDeleteRe } /** - * In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. + * In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. This API is supported in the following national cloud deployments. * @param AccessPackageAssignmentRequestItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accesspackageassignmentrequest-get?view=graph-rest-1.0 Find more info here @@ -137,7 +137,7 @@ public function patch(AccessPackageAssignmentRequest $body, ?AccessPackageAssign } /** - * Delete an accessPackageAssignmentRequest object. This request can be made to remove a denied or completed request. You cannot delete an access package assignment request if it has any accessPackageAssignment objects. + * Delete an accessPackageAssignmentRequest object. This request can be made to remove a denied or completed request. You cannot delete an access package assignment request if it has any accessPackageAssignment objects. This API is supported in the following national cloud deployments. * @param AccessPackageAssignmentRequestItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -154,7 +154,7 @@ public function toDeleteRequestInformation(?AccessPackageAssignmentRequestItemRe } /** - * In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. + * In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. This API is supported in the following national cloud deployments. * @param AccessPackageAssignmentRequestItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignmentRequestItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignmentRequestItemRequestBuilderGetQueryParameters.php index 39293f74bd4..0a896d9772d 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignmentRequestItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignmentRequestItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. + * In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. This API is supported in the following national cloud deployments. */ class AccessPackageAssignmentRequestItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Cancel/CancelRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Cancel/CancelRequestBuilder.php index 31548cc5175..513ab76b043 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Cancel/CancelRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * In Azure AD Entitlement Management, cancel accessPackageAssignmentRequest objects that are in a cancellable state: accepted, pendingApproval, pendingNotBefore, pendingApprovalEscalated. + * In Azure AD Entitlement Management, cancel accessPackageAssignmentRequest objects that are in a cancellable state: accepted, pendingApproval, pendingNotBefore, pendingApprovalEscalated. This API is supported in the following national cloud deployments. * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accesspackageassignmentrequest-cancel?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?CancelRequestBuilderPostRequestConfiguration $requestConfi } /** - * In Azure AD Entitlement Management, cancel accessPackageAssignmentRequest objects that are in a cancellable state: accepted, pendingApproval, pendingNotBefore, pendingApprovalEscalated. + * In Azure AD Entitlement Management, cancel accessPackageAssignmentRequest objects that are in a cancellable state: accepted, pendingApproval, pendingNotBefore, pendingApprovalEscalated. This API is supported in the following national cloud deployments. * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Reprocess/ReprocessRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Reprocess/ReprocessRequestBuilder.php index 15c849bab99..7bc04e17d67 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Reprocess/ReprocessRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Reprocess/ReprocessRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * In Azure AD entitlement management, callers can automatically retry a user's request for access to an access package. It is performed on an accessPackageAssignmentRequest object whose requestState is in a DeliveryFailed or PartiallyDelivered state. You can only reprocess a request within 14 days from the time the original request was completed. For requests completed more than 14 days, you will need to ask the users to cancel the request(s) and make a new request in the MyAccess portal. + * In Azure AD entitlement management, callers can automatically retry a user's request for access to an access package. It's performed on an accessPackageAssignmentRequest object whose requestState is in a DeliveryFailed or PartiallyDelivered state. You can only reprocess a request within 14 days from the time the original request was completed. For requests completed more than 14 days, you will need to ask the users to cancel the request(s) and make a new request in the MyAccess portal. This API is supported in the following national cloud deployments. * @param ReprocessRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accesspackageassignmentrequest-reprocess?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ReprocessRequestBuilderPostRequestConfiguration $requestCo } /** - * In Azure AD entitlement management, callers can automatically retry a user's request for access to an access package. It is performed on an accessPackageAssignmentRequest object whose requestState is in a DeliveryFailed or PartiallyDelivered state. You can only reprocess a request within 14 days from the time the original request was completed. For requests completed more than 14 days, you will need to ask the users to cancel the request(s) and make a new request in the MyAccess portal. + * In Azure AD entitlement management, callers can automatically retry a user's request for access to an access package. It's performed on an accessPackageAssignmentRequest object whose requestState is in a DeliveryFailed or PartiallyDelivered state. You can only reprocess a request within 14 days from the time the original request was completed. For requests completed more than 14 days, you will need to ask the users to cancel the request(s) and make a new request in the MyAccess portal. This API is supported in the following national cloud deployments. * @param ReprocessRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumeRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumeRequestBuilder.php index 6581800559a..2bec546ff62 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumeRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumeRequestBuilder.php @@ -31,10 +31,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Invoke action resume + * In Azure AD entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It is performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param ResumeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise + * @link https://learn.microsoft.com/graph/api/accesspackageassignmentrequest-resume?view=graph-rest-1.0 Find more info here */ public function post(ResumePostRequestBody $body, ?ResumeRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -50,7 +51,7 @@ public function post(ResumePostRequestBody $body, ?ResumeRequestBuilderPostReque } /** - * Invoke action resume + * In Azure AD entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It is performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param ResumeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessGetResponse.php b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessGetResponse.php new file mode 100644 index 00000000000..c450e781760 --- /dev/null +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AccessPackageAssignment::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, AccessPackageAssignment::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/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessRequestBuilder.php index 5f194da28a0..6913c47626e 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?AdditionalAccessRequestBuilderGetRequestConfiguration $requ '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [AdditionalAccessResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [AdditionalAccessGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessResponse.php b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessResponse.php deleted file mode 100644 index 5c9cc853c28..00000000000 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AccessPackageAssignment::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, AccessPackageAssignment::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/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse.php b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse.php new file mode 100644 index 00000000000..b30eaaceb40 --- /dev/null +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AccessPackageAssignment::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, AccessPackageAssignment::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/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder.php index ad1dd50ba6d..4559c90154c 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder.php @@ -47,7 +47,7 @@ public function get(?AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPa '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse.php b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse.php deleted file mode 100644 index 97a3f46b2be..00000000000 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AccessPackageAssignment::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, AccessPackageAssignment::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/IdentityGovernance/EntitlementManagement/Assignments/AssignmentsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AssignmentsRequestBuilder.php index 06cacec79fe..72dc06b591a 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AssignmentsRequestBuilder.php @@ -82,7 +82,7 @@ public function filterByCurrentUserWithOn(string $on): FilterByCurrentUserWithOn } /** - * In Azure AD entitlement management, retrieve a list of accessPackageAssignment objects. For directory-wide administrators, the resulting list includes all the assignments, current and well as expired, that the caller has access to read, across all catalogs and access packages. If the caller is on behalf of a delegated user who is assigned only to catalog-specific delegated administrative roles, the request must supply a filter to indicate a specific access package, such as: $filter=accessPackage/id eq 'a914b616-e04e-476b-aa37-91038f0b165b'. + * In Azure AD entitlement management, retrieve a list of accessPackageAssignment objects. For directory-wide administrators, the resulting list includes all the assignments, current and well as expired, that the caller has access to read, across all catalogs and access packages. If the caller is on behalf of a delegated user who is assigned only to catalog-specific delegated administrative roles, the request must supply a filter to indicate a specific access package, such as: $filter=accessPackage/id eq 'a914b616-e04e-476b-aa37-91038f0b165b'. This API is supported in the following national cloud deployments. * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/entitlementmanagement-list-assignments?view=graph-rest-1.0 Find more info here @@ -120,7 +120,7 @@ public function post(AccessPackageAssignment $body, ?AssignmentsRequestBuilderPo } /** - * In Azure AD entitlement management, retrieve a list of accessPackageAssignment objects. For directory-wide administrators, the resulting list includes all the assignments, current and well as expired, that the caller has access to read, across all catalogs and access packages. If the caller is on behalf of a delegated user who is assigned only to catalog-specific delegated administrative roles, the request must supply a filter to indicate a specific access package, such as: $filter=accessPackage/id eq 'a914b616-e04e-476b-aa37-91038f0b165b'. + * In Azure AD entitlement management, retrieve a list of accessPackageAssignment objects. For directory-wide administrators, the resulting list includes all the assignments, current and well as expired, that the caller has access to read, across all catalogs and access packages. If the caller is on behalf of a delegated user who is assigned only to catalog-specific delegated administrative roles, the request must supply a filter to indicate a specific access package, such as: $filter=accessPackage/id eq 'a914b616-e04e-476b-aa37-91038f0b165b'. This API is supported in the following national cloud deployments. * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AssignmentsRequestBuilderGetQueryParameters.php index ee5c0d800bd..5fc8f1e2465 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AssignmentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AssignmentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * In Azure AD entitlement management, retrieve a list of accessPackageAssignment objects. For directory-wide administrators, the resulting list includes all the assignments, current and well as expired, that the caller has access to read, across all catalogs and access packages. If the caller is on behalf of a delegated user who is assigned only to catalog-specific delegated administrative roles, the request must supply a filter to indicate a specific access package, such as: $filter=accessPackage/id eq 'a914b616-e04e-476b-aa37-91038f0b165b'. + * In Azure AD entitlement management, retrieve a list of accessPackageAssignment objects. For directory-wide administrators, the resulting list includes all the assignments, current and well as expired, that the caller has access to read, across all catalogs and access packages. If the caller is on behalf of a delegated user who is assigned only to catalog-specific delegated administrative roles, the request must supply a filter to indicate a specific access package, such as: $filter=accessPackage/id eq 'a914b616-e04e-476b-aa37-91038f0b165b'. This API is supported in the following national cloud deployments. */ class AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php new file mode 100644 index 00000000000..4912cd74bcd --- /dev/null +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AccessPackageAssignment::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, AccessPackageAssignment::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/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index 28543878f19..cf3876aac1c 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -45,7 +45,7 @@ public function get(?FilterByCurrentUserWithOnRequestBuilderGetRequestConfigurat '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php deleted file mode 100644 index 913467a237c..00000000000 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AccessPackageAssignment::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, AccessPackageAssignment::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/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackageAssignmentItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackageAssignmentItemRequestBuilder.php index b233a94b2a1..b3f16cbc832 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackageAssignmentItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackageAssignmentItemRequestBuilder.php @@ -82,7 +82,7 @@ public function delete(?AccessPackageAssignmentItemRequestBuilderDeleteRequestCo } /** - * In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. + * In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. This API is supported in the following national cloud deployments. * @param AccessPackageAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accesspackageassignment-get?view=graph-rest-1.0 Find more info here @@ -137,7 +137,7 @@ public function toDeleteRequestInformation(?AccessPackageAssignmentItemRequestBu } /** - * In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. + * In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. This API is supported in the following national cloud deployments. * @param AccessPackageAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackageAssignmentItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackageAssignmentItemRequestBuilderGetQueryParameters.php index d8b59d39098..1d0d6c5a81b 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackageAssignmentItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackageAssignmentItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. + * In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. This API is supported in the following national cloud deployments. */ class AccessPackageAssignmentItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/Reprocess/ReprocessRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/Reprocess/ReprocessRequestBuilder.php index dca7e3004d3..cef3f4b103e 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/Reprocess/ReprocessRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/Reprocess/ReprocessRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * In Azure AD entitlement management, callers can automatically reevaluate and enforce an accessPackageAssignment object of a user’s assignments for a specific access package. The state of the access package assignment must be Delivered for the administrator to reprocess the user's assignment. Only admins with the Access Package Assignment Manager role, or higher, in Azure AD entitlement management can perform this action. + * In Azure AD entitlement management, callers can automatically reevaluate and enforce an accessPackageAssignment object of a user’s assignments for a specific access package. The state of the access package assignment must be Delivered for the administrator to reprocess the user's assignment. Only admins with the Access Package Assignment Manager role, or higher, in Azure AD entitlement management can perform this action. This API is supported in the following national cloud deployments. * @param ReprocessRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accesspackageassignment-reprocess?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?ReprocessRequestBuilderPostRequestConfiguration $requestCo } /** - * In Azure AD entitlement management, callers can automatically reevaluate and enforce an accessPackageAssignment object of a user’s assignments for a specific access package. The state of the access package assignment must be Delivered for the administrator to reprocess the user's assignment. Only admins with the Access Package Assignment Manager role, or higher, in Azure AD entitlement management can perform this action. + * In Azure AD entitlement management, callers can automatically reevaluate and enforce an accessPackageAssignment object of a user’s assignments for a specific access package. The state of the access package assignment must be Delivered for the administrator to reprocess the user's assignment. Only admins with the Access Package Assignment Manager role, or higher, in Azure AD entitlement management can perform this action. This API is supported in the following national cloud deployments. * @param ReprocessRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/CatalogsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/CatalogsRequestBuilder.php index 43109321f26..79d8f5e53af 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/CatalogsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/CatalogsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of accessPackageCatalog objects. + * Retrieve a list of accessPackageCatalog objects. This API is supported in the following national cloud deployments. * @param CatalogsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/entitlementmanagement-list-catalogs?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?CatalogsRequestBuilderGetRequestConfiguration $requestConfi } /** - * Create a new accessPackageCatalog object. + * Create a new accessPackageCatalog object. This API is supported in the following national cloud deployments. * @param AccessPackageCatalog $body The request body * @param CatalogsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(AccessPackageCatalog $body, ?CatalogsRequestBuilderPostRequ } /** - * Retrieve a list of accessPackageCatalog objects. + * Retrieve a list of accessPackageCatalog objects. This API is supported in the following national cloud deployments. * @param CatalogsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?CatalogsRequestBuilderGetRequestConfigu } /** - * Create a new accessPackageCatalog object. + * Create a new accessPackageCatalog object. This API is supported in the following national cloud deployments. * @param AccessPackageCatalog $body The request body * @param CatalogsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/CatalogsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/CatalogsRequestBuilderGetQueryParameters.php index c729011d54c..88a1a06734a 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/CatalogsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/CatalogsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of accessPackageCatalog objects. + * Retrieve a list of accessPackageCatalog objects. This API is supported in the following national cloud deployments. */ class CatalogsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackageCatalogItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackageCatalogItemRequestBuilder.php index f2843772445..e498a9c4ac2 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackageCatalogItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackageCatalogItemRequestBuilder.php @@ -72,7 +72,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an accessPackageCatalog. + * Delete an accessPackageCatalog. This API is supported in the following national cloud deployments. * @param AccessPackageCatalogItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accesspackagecatalog-delete?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function delete(?AccessPackageCatalogItemRequestBuilderDeleteRequestConfi } /** - * Retrieve the properties and relationships of an accessPackageCatalog object. + * Retrieve the properties and relationships of an accessPackageCatalog object. This API is supported in the following national cloud deployments. * @param AccessPackageCatalogItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accesspackagecatalog-get?view=graph-rest-1.0 Find more info here @@ -110,7 +110,7 @@ public function get(?AccessPackageCatalogItemRequestBuilderGetRequestConfigurati } /** - * Update an existing accessPackageCatalog object to change one or more of its properties, such as the display name or description. + * Update an existing accessPackageCatalog object to change one or more of its properties, such as the display name or description. This API is supported in the following national cloud deployments. * @param AccessPackageCatalog $body The request body * @param AccessPackageCatalogItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -130,7 +130,7 @@ public function patch(AccessPackageCatalog $body, ?AccessPackageCatalogItemReque } /** - * Delete an accessPackageCatalog. + * Delete an accessPackageCatalog. This API is supported in the following national cloud deployments. * @param AccessPackageCatalogItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -147,7 +147,7 @@ public function toDeleteRequestInformation(?AccessPackageCatalogItemRequestBuild } /** - * Retrieve the properties and relationships of an accessPackageCatalog object. + * Retrieve the properties and relationships of an accessPackageCatalog object. This API is supported in the following national cloud deployments. * @param AccessPackageCatalogItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -168,7 +168,7 @@ public function toGetRequestInformation(?AccessPackageCatalogItemRequestBuilderG } /** - * Update an existing accessPackageCatalog object to change one or more of its properties, such as the display name or description. + * Update an existing accessPackageCatalog object to change one or more of its properties, such as the display name or description. This API is supported in the following national cloud deployments. * @param AccessPackageCatalog $body The request body * @param AccessPackageCatalogItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackageCatalogItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackageCatalogItemRequestBuilderGetQueryParameters.php index f1039e6bf00..b357a3ded04 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackageCatalogItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackageCatalogItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of an accessPackageCatalog object. + * Retrieve the properties and relationships of an accessPackageCatalog object. This API is supported in the following national cloud deployments. */ class AccessPackageCatalogItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.php index 38dd39e4571..0085603bc7b 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.php @@ -53,9 +53,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get customWorkflowExtensions from identityGovernance + * Get a list of the accessPackageAssignmentRequestWorkflowExtension and accessPackageAssignmentWorkflowExtension objects and their properties. The resulting list includes all the customAccessPackageWorkflowExtension objects for the catalog that the caller has access to read. Each object includes an @odata.type property that indicates whether the object is an accessPackageAssignmentRequestWorkflowExtension or an accessPackageAssignmentWorkflowExtension. This API is supported in the following national cloud deployments. * @param CustomWorkflowExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise + * @link https://learn.microsoft.com/graph/api/accesspackagecatalog-list-accesspackagecustomworkflowextensions?view=graph-rest-1.0 Find more info here */ public function get(?CustomWorkflowExtensionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -71,10 +72,11 @@ public function get(?CustomWorkflowExtensionsRequestBuilderGetRequestConfigurati } /** - * Create new navigation property to customWorkflowExtensions for identityGovernance + * Create a new accessPackageAssignmentRequestWorkflowExtension or accessPackageAssignmentWorkflowExtension object and add it to an existing accessPackageCatalog object. You must explicitly provide an @odata.type property that indicates whether the object is an accessPackageAssignmentRequestWorkflowExtension or an accessPackageAssignmentWorkflowExtension. This API is supported in the following national cloud deployments. * @param CustomCalloutExtension $body The request body * @param CustomWorkflowExtensionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise + * @link https://learn.microsoft.com/graph/api/accesspackagecatalog-post-accesspackagecustomworkflowextensions?view=graph-rest-1.0 Find more info here */ public function post(CustomCalloutExtension $body, ?CustomWorkflowExtensionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -90,7 +92,7 @@ public function post(CustomCalloutExtension $body, ?CustomWorkflowExtensionsRequ } /** - * Get customWorkflowExtensions from identityGovernance + * Get a list of the accessPackageAssignmentRequestWorkflowExtension and accessPackageAssignmentWorkflowExtension objects and their properties. The resulting list includes all the customAccessPackageWorkflowExtension objects for the catalog that the caller has access to read. Each object includes an @odata.type property that indicates whether the object is an accessPackageAssignmentRequestWorkflowExtension or an accessPackageAssignmentWorkflowExtension. This API is supported in the following national cloud deployments. * @param CustomWorkflowExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -111,7 +113,7 @@ public function toGetRequestInformation(?CustomWorkflowExtensionsRequestBuilderG } /** - * Create new navigation property to customWorkflowExtensions for identityGovernance + * Create a new accessPackageAssignmentRequestWorkflowExtension or accessPackageAssignmentWorkflowExtension object and add it to an existing accessPackageCatalog object. You must explicitly provide an @odata.type property that indicates whether the object is an accessPackageAssignmentRequestWorkflowExtension or an accessPackageAssignmentWorkflowExtension. This API is supported in the following national cloud deployments. * @param CustomCalloutExtension $body The request body * @param CustomWorkflowExtensionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilderGetQueryParameters.php index bd4dc986b5c..bc4a453d69a 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get customWorkflowExtensions from identityGovernance + * Get a list of the accessPackageAssignmentRequestWorkflowExtension and accessPackageAssignmentWorkflowExtension objects and their properties. The resulting list includes all the customAccessPackageWorkflowExtension objects for the catalog that the caller has access to read. Each object includes an @odata.type property that indicates whether the object is an accessPackageAssignmentRequestWorkflowExtension or an accessPackageAssignmentWorkflowExtension. This API is supported in the following national cloud deployments. */ class CustomWorkflowExtensionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.php index 8ec953853ac..9c9c0ee818e 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.php @@ -32,9 +32,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete navigation property customWorkflowExtensions for identityGovernance + * Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: This API is supported in the following national cloud deployments. * @param CustomCalloutExtensionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise + * @link https://learn.microsoft.com/graph/api/accesspackageassignmentrequestworkflowextension-delete?view=graph-rest-1.0 Find more info here */ public function delete(?CustomCalloutExtensionItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -50,9 +51,10 @@ public function delete(?CustomCalloutExtensionItemRequestBuilderDeleteRequestCon } /** - * Get customWorkflowExtensions from identityGovernance + * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. This API is supported in the following national cloud deployments. * @param CustomCalloutExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise + * @link https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-get?view=graph-rest-1.0 Find more info here */ public function get(?CustomCalloutExtensionItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -68,10 +70,11 @@ public function get(?CustomCalloutExtensionItemRequestBuilderGetRequestConfigura } /** - * Update the navigation property customWorkflowExtensions in identityGovernance + * Update the properties of an accessPackageAssignmentWorkflowExtension object. * @param CustomCalloutExtension $body The request body * @param CustomCalloutExtensionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise + * @link https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-update?view=graph-rest-1.0 Find more info here */ public function patch(CustomCalloutExtension $body, ?CustomCalloutExtensionItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -87,7 +90,7 @@ public function patch(CustomCalloutExtension $body, ?CustomCalloutExtensionItemR } /** - * Delete navigation property customWorkflowExtensions for identityGovernance + * Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: This API is supported in the following national cloud deployments. * @param CustomCalloutExtensionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -104,7 +107,7 @@ public function toDeleteRequestInformation(?CustomCalloutExtensionItemRequestBui } /** - * Get customWorkflowExtensions from identityGovernance + * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. This API is supported in the following national cloud deployments. * @param CustomCalloutExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -125,7 +128,7 @@ public function toGetRequestInformation(?CustomCalloutExtensionItemRequestBuilde } /** - * Update the navigation property customWorkflowExtensions in identityGovernance + * Update the properties of an accessPackageAssignmentWorkflowExtension object. * @param CustomCalloutExtension $body The request body * @param CustomCalloutExtensionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilderGetQueryParameters.php index 695c32ff311..1548f053099 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get customWorkflowExtensions from identityGovernance + * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. This API is supported in the following national cloud deployments. */ class CustomCalloutExtensionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/ResourceRolesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/ResourceRolesRequestBuilder.php index fa970b4e11c..74325a9b139 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/ResourceRolesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/ResourceRolesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of accessPackageResourceRole objects of an accessPackageResource in an accessPackageCatalog. The resource should have been added to the catalog by creating an accessPackageResourceRequest. This list of roles can then be used by the caller to select a role, which is needed when subsequently creating an accessPackageResourceRoleScope. + * Retrieve a list of accessPackageResourceRole objects of an accessPackageResource in an accessPackageCatalog. The resource should have been added to the catalog by creating an accessPackageResourceRequest. This list of roles can then be used by the caller to select a role, which is needed when subsequently creating an accessPackageResourceRoleScope. This API is supported in the following national cloud deployments. * @param ResourceRolesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accesspackagecatalog-list-resourceroles?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(AccessPackageResourceRole $body, ?ResourceRolesRequestBuild } /** - * Retrieve a list of accessPackageResourceRole objects of an accessPackageResource in an accessPackageCatalog. The resource should have been added to the catalog by creating an accessPackageResourceRequest. This list of roles can then be used by the caller to select a role, which is needed when subsequently creating an accessPackageResourceRoleScope. + * Retrieve a list of accessPackageResourceRole objects of an accessPackageResource in an accessPackageCatalog. The resource should have been added to the catalog by creating an accessPackageResourceRequest. This list of roles can then be used by the caller to select a role, which is needed when subsequently creating an accessPackageResourceRoleScope. This API is supported in the following national cloud deployments. * @param ResourceRolesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/ResourceRolesRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/ResourceRolesRequestBuilderGetQueryParameters.php index 02e93670154..69f7a4206b3 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/ResourceRolesRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/ResourceRolesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of accessPackageResourceRole objects of an accessPackageResource in an accessPackageCatalog. The resource should have been added to the catalog by creating an accessPackageResourceRequest. This list of roles can then be used by the caller to select a role, which is needed when subsequently creating an accessPackageResourceRoleScope. + * Retrieve a list of accessPackageResourceRole objects of an accessPackageResource in an accessPackageCatalog. The resource should have been added to the catalog by creating an accessPackageResourceRequest. This list of roles can then be used by the caller to select a role, which is needed when subsequently creating an accessPackageResourceRoleScope. This API is supported in the following national cloud deployments. */ class ResourceRolesRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/ResourcesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/ResourcesRequestBuilder.php index 31334d9b44f..a9705e4f6ce 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/ResourcesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/ResourcesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of accessPackageResource objects in an accessPackageCatalog. + * Retrieve a list of accessPackageResource objects in an accessPackageCatalog. This API is supported in the following national cloud deployments. * @param ResourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accesspackagecatalog-list-resources?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(AccessPackageResource $body, ?ResourcesRequestBuilderPostRe } /** - * Retrieve a list of accessPackageResource objects in an accessPackageCatalog. + * Retrieve a list of accessPackageResource objects in an accessPackageCatalog. This API is supported in the following national cloud deployments. * @param ResourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php index 819b5a96223..5904dca316b 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/ResourcesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of accessPackageResource objects in an accessPackageCatalog. + * Retrieve a list of accessPackageResource objects in an accessPackageCatalog. This API is supported in the following national cloud deployments. */ class ResourcesRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/ConnectedOrganizationsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/ConnectedOrganizationsRequestBuilder.php index 100cd5a8281..62bb6323665 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/ConnectedOrganizationsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/ConnectedOrganizationsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of connectedOrganization objects. + * Retrieve a list of connectedOrganization objects. This API is supported in the following national cloud deployments. * @param ConnectedOrganizationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/entitlementmanagement-list-connectedorganizations?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ConnectedOrganizationsRequestBuilderGetRequestConfiguration } /** - * Create a new connectedOrganization object. + * Create a new connectedOrganization object. This API is supported in the following national cloud deployments. * @param ConnectedOrganization $body The request body * @param ConnectedOrganizationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(ConnectedOrganization $body, ?ConnectedOrganizationsRequest } /** - * Retrieve a list of connectedOrganization objects. + * Retrieve a list of connectedOrganization objects. This API is supported in the following national cloud deployments. * @param ConnectedOrganizationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ConnectedOrganizationsRequestBuilderGet } /** - * Create a new connectedOrganization object. + * Create a new connectedOrganization object. This API is supported in the following national cloud deployments. * @param ConnectedOrganization $body The request body * @param ConnectedOrganizationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/ConnectedOrganizationsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/ConnectedOrganizationsRequestBuilderGetQueryParameters.php index 43da746d809..d0fe796f6b4 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/ConnectedOrganizationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/ConnectedOrganizationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of connectedOrganization objects. + * Retrieve a list of connectedOrganization objects. This API is supported in the following national cloud deployments. */ class ConnectedOrganizationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ConnectedOrganizationItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ConnectedOrganizationItemRequestBuilder.php index 10b27953d16..f8a9054db7b 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ConnectedOrganizationItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ConnectedOrganizationItemRequestBuilder.php @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a connectedOrganization object. + * Delete a connectedOrganization object. This API is supported in the following national cloud deployments. * @param ConnectedOrganizationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/connectedorganization-delete?view=graph-rest-1.0 Find more info here @@ -67,7 +67,7 @@ public function delete(?ConnectedOrganizationItemRequestBuilderDeleteRequestConf } /** - * Retrieve the properties and relationships of a connectedOrganization object. + * Retrieve the properties and relationships of a connectedOrganization object. This API is supported in the following national cloud deployments. * @param ConnectedOrganizationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/connectedorganization-get?view=graph-rest-1.0 Find more info here @@ -86,7 +86,7 @@ public function get(?ConnectedOrganizationItemRequestBuilderGetRequestConfigurat } /** - * Update a connectedOrganization object to change one or more of its properties. + * Update a connectedOrganization object to change one or more of its properties. This API is supported in the following national cloud deployments. * @param ConnectedOrganization $body The request body * @param ConnectedOrganizationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -106,7 +106,7 @@ public function patch(ConnectedOrganization $body, ?ConnectedOrganizationItemReq } /** - * Delete a connectedOrganization object. + * Delete a connectedOrganization object. This API is supported in the following national cloud deployments. * @param ConnectedOrganizationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -123,7 +123,7 @@ public function toDeleteRequestInformation(?ConnectedOrganizationItemRequestBuil } /** - * Retrieve the properties and relationships of a connectedOrganization object. + * Retrieve the properties and relationships of a connectedOrganization object. This API is supported in the following national cloud deployments. * @param ConnectedOrganizationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -144,7 +144,7 @@ public function toGetRequestInformation(?ConnectedOrganizationItemRequestBuilder } /** - * Update a connectedOrganization object to change one or more of its properties. + * Update a connectedOrganization object to change one or more of its properties. This API is supported in the following national cloud deployments. * @param ConnectedOrganization $body The request body * @param ConnectedOrganizationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ConnectedOrganizationItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ConnectedOrganizationItemRequestBuilderGetQueryParameters.php index 340ac621dcd..afb3d94e47f 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ConnectedOrganizationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ConnectedOrganizationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a connectedOrganization object. + * Retrieve the properties and relationships of a connectedOrganization object. This API is supported in the following national cloud deployments. */ class ConnectedOrganizationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaGetResponse.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..36a87ebde8a --- /dev/null +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/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([DirectoryObject::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, DirectoryObject::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/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaRequestBuilder.php index 8879f9bda4c..24749b6063f 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaResponse.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaResponse.php deleted file mode 100644 index 687313f7306..00000000000 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ExternalSponsorsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ExternalSponsorsRequestBuilder.php index a2e13c56668..5c833d6afad 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ExternalSponsorsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ExternalSponsorsRequestBuilder.php @@ -93,7 +93,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + * Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. * @param ExternalSponsorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/connectedorganization-list-externalsponsors?view=graph-rest-1.0 Find more info here @@ -112,7 +112,7 @@ public function get(?ExternalSponsorsRequestBuilderGetRequestConfiguration $requ } /** - * Add a user or a group to the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + * Add a user or a group to the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. * @param DirectoryObject $body The request body * @param ExternalSponsorsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -132,7 +132,7 @@ public function post(DirectoryObject $body, ?ExternalSponsorsRequestBuilderPostR } /** - * Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + * Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. * @param ExternalSponsorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -153,7 +153,7 @@ public function toGetRequestInformation(?ExternalSponsorsRequestBuilderGetReques } /** - * Add a user or a group to the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + * Add a user or a group to the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. * @param DirectoryObject $body The request body * @param ExternalSponsorsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ExternalSponsorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ExternalSponsorsRequestBuilderGetQueryParameters.php index 184f6fdb7ea..01e861ec567 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ExternalSponsorsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ExternalSponsorsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + * Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. */ class ExternalSponsorsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php new file mode 100644 index 00000000000..7293ff56877 --- /dev/null +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index 9b037d2934f..d06828647e0 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetAvailableExtensionPropertiesPostRequestBody $body, ?GetA '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php deleted file mode 100644 index 3b44fe4a19a..00000000000 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetByIds/GetByIdsPostResponse.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetByIds/GetByIdsPostResponse.php new file mode 100644 index 00000000000..914e4fc6c0c --- /dev/null +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetByIds/GetByIdsPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetByIds/GetByIdsRequestBuilder.php index f972697c92c..23b3c71d2e5 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetByIds/GetByIdsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetByIdsPostRequestBody $body, ?GetByIdsRequestBuilderPostR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetByIds/GetByIdsResponse.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetByIds/GetByIdsResponse.php deleted file mode 100644 index 3270f75bc09..00000000000 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetByIds/GetByIdsResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Item/Ref/RefRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Item/Ref/RefRequestBuilder.php index 319758f00b8..8c736577ae4 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Item/Ref/RefRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove a user or a group from the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + * Remove a user or a group from the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/connectedorganization-delete-externalsponsors?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function delete(?RefRequestBuilderDeleteRequestConfiguration $requestConf } /** - * Remove a user or a group from the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + * Remove a user or a group from the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Item/Ref/RefRequestBuilderDeleteQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Item/Ref/RefRequestBuilderDeleteQueryParameters.php index 02b2ea2fd37..9d4f1be7cd0 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Item/Ref/RefRequestBuilderDeleteQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Item/Ref/RefRequestBuilderDeleteQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Remove a user or a group from the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + * Remove a user or a group from the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. */ class RefRequestBuilderDeleteQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Ref/RefRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Ref/RefRequestBuilder.php index 1015228ac13..60ebe291be7 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Ref/RefRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Ref/RefRequestBuilder.php @@ -33,7 +33,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + * Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/connectedorganization-list-externalsponsors?view=graph-rest-1.0 Find more info here @@ -52,7 +52,7 @@ public function get(?RefRequestBuilderGetRequestConfiguration $requestConfigurat } /** - * Add a user or a group to the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + * Add a user or a group to the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -72,7 +72,7 @@ public function post(ReferenceCreate $body, ?RefRequestBuilderPostRequestConfigu } /** - * Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + * Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -93,7 +93,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } /** - * Add a user or a group to the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + * Add a user or a group to the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Ref/RefRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Ref/RefRequestBuilderGetQueryParameters.php index 3967ceac52c..359beb077bb 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Ref/RefRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Ref/RefRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + * Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. */ class RefRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ValidateProperties/ValidatePropertiesRequestBuilder.php index ee9875d14ed..9923f8df3aa 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ValidatePropertiesPostRequestBody $body, ?ValidatePropertie } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaGetResponse.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..48f023dbe5e --- /dev/null +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/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([DirectoryObject::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, DirectoryObject::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/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaRequestBuilder.php index caf4a303411..623a5f28a82 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [DeltaResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaResponse.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaResponse.php deleted file mode 100644 index d9a7a329be7..00000000000 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php new file mode 100644 index 00000000000..0f5c6e7101b --- /dev/null +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index 0d1b8196622..c2a18e8d68e 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetAvailableExtensionPropertiesPostRequestBody $body, ?GetA '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetAvailableExtensionPropertiesPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. * @param GetAvailableExtensionPropertiesPostRequestBody $body The request body * @param GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php deleted file mode 100644 index 0d43b8d704f..00000000000 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExtensionProperty::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, ExtensionProperty::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/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetByIds/GetByIdsPostResponse.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetByIds/GetByIdsPostResponse.php new file mode 100644 index 00000000000..269e315e402 --- /dev/null +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetByIds/GetByIdsPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetByIds/GetByIdsRequestBuilder.php index fc01e16974e..cbfd0385e64 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetByIds/GetByIdsRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -44,14 +44,14 @@ public function post(GetByIdsPostRequestBody $body, ?GetByIdsRequestBuilderPostR '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [GetByIdsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } } /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. * @param GetByIdsPostRequestBody $body The request body * @param GetByIdsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetByIds/GetByIdsResponse.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetByIds/GetByIdsResponse.php deleted file mode 100644 index 91c7970c898..00000000000 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetByIds/GetByIdsResponse.php +++ /dev/null @@ -1,72 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::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, DirectoryObject::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/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/InternalSponsorsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/InternalSponsorsRequestBuilder.php index 6b7cce1d5fb..a8054527fab 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/InternalSponsorsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/InternalSponsorsRequestBuilder.php @@ -93,7 +93,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + * Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. * @param InternalSponsorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/connectedorganization-list-internalsponsors?view=graph-rest-1.0 Find more info here @@ -112,7 +112,7 @@ public function get(?InternalSponsorsRequestBuilderGetRequestConfiguration $requ } /** - * Add a user or a group to the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + * Add a user or a group to the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. * @param DirectoryObject $body The request body * @param InternalSponsorsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -132,7 +132,7 @@ public function post(DirectoryObject $body, ?InternalSponsorsRequestBuilderPostR } /** - * Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + * Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. * @param InternalSponsorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -153,7 +153,7 @@ public function toGetRequestInformation(?InternalSponsorsRequestBuilderGetReques } /** - * Add a user or a group to the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + * Add a user or a group to the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. * @param DirectoryObject $body The request body * @param InternalSponsorsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/InternalSponsorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/InternalSponsorsRequestBuilderGetQueryParameters.php index 8c57d03100d..851f582e27b 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/InternalSponsorsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/InternalSponsorsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + * Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. */ class InternalSponsorsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Item/Ref/RefRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Item/Ref/RefRequestBuilder.php index 6b8f388b352..3d95cba3ca6 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Item/Ref/RefRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove a user or a group from the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + * Remove a user or a group from the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/connectedorganization-delete-internalsponsors?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function delete(?RefRequestBuilderDeleteRequestConfiguration $requestConf } /** - * Remove a user or a group from the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + * Remove a user or a group from the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. * @param RefRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Item/Ref/RefRequestBuilderDeleteQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Item/Ref/RefRequestBuilderDeleteQueryParameters.php index e1e5766826b..88d2ef55f5f 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Item/Ref/RefRequestBuilderDeleteQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Item/Ref/RefRequestBuilderDeleteQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Remove a user or a group from the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + * Remove a user or a group from the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. */ class RefRequestBuilderDeleteQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Ref/RefRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Ref/RefRequestBuilder.php index 043a1fe249b..79fcb28e5c0 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Ref/RefRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Ref/RefRequestBuilder.php @@ -33,7 +33,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + * Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/connectedorganization-list-internalsponsors?view=graph-rest-1.0 Find more info here @@ -52,7 +52,7 @@ public function get(?RefRequestBuilderGetRequestConfiguration $requestConfigurat } /** - * Add a user or a group to the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + * Add a user or a group to the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -72,7 +72,7 @@ public function post(ReferenceCreate $body, ?RefRequestBuilderPostRequestConfigu } /** - * Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + * Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. * @param RefRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -93,7 +93,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } /** - * Add a user or a group to the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + * Add a user or a group to the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. * @param ReferenceCreate $body The request body * @param RefRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Ref/RefRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Ref/RefRequestBuilderGetQueryParameters.php index 5c776ae9a8b..8425a1c9725 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Ref/RefRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Ref/RefRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + * Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. */ class RefRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/ValidateProperties/ValidatePropertiesRequestBuilder.php index 3a9db6625a7..aacd4797378 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ValidatePropertiesPostRequestBody $body, ?ValidatePropertie } /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. * @param ValidatePropertiesPostRequestBody $body The request body * @param ValidatePropertiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/ResourceEnvironmentsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/ResourceEnvironmentsRequestBuilder.php index 1c6a8d52f7d..4b76736966d 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/ResourceEnvironmentsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/ResourceEnvironmentsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of accessPackageResourceEnvironment objects and their properties. + * Retrieve a list of accessPackageResourceEnvironment objects and their properties. This API is supported in the following national cloud deployments. * @param ResourceEnvironmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/entitlementmanagement-list-resourceenvironments?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(AccessPackageResourceEnvironment $body, ?ResourceEnvironmen } /** - * Retrieve a list of accessPackageResourceEnvironment objects and their properties. + * Retrieve a list of accessPackageResourceEnvironment objects and their properties. This API is supported in the following national cloud deployments. * @param ResourceEnvironmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/ResourceEnvironmentsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/ResourceEnvironmentsRequestBuilderGetQueryParameters.php index ec060f22c23..08f198dac3e 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/ResourceEnvironmentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/ResourceEnvironmentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of accessPackageResourceEnvironment objects and their properties. + * Retrieve a list of accessPackageResourceEnvironment objects and their properties. This API is supported in the following national cloud deployments. */ class ResourceEnvironmentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.php index 93fa2742505..01fc68bfbfe 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.php @@ -53,9 +53,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get customWorkflowExtensions from identityGovernance + * Get a list of the accessPackageAssignmentRequestWorkflowExtension and accessPackageAssignmentWorkflowExtension objects and their properties. The resulting list includes all the customAccessPackageWorkflowExtension objects for the catalog that the caller has access to read. Each object includes an @odata.type property that indicates whether the object is an accessPackageAssignmentRequestWorkflowExtension or an accessPackageAssignmentWorkflowExtension. This API is supported in the following national cloud deployments. * @param CustomWorkflowExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise + * @link https://learn.microsoft.com/graph/api/accesspackagecatalog-list-accesspackagecustomworkflowextensions?view=graph-rest-1.0 Find more info here */ public function get(?CustomWorkflowExtensionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -71,10 +72,11 @@ public function get(?CustomWorkflowExtensionsRequestBuilderGetRequestConfigurati } /** - * Create new navigation property to customWorkflowExtensions for identityGovernance + * Create a new accessPackageAssignmentRequestWorkflowExtension or accessPackageAssignmentWorkflowExtension object and add it to an existing accessPackageCatalog object. You must explicitly provide an @odata.type property that indicates whether the object is an accessPackageAssignmentRequestWorkflowExtension or an accessPackageAssignmentWorkflowExtension. This API is supported in the following national cloud deployments. * @param CustomCalloutExtension $body The request body * @param CustomWorkflowExtensionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise + * @link https://learn.microsoft.com/graph/api/accesspackagecatalog-post-accesspackagecustomworkflowextensions?view=graph-rest-1.0 Find more info here */ public function post(CustomCalloutExtension $body, ?CustomWorkflowExtensionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -90,7 +92,7 @@ public function post(CustomCalloutExtension $body, ?CustomWorkflowExtensionsRequ } /** - * Get customWorkflowExtensions from identityGovernance + * Get a list of the accessPackageAssignmentRequestWorkflowExtension and accessPackageAssignmentWorkflowExtension objects and their properties. The resulting list includes all the customAccessPackageWorkflowExtension objects for the catalog that the caller has access to read. Each object includes an @odata.type property that indicates whether the object is an accessPackageAssignmentRequestWorkflowExtension or an accessPackageAssignmentWorkflowExtension. This API is supported in the following national cloud deployments. * @param CustomWorkflowExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -111,7 +113,7 @@ public function toGetRequestInformation(?CustomWorkflowExtensionsRequestBuilderG } /** - * Create new navigation property to customWorkflowExtensions for identityGovernance + * Create a new accessPackageAssignmentRequestWorkflowExtension or accessPackageAssignmentWorkflowExtension object and add it to an existing accessPackageCatalog object. You must explicitly provide an @odata.type property that indicates whether the object is an accessPackageAssignmentRequestWorkflowExtension or an accessPackageAssignmentWorkflowExtension. This API is supported in the following national cloud deployments. * @param CustomCalloutExtension $body The request body * @param CustomWorkflowExtensionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilderGetQueryParameters.php index f199fcfb54e..ca44313bd62 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get customWorkflowExtensions from identityGovernance + * Get a list of the accessPackageAssignmentRequestWorkflowExtension and accessPackageAssignmentWorkflowExtension objects and their properties. The resulting list includes all the customAccessPackageWorkflowExtension objects for the catalog that the caller has access to read. Each object includes an @odata.type property that indicates whether the object is an accessPackageAssignmentRequestWorkflowExtension or an accessPackageAssignmentWorkflowExtension. This API is supported in the following national cloud deployments. */ class CustomWorkflowExtensionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.php index 8e571aa83fb..137f5e970a2 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.php @@ -32,9 +32,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete navigation property customWorkflowExtensions for identityGovernance + * Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: This API is supported in the following national cloud deployments. * @param CustomCalloutExtensionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise + * @link https://learn.microsoft.com/graph/api/accesspackageassignmentrequestworkflowextension-delete?view=graph-rest-1.0 Find more info here */ public function delete(?CustomCalloutExtensionItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -50,9 +51,10 @@ public function delete(?CustomCalloutExtensionItemRequestBuilderDeleteRequestCon } /** - * Get customWorkflowExtensions from identityGovernance + * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. This API is supported in the following national cloud deployments. * @param CustomCalloutExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise + * @link https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-get?view=graph-rest-1.0 Find more info here */ public function get(?CustomCalloutExtensionItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -68,10 +70,11 @@ public function get(?CustomCalloutExtensionItemRequestBuilderGetRequestConfigura } /** - * Update the navigation property customWorkflowExtensions in identityGovernance + * Update the properties of an accessPackageAssignmentWorkflowExtension object. * @param CustomCalloutExtension $body The request body * @param CustomCalloutExtensionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise + * @link https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-update?view=graph-rest-1.0 Find more info here */ public function patch(CustomCalloutExtension $body, ?CustomCalloutExtensionItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -87,7 +90,7 @@ public function patch(CustomCalloutExtension $body, ?CustomCalloutExtensionItemR } /** - * Delete navigation property customWorkflowExtensions for identityGovernance + * Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: This API is supported in the following national cloud deployments. * @param CustomCalloutExtensionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -104,7 +107,7 @@ public function toDeleteRequestInformation(?CustomCalloutExtensionItemRequestBui } /** - * Get customWorkflowExtensions from identityGovernance + * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. This API is supported in the following national cloud deployments. * @param CustomCalloutExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -125,7 +128,7 @@ public function toGetRequestInformation(?CustomCalloutExtensionItemRequestBuilde } /** - * Update the navigation property customWorkflowExtensions in identityGovernance + * Update the properties of an accessPackageAssignmentWorkflowExtension object. * @param CustomCalloutExtension $body The request body * @param CustomCalloutExtensionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilderGetQueryParameters.php index 7c92ea8be43..c1df27a0535 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get customWorkflowExtensions from identityGovernance + * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. This API is supported in the following national cloud deployments. */ class CustomCalloutExtensionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/ResourceRolesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/ResourceRolesRequestBuilder.php index 7bb572ee4fa..7318d7eb002 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/ResourceRolesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/ResourceRolesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of accessPackageResourceRole objects of an accessPackageResource in an accessPackageCatalog. The resource should have been added to the catalog by creating an accessPackageResourceRequest. This list of roles can then be used by the caller to select a role, which is needed when subsequently creating an accessPackageResourceRoleScope. + * Retrieve a list of accessPackageResourceRole objects of an accessPackageResource in an accessPackageCatalog. The resource should have been added to the catalog by creating an accessPackageResourceRequest. This list of roles can then be used by the caller to select a role, which is needed when subsequently creating an accessPackageResourceRoleScope. This API is supported in the following national cloud deployments. * @param ResourceRolesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accesspackagecatalog-list-resourceroles?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(AccessPackageResourceRole $body, ?ResourceRolesRequestBuild } /** - * Retrieve a list of accessPackageResourceRole objects of an accessPackageResource in an accessPackageCatalog. The resource should have been added to the catalog by creating an accessPackageResourceRequest. This list of roles can then be used by the caller to select a role, which is needed when subsequently creating an accessPackageResourceRoleScope. + * Retrieve a list of accessPackageResourceRole objects of an accessPackageResource in an accessPackageCatalog. The resource should have been added to the catalog by creating an accessPackageResourceRequest. This list of roles can then be used by the caller to select a role, which is needed when subsequently creating an accessPackageResourceRoleScope. This API is supported in the following national cloud deployments. * @param ResourceRolesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/ResourceRolesRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/ResourceRolesRequestBuilderGetQueryParameters.php index 6184aacbb70..3d018c54e90 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/ResourceRolesRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/ResourceRolesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of accessPackageResourceRole objects of an accessPackageResource in an accessPackageCatalog. The resource should have been added to the catalog by creating an accessPackageResourceRequest. This list of roles can then be used by the caller to select a role, which is needed when subsequently creating an accessPackageResourceRoleScope. + * Retrieve a list of accessPackageResourceRole objects of an accessPackageResource in an accessPackageCatalog. The resource should have been added to the catalog by creating an accessPackageResourceRequest. This list of roles can then be used by the caller to select a role, which is needed when subsequently creating an accessPackageResourceRoleScope. This API is supported in the following national cloud deployments. */ class ResourceRolesRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/ResourcesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/ResourcesRequestBuilder.php index 85a7ad616a5..49547f3a13d 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/ResourcesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/ResourcesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of accessPackageResource objects in an accessPackageCatalog. + * Retrieve a list of accessPackageResource objects in an accessPackageCatalog. This API is supported in the following national cloud deployments. * @param ResourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/accesspackagecatalog-list-resources?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(AccessPackageResource $body, ?ResourcesRequestBuilderPostRe } /** - * Retrieve a list of accessPackageResource objects in an accessPackageCatalog. + * Retrieve a list of accessPackageResource objects in an accessPackageCatalog. This API is supported in the following national cloud deployments. * @param ResourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/ResourcesRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/ResourcesRequestBuilderGetQueryParameters.php index b2c6a405dbf..af9f82f04ee 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/ResourcesRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/ResourcesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of accessPackageResource objects in an accessPackageCatalog. + * Retrieve a list of accessPackageResource objects in an accessPackageCatalog. This API is supported in the following national cloud deployments. */ class ResourcesRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/ResourceRequestsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/ResourceRequestsRequestBuilder.php index a721cd032c6..1a2a38dcf81 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/ResourceRequestsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/ResourceRequestsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of accessPackageResourceRequest objects. + * Retrieve a list of accessPackageResourceRequest objects. This API is supported in the following national cloud deployments. * @param ResourceRequestsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/entitlementmanagement-list-resourcerequests?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ResourceRequestsRequestBuilderGetRequestConfiguration $requ } /** - * Create a new accessPackageResourceRequest object to request the addition of a resource to an access package catalog, update of a resource, or the removal of a resource from a catalog. A resource must be included in an access package catalog before a role of that resource can be added to an access package. To add an Azure AD group as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadGroup and the value of the originId is the identifier of the group. To add an Azure AD application as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadApplication and the value of the originId is the identifier of the servicePrincipal. To add a SharePoint Online site an as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be SharePointOnline and the value of the originId is the URI of the site. To remove a resource from a catalog, set the requestType to be adminRemove, and the resource to contain the id of the resource object to be removed. The resource object can be retrieved using list resources. + * Create a new accessPackageResourceRequest object to request the addition of a resource to an access package catalog, update of a resource, or the removal of a resource from a catalog. A resource must be included in an access package catalog before a role of that resource can be added to an access package. To add an Azure AD group as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadGroup and the value of the originId is the identifier of the group. To add an Azure AD application as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadApplication and the value of the originId is the identifier of the servicePrincipal. To add a SharePoint Online site an as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be SharePointOnline and the value of the originId is the URI of the site. To remove a resource from a catalog, set the requestType to be adminRemove, and the resource to contain the id of the resource object to be removed. The resource object can be retrieved using list resources. This API is supported in the following national cloud deployments. * @param AccessPackageResourceRequest $body The request body * @param ResourceRequestsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(AccessPackageResourceRequest $body, ?ResourceRequestsReques } /** - * Retrieve a list of accessPackageResourceRequest objects. + * Retrieve a list of accessPackageResourceRequest objects. This API is supported in the following national cloud deployments. * @param ResourceRequestsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ResourceRequestsRequestBuilderGetReques } /** - * Create a new accessPackageResourceRequest object to request the addition of a resource to an access package catalog, update of a resource, or the removal of a resource from a catalog. A resource must be included in an access package catalog before a role of that resource can be added to an access package. To add an Azure AD group as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadGroup and the value of the originId is the identifier of the group. To add an Azure AD application as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadApplication and the value of the originId is the identifier of the servicePrincipal. To add a SharePoint Online site an as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be SharePointOnline and the value of the originId is the URI of the site. To remove a resource from a catalog, set the requestType to be adminRemove, and the resource to contain the id of the resource object to be removed. The resource object can be retrieved using list resources. + * Create a new accessPackageResourceRequest object to request the addition of a resource to an access package catalog, update of a resource, or the removal of a resource from a catalog. A resource must be included in an access package catalog before a role of that resource can be added to an access package. To add an Azure AD group as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadGroup and the value of the originId is the identifier of the group. To add an Azure AD application as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadApplication and the value of the originId is the identifier of the servicePrincipal. To add a SharePoint Online site an as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be SharePointOnline and the value of the originId is the URI of the site. To remove a resource from a catalog, set the requestType to be adminRemove, and the resource to contain the id of the resource object to be removed. The resource object can be retrieved using list resources. This API is supported in the following national cloud deployments. * @param AccessPackageResourceRequest $body The request body * @param ResourceRequestsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/ResourceRequestsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/ResourceRequestsRequestBuilderGetQueryParameters.php index 5845640a59d..cceac37be69 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/ResourceRequestsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/ResourceRequestsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of accessPackageResourceRequest objects. + * Retrieve a list of accessPackageResourceRequest objects. This API is supported in the following national cloud deployments. */ class ResourceRequestsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Settings/SettingsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Settings/SettingsRequestBuilder.php index 22e9a2b5f4e..55abbd00c1f 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Settings/SettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Settings/SettingsRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?SettingsRequestBuilderDeleteRequestConfiguration $reques } /** - * Retrieve the properties of an entitlementManagementSettings object. + * Retrieve the properties of an entitlementManagementSettings object. This API is supported in the following national cloud deployments. * @param SettingsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/entitlementmanagementsettings-get?view=graph-rest-1.0 Find more info here @@ -69,7 +69,7 @@ public function get(?SettingsRequestBuilderGetRequestConfiguration $requestConfi } /** - * Update an existing entitlementManagementSettings object to change one or more of its properties. + * Update an existing entitlementManagementSettings object to change one or more of its properties. This API is supported in the following national cloud deployments. * @param EntitlementManagementSettings $body The request body * @param SettingsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -106,7 +106,7 @@ public function toDeleteRequestInformation(?SettingsRequestBuilderDeleteRequestC } /** - * Retrieve the properties of an entitlementManagementSettings object. + * Retrieve the properties of an entitlementManagementSettings object. This API is supported in the following national cloud deployments. * @param SettingsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -127,7 +127,7 @@ public function toGetRequestInformation(?SettingsRequestBuilderGetRequestConfigu } /** - * Update an existing entitlementManagementSettings object to change one or more of its properties. + * Update an existing entitlementManagementSettings object to change one or more of its properties. This API is supported in the following national cloud deployments. * @param EntitlementManagementSettings $body The request body * @param SettingsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Settings/SettingsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/Settings/SettingsRequestBuilderGetQueryParameters.php index 52a948f91f6..fe470e68273 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Settings/SettingsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Settings/SettingsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties of an entitlementManagementSettings object. + * Retrieve the properties of an entitlementManagementSettings object. This API is supported in the following national cloud deployments. */ class SettingsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/IdentityGovernanceRequestBuilder.php b/src/Generated/IdentityGovernance/IdentityGovernanceRequestBuilder.php index e7069bee514..fa2b2f388bf 100644 --- a/src/Generated/IdentityGovernance/IdentityGovernanceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/IdentityGovernanceRequestBuilder.php @@ -9,6 +9,7 @@ use Microsoft\Graph\Generated\IdentityGovernance\AppConsent\AppConsentRequestBuilder; use Microsoft\Graph\Generated\IdentityGovernance\EntitlementManagement\EntitlementManagementRequestBuilder; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\LifecycleWorkflowsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\PrivilegedAccess\PrivilegedAccessRequestBuilder; use Microsoft\Graph\Generated\IdentityGovernance\TermsOfUse\TermsOfUseRequestBuilder; use Microsoft\Graph\Generated\Models\IdentityGovernance\IdentityGovernance; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; @@ -50,6 +51,13 @@ public function lifecycleWorkflows(): LifecycleWorkflowsRequestBuilder { return new LifecycleWorkflowsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to manage the privilegedAccess property of the microsoft.graph.identityGovernance entity. + */ + public function privilegedAccess(): PrivilegedAccessRequestBuilder { + return new PrivilegedAccessRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the termsOfUse property of the microsoft.graph.identityGovernance entity. */ diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/CustomTaskExtensionsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/CustomTaskExtensionsRequestBuilder.php index 78a1606f925..db7d85b485d 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/CustomTaskExtensionsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/CustomTaskExtensionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the customTaskExtension objects and their properties. + * Get a list of the customTaskExtension objects and their properties. This API is supported in the following national cloud deployments. * @param CustomTaskExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-lifecycleworkflowscontainer-list-customtaskextensions?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?CustomTaskExtensionsRequestBuilderGetRequestConfiguration $ } /** - * Create a new customTaskExtension object. + * Create a new customTaskExtension object. This API is supported in the following national cloud deployments. * @param CustomTaskExtension $body The request body * @param CustomTaskExtensionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(CustomTaskExtension $body, ?CustomTaskExtensionsRequestBuil } /** - * Get a list of the customTaskExtension objects and their properties. + * Get a list of the customTaskExtension objects and their properties. This API is supported in the following national cloud deployments. * @param CustomTaskExtensionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?CustomTaskExtensionsRequestBuilderGetRe } /** - * Create a new customTaskExtension object. + * Create a new customTaskExtension object. This API is supported in the following national cloud deployments. * @param CustomTaskExtension $body The request body * @param CustomTaskExtensionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/CustomTaskExtensionsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/CustomTaskExtensionsRequestBuilderGetQueryParameters.php index b1a9a22578c..f8d1cd3c4c4 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/CustomTaskExtensionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/CustomTaskExtensionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the customTaskExtension objects and their properties. + * Get a list of the customTaskExtension objects and their properties. This API is supported in the following national cloud deployments. */ class CustomTaskExtensionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/CreatedByRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/CreatedByRequestBuilder.php index b7fb7aa4685..9801d642824 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/CreatedByRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/CreatedByRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\CustomTaskExtensions\Item\CreatedBy\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\CustomTaskExtensions\Item\CreatedBy\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new CreatedByRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..3a0a6cd7fa2 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/lifecycleWorkflows/customTaskExtensions/{customTaskExtension%2Did}/createdBy/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..3c8c5b4e31c --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e8a0797d272 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/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/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..5c2928f231a --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/lifecycleWorkflows/customTaskExtensions/{customTaskExtension%2Did}/createdBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..6d5965d9a89 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..57d55d6c896 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CustomTaskExtensionItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CustomTaskExtensionItemRequestBuilder.php index 130cd58ad20..ec4954281f2 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CustomTaskExtensionItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CustomTaskExtensionItemRequestBuilder.php @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a customTaskExtension object. A custom task extension can only be deleted if it is not referenced in any task objects in a lifecycle workflow. + * Delete a customTaskExtension object. A custom task extension can only be deleted if it is not referenced in any task objects in a lifecycle workflow. This API is supported in the following national cloud deployments. * @param CustomTaskExtensionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-customtaskextension-delete?view=graph-rest-1.0 Find more info here @@ -67,7 +67,7 @@ public function delete(?CustomTaskExtensionItemRequestBuilderDeleteRequestConfig } /** - * Read the properties and relationships of a customTaskExtension object. + * Read the properties and relationships of a customTaskExtension object. This API is supported in the following national cloud deployments. * @param CustomTaskExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-customtaskextension-get?view=graph-rest-1.0 Find more info here @@ -86,7 +86,7 @@ public function get(?CustomTaskExtensionItemRequestBuilderGetRequestConfiguratio } /** - * Update the properties of a customTaskExtension object. + * Update the properties of a customTaskExtension object. This API is supported in the following national cloud deployments. * @param CustomTaskExtension $body The request body * @param CustomTaskExtensionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -106,7 +106,7 @@ public function patch(CustomTaskExtension $body, ?CustomTaskExtensionItemRequest } /** - * Delete a customTaskExtension object. A custom task extension can only be deleted if it is not referenced in any task objects in a lifecycle workflow. + * Delete a customTaskExtension object. A custom task extension can only be deleted if it is not referenced in any task objects in a lifecycle workflow. This API is supported in the following national cloud deployments. * @param CustomTaskExtensionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -123,7 +123,7 @@ public function toDeleteRequestInformation(?CustomTaskExtensionItemRequestBuilde } /** - * Read the properties and relationships of a customTaskExtension object. + * Read the properties and relationships of a customTaskExtension object. This API is supported in the following national cloud deployments. * @param CustomTaskExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -144,7 +144,7 @@ public function toGetRequestInformation(?CustomTaskExtensionItemRequestBuilderGe } /** - * Update the properties of a customTaskExtension object. + * Update the properties of a customTaskExtension object. This API is supported in the following national cloud deployments. * @param CustomTaskExtension $body The request body * @param CustomTaskExtensionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CustomTaskExtensionItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CustomTaskExtensionItemRequestBuilderGetQueryParameters.php index 4881cfb3c4f..84d337d9a65 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CustomTaskExtensionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CustomTaskExtensionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a customTaskExtension object. + * Read the properties and relationships of a customTaskExtension object. This API is supported in the following national cloud deployments. */ class CustomTaskExtensionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/LastModifiedByRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/LastModifiedByRequestBuilder.php index de1909ea976..d1d696e1cc7 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/LastModifiedByRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/LastModifiedByRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\CustomTaskExtensions\Item\LastModifiedBy\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\CustomTaskExtensions\Item\LastModifiedBy\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new LastModifiedByRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..f620f8e3138 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/lifecycleWorkflows/customTaskExtensions/{customTaskExtension%2Did}/lastModifiedBy/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..f7fbbf0a5ee --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..bf152e15759 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/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/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..471b8db9c95 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/lifecycleWorkflows/customTaskExtensions/{customTaskExtension%2Did}/lastModifiedBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..9a46e0954e1 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..196a7e59b41 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/CreatedByRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/CreatedByRequestBuilder.php index 1fc152efaaa..f12453d4996 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/CreatedByRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/CreatedByRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\DeletedItems\Workflows\Item\CreatedBy\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\DeletedItems\Workflows\Item\CreatedBy\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new CreatedByRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..4f02cdd9397 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/createdBy/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..793eb2c298b --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e92d63642f7 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..a0ab3316ac2 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/createdBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..a1a5ba839c4 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..a5615d75de2 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.php index 159ed1ed95e..8ff76741728 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\DeletedItems\Workflows\Item\LastModifiedBy\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\DeletedItems\Workflows\Item\LastModifiedBy\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new LastModifiedByRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..23fb0e68c5c --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/lastModifiedBy/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..e9b1f3e1783 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..9c437437b41 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..f3f5dd88982 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/lastModifiedBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..3d4a452bc85 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..2fc41f4b1a8 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.php index 4797c76ef7d..88fd8455f45 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Run a workflow object on-demand. You can run any workflow on-demand, including scheduled workflows. Workflows created from the 'Real-time employee termination' template are run on-demand only. When you run a workflow on demand, the tasks are executed regardless of whether the user state matches the scope and trigger execution conditions. + * Run a workflow object on-demand. You can run any workflow on-demand, including scheduled workflows. Workflows created from the 'Real-time employee termination' template are run on-demand only. When you run a workflow on demand, the tasks are executed regardless of whether the user state matches the scope and trigger execution conditions. This API is supported in the following national cloud deployments. * @param ActivatePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceActivateRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ActivatePostRequestBody $body, ?MicrosoftGraphIdentityGover } /** - * Run a workflow object on-demand. You can run any workflow on-demand, including scheduled workflows. Workflows created from the 'Real-time employee termination' template are run on-demand only. When you run a workflow on demand, the tasks are executed regardless of whether the user state matches the scope and trigger execution conditions. + * Run a workflow object on-demand. You can run any workflow on-demand, including scheduled workflows. Workflows created from the 'Real-time employee termination' template are run on-demand only. When you run a workflow on demand, the tasks are executed regardless of whether the user state matches the scope and trigger execution conditions. This API is supported in the following national cloud deployments. * @param ActivatePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceActivateRequestBuilderPostRequestConfiguration|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/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.php index aab38b1cd02..f97c1a83b02 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create a new version of the workflow object. + * Create a new version of the workflow object. This API is supported in the following national cloud deployments. * @param CreateNewVersionPostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CreateNewVersionPostRequestBody $body, ?MicrosoftGraphIdent } /** - * Create a new version of the workflow object. + * Create a new version of the workflow object. This API is supported in the following national cloud deployments. * @param CreateNewVersionPostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilderPostRequestConfiguration|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/MicrosoftGraphIdentityGovernanceRestore/MicrosoftGraphIdentityGovernanceRestoreRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceRestore/MicrosoftGraphIdentityGovernanceRestoreRequestBuilder.php index eb55d9b1216..d3c71d566e3 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceRestore/MicrosoftGraphIdentityGovernanceRestoreRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceRestore/MicrosoftGraphIdentityGovernanceRestoreRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Azure AD automatically permanently deletes it. + * Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Azure AD automatically permanently deletes it. This API is supported in the following national cloud deployments. * @param MicrosoftGraphIdentityGovernanceRestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-workflow-restore?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?MicrosoftGraphIdentityGovernanceRestoreRequestBuilderPostR } /** - * Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Azure AD automatically permanently deletes it. + * Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Azure AD automatically permanently deletes it. This API is supported in the following national cloud deployments. * @param MicrosoftGraphIdentityGovernanceRestoreRequestBuilderPostRequestConfiguration|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/Runs/Item/RunItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/RunItemRequestBuilder.php index 954a9990930..91688281900 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/RunItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/RunItemRequestBuilder.php @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read the properties and relationships of a run object. + * Read the properties and relationships of a run object. This API is supported in the following national cloud deployments. * @param RunItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-run-get?view=graph-rest-1.0 Find more info here @@ -67,7 +67,7 @@ public function get(?RunItemRequestBuilderGetRequestConfiguration $requestConfig } /** - * Read the properties and relationships of a run object. + * Read the properties and relationships of a run object. This API is supported in the following national cloud deployments. * @param RunItemRequestBuilderGetRequestConfiguration|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/Runs/Item/RunItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/RunItemRequestBuilderGetQueryParameters.php index 3254eadcb35..2bba79c436e 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/RunItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/RunItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a run object. + * Read the properties and relationships of a run object. This API is supported in the following national cloud deployments. */ class RunItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php index 6d089266bf5..14bcfb5766f 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ResumePostRequestBody $body, ?MicrosoftGraphIdentityGoverna } /** - * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration|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/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..9cea5cc7f9f --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..06381b8d26d --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..51fa3d0754a --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..39b42a225f9 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..a610d06ff48 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..9b93864c710 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php index 1fa8b1755e4..85aacfee9c9 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\DeletedItems\Workflows\Item\Runs\Item\TaskProcessingResults\Item\Subject\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\DeletedItems\Workflows\Item\Runs\Item\TaskProcessingResults\Item\Subject\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new SubjectRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php index 9e900b40ff4..66da67d972c 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the taskProcessingResult resources for a run. + * Get the taskProcessingResult resources for a run. This API is supported in the following national cloud deployments. * @param TaskProcessingResultsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-run-list-taskprocessingresults?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?TaskProcessingResultsRequestBuilderGetRequestConfiguration } /** - * Get the taskProcessingResult resources for a run. + * Get the taskProcessingResult resources for a run. This API is supported in the following national cloud deployments. * @param TaskProcessingResultsRequestBuilderGetRequestConfiguration|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/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php index 2e5b114c192..dc6b1c8d07e 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the taskProcessingResult resources for a run. + * Get the taskProcessingResult resources for a run. This API is supported in the following national cloud deployments. */ class TaskProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..91f0e59c21f --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d1582759d2a --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..37fc9c5abfb --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..2ba0c41eddf --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..abddfbd24ca --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e20c8af8ad4 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.php index 522daf41e65..b28f2e5614a 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\DeletedItems\Workflows\Item\Runs\Item\UserProcessingResults\Item\Subject\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\DeletedItems\Workflows\Item\Runs\Item\UserProcessingResults\Item\Subject\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new SubjectRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php index 90b2934f22c..568cb8c887a 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ResumePostRequestBody $body, ?MicrosoftGraphIdentityGoverna } /** - * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration|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/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..b6b7f9a0cec --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..1c6d5f8ef25 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..54f4a515aee --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..6b0eaedd7be --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..8983f6fc1cc --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..12ca3efa919 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php index f4b4a544bb0..63ac6b6c508 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\DeletedItems\Workflows\Item\Runs\Item\UserProcessingResults\Item\TaskProcessingResults\Item\Subject\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\DeletedItems\Workflows\Item\Runs\Item\UserProcessingResults\Item\TaskProcessingResults\Item\Subject\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new SubjectRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php index 96d9c116d95..ed5be59c453 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the task processing result from a userProcessingResult either directly or through a run. + * Get the task processing result from a userProcessingResult either directly or through a run. This API is supported in the following national cloud deployments. * @param TaskProcessingResultsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-userprocessingresult-list-taskprocessingresults?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?TaskProcessingResultsRequestBuilderGetRequestConfiguration } /** - * Get the task processing result from a userProcessingResult either directly or through a run. + * Get the task processing result from a userProcessingResult either directly or through a run. This API is supported in the following national cloud deployments. * @param TaskProcessingResultsRequestBuilderGetRequestConfiguration|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/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php index dea18f57527..6030cefcec7 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the task processing result from a userProcessingResult either directly or through a run. + * Get the task processing result from a userProcessingResult either directly or through a run. This API is supported in the following national cloud deployments. */ class TaskProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.php index 876f19817f0..853791a73f9 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.php @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the user processing result of a user processing result of a run. + * Get the user processing result of a user processing result of a run. This API is supported in the following national cloud deployments. * @param UserProcessingResultItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-userprocessingresult-get?view=graph-rest-1.0 Find more info here @@ -67,7 +67,7 @@ public function get(?UserProcessingResultItemRequestBuilderGetRequestConfigurati } /** - * Get the user processing result of a user processing result of a run. + * Get the user processing result of a user processing result of a run. This API is supported in the following national cloud deployments. * @param UserProcessingResultItemRequestBuilderGetRequestConfiguration|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/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilderGetQueryParameters.php index c27fbcd17e8..fa99df4383e 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the user processing result of a user processing result of a run. + * Get the user processing result of a user processing result of a run. This API is supported in the following national cloud deployments. */ class UserProcessingResultItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.php index aeeb72abf91..e9ffb636bb4 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.php @@ -54,7 +54,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get user processing results of a workflow run object. + * Get user processing results of a workflow run object. This API is supported in the following national cloud deployments. * @param UserProcessingResultsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-run-list-userprocessingresults?view=graph-rest-1.0 Find more info here @@ -83,7 +83,7 @@ public function microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndD } /** - * Get user processing results of a workflow run object. + * Get user processing results of a workflow run object. This API is supported in the following national cloud deployments. * @param UserProcessingResultsRequestBuilderGetRequestConfiguration|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/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilderGetQueryParameters.php index 833048d2d16..5a2bd24a3bc 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get user processing results of a workflow run object. + * Get user processing results of a workflow run object. This API is supported in the following national cloud deployments. */ class UserProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/RunsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/RunsRequestBuilder.php index 8c1e96e7485..8ca1a227993 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/RunsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/RunsRequestBuilder.php @@ -54,7 +54,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the run objects and their properties for a lifecycle workflow. + * Get a list of the run objects and their properties for a lifecycle workflow. This API is supported in the following national cloud deployments. * @param RunsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-workflow-list-runs?view=graph-rest-1.0 Find more info here @@ -83,7 +83,7 @@ public function microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndD } /** - * Get a list of the run objects and their properties for a lifecycle workflow. + * Get a list of the run objects and their properties for a lifecycle workflow. This API is supported in the following national cloud deployments. * @param RunsRequestBuilderGetRequestConfiguration|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/Runs/RunsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/RunsRequestBuilderGetQueryParameters.php index 78039a7ae17..66a6d8c1716 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/RunsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/RunsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the run objects and their properties for a lifecycle workflow. + * Get a list of the run objects and their properties for a lifecycle workflow. This API is supported in the following national cloud deployments. */ class RunsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php index f36a92694c8..3885eca44ab 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ResumePostRequestBody $body, ?MicrosoftGraphIdentityGoverna } /** - * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration|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/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..135eae389b6 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/taskReports/{taskReport%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..6f8865135d3 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..a11f911e6a7 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..96f77ad382c --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/taskReports/{taskReport%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..f9e110c758c --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..8721f566c6d --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php index fc7b146dd12..134cac73778 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\DeletedItems\Workflows\Item\TaskReports\Item\TaskProcessingResults\Item\Subject\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\DeletedItems\Workflows\Item\TaskReports\Item\TaskProcessingResults\Item\Subject\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new SubjectRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php index 44afea9641c..7da3a3811de 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the task processing result resources from the taskReport. + * Get the task processing result resources from the taskReport. This API is supported in the following national cloud deployments. * @param TaskProcessingResultsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-taskreport-list-taskprocessingresults?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?TaskProcessingResultsRequestBuilderGetRequestConfiguration } /** - * Get the task processing result resources from the taskReport. + * Get the task processing result resources from the taskReport. This API is supported in the following national cloud deployments. * @param TaskProcessingResultsRequestBuilderGetRequestConfiguration|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/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php index cd0ffe24b43..a78259b6822 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the task processing result resources from the taskReport. + * Get the task processing result resources from the taskReport. This API is supported in the following national cloud deployments. */ class TaskProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/TaskReportsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/TaskReportsRequestBuilder.php index 322b86fb92e..a30310549c0 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/TaskReportsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/TaskReportsRequestBuilder.php @@ -54,7 +54,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the taskReport objects and their properties. + * Get a list of the taskReport objects and their properties. This API is supported in the following national cloud deployments. * @param TaskReportsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-workflow-list-taskreports?view=graph-rest-1.0 Find more info here @@ -83,7 +83,7 @@ public function microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndD } /** - * Get a list of the taskReport objects and their properties. + * Get a list of the taskReport objects and their properties. This API is supported in the following national cloud deployments. * @param TaskReportsRequestBuilderGetRequestConfiguration|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/TaskReports/TaskReportsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/TaskReportsRequestBuilderGetQueryParameters.php index 2afa36daf13..9c39fcbdd05 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/TaskReportsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/TaskReportsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the taskReport objects and their properties. + * Get a list of the taskReport objects and their properties. This API is supported in the following national cloud deployments. */ class TaskReportsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php index ac1dd8677b0..1ac9404074e 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ResumePostRequestBody $body, ?MicrosoftGraphIdentityGoverna } /** - * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration|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/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..f4062264530 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d90cf3e0bb8 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..27ee11a8ab6 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..afbbeeb1edb --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..773e70cd0df --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..ca3a37da1a0 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php index 949479849cf..47f51e9ee4a 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\DeletedItems\Workflows\Item\Tasks\Item\TaskProcessingResults\Item\Subject\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\DeletedItems\Workflows\Item\Tasks\Item\TaskProcessingResults\Item\Subject\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new SubjectRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..b7e0bdb3079 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..b99b67701b1 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..b3f56ec47f7 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..a68857b842e --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..098d264c85b --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..2859dc88357 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.php index 3a5958d1de6..91ef269c112 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\DeletedItems\Workflows\Item\UserProcessingResults\Item\Subject\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\DeletedItems\Workflows\Item\UserProcessingResults\Item\Subject\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new SubjectRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php index 799d3044f4a..e74fcf2e93f 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ResumePostRequestBody $body, ?MicrosoftGraphIdentityGoverna } /** - * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration|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/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..71ad10aa573 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..52061fa567c --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..faa076ee871 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..79bb4666d49 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..72333992b2e --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..05dbe5dd3f5 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php index fbc075cbb90..81d06ea8c32 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\DeletedItems\Workflows\Item\UserProcessingResults\Item\TaskProcessingResults\Item\Subject\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\DeletedItems\Workflows\Item\UserProcessingResults\Item\TaskProcessingResults\Item\Subject\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new SubjectRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php index aae2f92e903..23c3b140710 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the task processing result from a userProcessingResult either directly or through a run. + * Get the task processing result from a userProcessingResult either directly or through a run. This API is supported in the following national cloud deployments. * @param TaskProcessingResultsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-userprocessingresult-list-taskprocessingresults?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?TaskProcessingResultsRequestBuilderGetRequestConfiguration } /** - * Get the task processing result from a userProcessingResult either directly or through a run. + * Get the task processing result from a userProcessingResult either directly or through a run. This API is supported in the following national cloud deployments. * @param TaskProcessingResultsRequestBuilderGetRequestConfiguration|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/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php index 0a71193e75f..d18e2477c7b 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the task processing result from a userProcessingResult either directly or through a run. + * Get the task processing result from a userProcessingResult either directly or through a run. This API is supported in the following national cloud deployments. */ class TaskProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.php index b2db4630140..83bc1771d1b 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.php @@ -54,7 +54,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the userProcessingResult resources for a workflow. + * Get the userProcessingResult resources for a workflow. This API is supported in the following national cloud deployments. * @param UserProcessingResultsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-workflow-list-userprocessingresults?view=graph-rest-1.0 Find more info here @@ -83,7 +83,7 @@ public function microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndD } /** - * Get the userProcessingResult resources for a workflow. + * Get the userProcessingResult resources for a workflow. This API is supported in the following national cloud deployments. * @param UserProcessingResultsRequestBuilderGetRequestConfiguration|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/UserProcessingResults/UserProcessingResultsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilderGetQueryParameters.php index 40f07dcba45..c2ceef467c5 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the userProcessingResult resources for a workflow. + * Get the userProcessingResult resources for a workflow. This API is supported in the following national cloud deployments. */ class UserProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/CreatedByRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/CreatedByRequestBuilder.php index 36ed13d6b1e..cd85a9cf00e 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/CreatedByRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/CreatedByRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\DeletedItems\Workflows\Item\Versions\Item\CreatedBy\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\DeletedItems\Workflows\Item\Versions\Item\CreatedBy\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new CreatedByRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..49b9b4e2119 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/createdBy/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..0e58ce3cd98 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..ad70265034b --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..5333835b122 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/createdBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..39bbaa8ed0a --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e0f1ce53f25 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.php index 5012c8860c8..dc2b41ee040 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\DeletedItems\Workflows\Item\Versions\Item\LastModifiedBy\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\DeletedItems\Workflows\Item\Versions\Item\LastModifiedBy\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new LastModifiedByRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..a37cebbe640 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/lastModifiedBy/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..95f5fd742c4 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..f678a2666bc --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..6bdabb02064 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/lastModifiedBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..41ec6a43059 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..ef0ada7f5f1 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php index feb56fe5fa2..7aa6597b3d0 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ResumePostRequestBody $body, ?MicrosoftGraphIdentityGoverna } /** - * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration|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/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..9fc826ad540 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..3809a6bdf87 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..45cbb2cd5fb --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..571e5ff8ebc --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..fbf1ab773ab --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..1687d20fa4f --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php index 9996e4351c7..8a09d8f175c 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\DeletedItems\Workflows\Item\Versions\Item\Tasks\Item\TaskProcessingResults\Item\Subject\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\DeletedItems\Workflows\Item\Versions\Item\Tasks\Item\TaskProcessingResults\Item\Subject\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new SubjectRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.php index b1bdf81bb6d..389d0e811a5 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.php @@ -56,7 +56,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read the properties and relationships of a workflowVersion object. + * Read the properties and relationships of a workflowVersion object. This API is supported in the following national cloud deployments. * @param WorkflowVersionVersionNumberItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-workflowversion-get?view=graph-rest-1.0 Find more info here @@ -75,7 +75,7 @@ public function get(?WorkflowVersionVersionNumberItemRequestBuilderGetRequestCon } /** - * Read the properties and relationships of a workflowVersion object. + * Read the properties and relationships of a workflowVersion object. This API is supported in the following national cloud deployments. * @param WorkflowVersionVersionNumberItemRequestBuilderGetRequestConfiguration|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/WorkflowVersionVersionNumberItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilderGetQueryParameters.php index d6ce195fe55..a5e2e63c305 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a workflowVersion object. + * Read the properties and relationships of a workflowVersion object. This API is supported in the following national cloud deployments. */ class WorkflowVersionVersionNumberItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/VersionsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/VersionsRequestBuilder.php index 568623cf0f1..aa64ef541fa 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/VersionsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/VersionsRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the workflowVersion objects and their properties. + * Get a list of the workflowVersion objects and their properties. This API is supported in the following national cloud deployments. * @param VersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-workflow-list-versions?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?VersionsRequestBuilderGetRequestConfiguration $requestConfi } /** - * Get a list of the workflowVersion objects and their properties. + * Get a list of the workflowVersion objects and their properties. This API is supported in the following national cloud deployments. * @param VersionsRequestBuilderGetRequestConfiguration|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/VersionsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/VersionsRequestBuilderGetQueryParameters.php index 82a398b909f..c1f1b60863b 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/VersionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/VersionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the workflowVersion objects and their properties. + * Get a list of the workflowVersion objects and their properties. This API is supported in the following national cloud deployments. */ class VersionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/WorkflowItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/WorkflowItemRequestBuilder.php index db95269e241..cc0614d5c82 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/WorkflowItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/WorkflowItemRequestBuilder.php @@ -120,7 +120,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a workflow object. + * Delete a workflow object. This API is supported in the following national cloud deployments. * @param WorkflowItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-deletedItemcontainer-delete?view=graph-rest-1.0 Find more info here @@ -139,7 +139,7 @@ public function delete(?WorkflowItemRequestBuilderDeleteRequestConfiguration $re } /** - * Retrieve a deleted workflow object. + * Retrieve a deleted workflow object. This API is supported in the following national cloud deployments. * @param WorkflowItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-deleteditemcontainer-get?view=graph-rest-1.0 Find more info here @@ -158,7 +158,7 @@ public function get(?WorkflowItemRequestBuilderGetRequestConfiguration $requestC } /** - * Delete a workflow object. + * Delete a workflow object. This API is supported in the following national cloud deployments. * @param WorkflowItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -175,7 +175,7 @@ public function toDeleteRequestInformation(?WorkflowItemRequestBuilderDeleteRequ } /** - * Retrieve a deleted workflow object. + * Retrieve a deleted workflow object. This API is supported in the following national cloud deployments. * @param WorkflowItemRequestBuilderGetRequestConfiguration|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/WorkflowItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/WorkflowItemRequestBuilderGetQueryParameters.php index c87077d31b4..803e07b31ef 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/WorkflowItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/WorkflowItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a deleted workflow object. + * Retrieve a deleted workflow object. This API is supported in the following national cloud deployments. */ class WorkflowItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/WorkflowsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/WorkflowsRequestBuilder.php index 6df93b4e259..779ef1b0681 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/WorkflowsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/WorkflowsRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the deleted workflow objects and their properties. + * Get a list of the deleted workflow objects and their properties. This API is supported in the following national cloud deployments. * @param WorkflowsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-lifecycleworkflowscontainer-list-deleteditems?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?WorkflowsRequestBuilderGetRequestConfiguration $requestConf } /** - * Get a list of the deleted workflow objects and their properties. + * Get a list of the deleted workflow objects and their properties. This API is supported in the following national cloud deployments. * @param WorkflowsRequestBuilderGetRequestConfiguration|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/WorkflowsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/WorkflowsRequestBuilderGetQueryParameters.php index 99140ad3106..8a7b35d1a71 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/WorkflowsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/WorkflowsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the deleted workflow objects and their properties. + * Get a list of the deleted workflow objects and their properties. This API is supported in the following national cloud deployments. */ class WorkflowsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Settings/SettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Settings/SettingsRequestBuilder.php index 37c128978a2..b33839de905 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Settings/SettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Settings/SettingsRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read the properties and relationships of a lifecycleManagementSettings object. + * Read the properties and relationships of a lifecycleManagementSettings object. This API is supported in the following national cloud deployments. * @param SettingsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-lifecyclemanagementsettings-get?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function get(?SettingsRequestBuilderGetRequestConfiguration $requestConfi } /** - * Update the properties of a lifecycleManagementSettings object. + * Update the properties of a lifecycleManagementSettings object. This API is supported in the following national cloud deployments. * @param LifecycleManagementSettings $body The request body * @param SettingsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -71,7 +71,7 @@ public function patch(LifecycleManagementSettings $body, ?SettingsRequestBuilder } /** - * Read the properties and relationships of a lifecycleManagementSettings object. + * Read the properties and relationships of a lifecycleManagementSettings object. This API is supported in the following national cloud deployments. * @param SettingsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -92,7 +92,7 @@ public function toGetRequestInformation(?SettingsRequestBuilderGetRequestConfigu } /** - * Update the properties of a lifecycleManagementSettings object. + * Update the properties of a lifecycleManagementSettings object. This API is supported in the following national cloud deployments. * @param LifecycleManagementSettings $body The request body * @param SettingsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Settings/SettingsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Settings/SettingsRequestBuilderGetQueryParameters.php index 42b91a22441..5463a2fd114 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Settings/SettingsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Settings/SettingsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a lifecycleManagementSettings object. + * Read the properties and relationships of a lifecycleManagementSettings object. This API is supported in the following national cloud deployments. */ class SettingsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Item/TaskDefinitionItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Item/TaskDefinitionItemRequestBuilder.php index 11a66263064..51d686aab6c 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Item/TaskDefinitionItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Item/TaskDefinitionItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read the details of a built-in workflow task. + * Read the details of a built-in workflow task. This API is supported in the following national cloud deployments. * @param TaskDefinitionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-taskdefinition-get?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function get(?TaskDefinitionItemRequestBuilderGetRequestConfiguration $re } /** - * Read the details of a built-in workflow task. + * Read the details of a built-in workflow task. This API is supported in the following national cloud deployments. * @param TaskDefinitionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Item/TaskDefinitionItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Item/TaskDefinitionItemRequestBuilderGetQueryParameters.php index 5fbfdf7b24f..b81a4ac548c 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Item/TaskDefinitionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Item/TaskDefinitionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the details of a built-in workflow task. + * Read the details of a built-in workflow task. This API is supported in the following national cloud deployments. */ class TaskDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/TaskDefinitionsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/TaskDefinitionsRequestBuilder.php index 00b541085ef..94104bb0008 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/TaskDefinitionsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/TaskDefinitionsRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the taskDefinition objects and their properties. + * Get a list of the taskDefinition objects and their properties. This API is supported in the following national cloud deployments. * @param TaskDefinitionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-lifecycleworkflowscontainer-list-taskdefinitions?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?TaskDefinitionsRequestBuilderGetRequestConfiguration $reque } /** - * Get a list of the taskDefinition objects and their properties. + * Get a list of the taskDefinition objects and their properties. This API is supported in the following national cloud deployments. * @param TaskDefinitionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/TaskDefinitionsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/TaskDefinitionsRequestBuilderGetQueryParameters.php index 02cc26e0d46..e77162545b4 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/TaskDefinitionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/TaskDefinitionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the taskDefinition objects and their properties. + * Get a list of the taskDefinition objects and their properties. This API is supported in the following national cloud deployments. */ class TaskDefinitionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php index ce894f0f84b..2b529fb8fbf 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ResumePostRequestBody $body, ?MicrosoftGraphIdentityGoverna } /** - * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..fa009fc60dc --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/lifecycleWorkflows/workflowTemplates/{workflowTemplate%2Did}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..048ddd7db23 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..ab6b0e94fff --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/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/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..b9e89a02ed1 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/lifecycleWorkflows/workflowTemplates/{workflowTemplate%2Did}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..3b6eed4a242 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..77a7bc0951c --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php index ff4d8c2eaf4..e4bca51116c 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\WorkflowTemplates\Item\Tasks\Item\TaskProcessingResults\Item\Subject\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\WorkflowTemplates\Item\Tasks\Item\TaskProcessingResults\Item\Subject\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new SubjectRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/WorkflowTemplateItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/WorkflowTemplateItemRequestBuilder.php index aa8f91e806e..dbb7518c683 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/WorkflowTemplateItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/WorkflowTemplateItemRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read the properties and relationships of a workflowTemplate object. + * Read the properties and relationships of a workflowTemplate object. This API is supported in the following national cloud deployments. * @param WorkflowTemplateItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-workflowtemplate-get?view=graph-rest-1.0 Find more info here @@ -59,7 +59,7 @@ public function get(?WorkflowTemplateItemRequestBuilderGetRequestConfiguration $ } /** - * Read the properties and relationships of a workflowTemplate object. + * Read the properties and relationships of a workflowTemplate object. This API is supported in the following national cloud deployments. * @param WorkflowTemplateItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/WorkflowTemplateItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/WorkflowTemplateItemRequestBuilderGetQueryParameters.php index b2266e0503b..f96009f7b3f 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/WorkflowTemplateItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/WorkflowTemplateItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a workflowTemplate object. + * Read the properties and relationships of a workflowTemplate object. This API is supported in the following national cloud deployments. */ class WorkflowTemplateItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/WorkflowTemplatesRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/WorkflowTemplatesRequestBuilder.php index 561a9ffc85d..d373bcd2bd1 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/WorkflowTemplatesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/WorkflowTemplatesRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the workflowTemplate objects and their properties. + * Get a list of the workflowTemplate objects and their properties. This API is supported in the following national cloud deployments. * @param WorkflowTemplatesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-lifecycleworkflowscontainer-list-workflowtemplates?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?WorkflowTemplatesRequestBuilderGetRequestConfiguration $req } /** - * Get a list of the workflowTemplate objects and their properties. + * Get a list of the workflowTemplate objects and their properties. This API is supported in the following national cloud deployments. * @param WorkflowTemplatesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/WorkflowTemplatesRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/WorkflowTemplatesRequestBuilderGetQueryParameters.php index deebd848d6c..3eac5b44ed8 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/WorkflowTemplatesRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/WorkflowTemplatesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the workflowTemplate objects and their properties. + * Get a list of the workflowTemplate objects and their properties. This API is supported in the following national cloud deployments. */ class WorkflowTemplatesRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/CreatedByRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/CreatedByRequestBuilder.php index 110edad4755..a8fc7ecf5ad 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/CreatedByRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/CreatedByRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\Workflows\Item\CreatedBy\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\Workflows\Item\CreatedBy\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new CreatedByRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..fc36516c752 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/createdBy/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..1390a760011 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..2efb5c5e338 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..9894c743382 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/createdBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..8823b0ff88b --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..9d995921eaa --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.php index ee226cb359a..5859fa23de4 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\Workflows\Item\LastModifiedBy\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\Workflows\Item\LastModifiedBy\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new LastModifiedByRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..b564aa1316f --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/lastModifiedBy/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..9d61d1432ae --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..b0573b055fb --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..9855631b99a --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/lastModifiedBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..718fd8be7bd --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..91486b3d2bf --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.php index a9e4a5c7e0d..3d5cd031052 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Run a workflow object on-demand. You can run any workflow on-demand, including scheduled workflows. Workflows created from the 'Real-time employee termination' template are run on-demand only. When you run a workflow on demand, the tasks are executed regardless of whether the user state matches the scope and trigger execution conditions. + * Run a workflow object on-demand. You can run any workflow on-demand, including scheduled workflows. Workflows created from the 'Real-time employee termination' template are run on-demand only. When you run a workflow on demand, the tasks are executed regardless of whether the user state matches the scope and trigger execution conditions. This API is supported in the following national cloud deployments. * @param ActivatePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceActivateRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ActivatePostRequestBody $body, ?MicrosoftGraphIdentityGover } /** - * Run a workflow object on-demand. You can run any workflow on-demand, including scheduled workflows. Workflows created from the 'Real-time employee termination' template are run on-demand only. When you run a workflow on demand, the tasks are executed regardless of whether the user state matches the scope and trigger execution conditions. + * Run a workflow object on-demand. You can run any workflow on-demand, including scheduled workflows. Workflows created from the 'Real-time employee termination' template are run on-demand only. When you run a workflow on demand, the tasks are executed regardless of whether the user state matches the scope and trigger execution conditions. This API is supported in the following national cloud deployments. * @param ActivatePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceActivateRequestBuilderPostRequestConfiguration|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/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.php index c5645627e43..bdef33a30a7 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Create a new version of the workflow object. + * Create a new version of the workflow object. This API is supported in the following national cloud deployments. * @param CreateNewVersionPostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(CreateNewVersionPostRequestBody $body, ?MicrosoftGraphIdent } /** - * Create a new version of the workflow object. + * Create a new version of the workflow object. This API is supported in the following national cloud deployments. * @param CreateNewVersionPostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilderPostRequestConfiguration|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/MicrosoftGraphIdentityGovernanceRestore/MicrosoftGraphIdentityGovernanceRestoreRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceRestore/MicrosoftGraphIdentityGovernanceRestoreRequestBuilder.php index ffe660d4c51..285a077cb65 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceRestore/MicrosoftGraphIdentityGovernanceRestoreRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceRestore/MicrosoftGraphIdentityGovernanceRestoreRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Azure AD automatically permanently deletes it. + * Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Azure AD automatically permanently deletes it. This API is supported in the following national cloud deployments. * @param MicrosoftGraphIdentityGovernanceRestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-workflow-restore?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?MicrosoftGraphIdentityGovernanceRestoreRequestBuilderPostR } /** - * Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Azure AD automatically permanently deletes it. + * Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Azure AD automatically permanently deletes it. This API is supported in the following national cloud deployments. * @param MicrosoftGraphIdentityGovernanceRestoreRequestBuilderPostRequestConfiguration|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/Runs/Item/RunItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/RunItemRequestBuilder.php index edff42ca642..cee79063c94 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/RunItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/RunItemRequestBuilder.php @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read the properties and relationships of a run object. + * Read the properties and relationships of a run object. This API is supported in the following national cloud deployments. * @param RunItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-run-get?view=graph-rest-1.0 Find more info here @@ -67,7 +67,7 @@ public function get(?RunItemRequestBuilderGetRequestConfiguration $requestConfig } /** - * Read the properties and relationships of a run object. + * Read the properties and relationships of a run object. This API is supported in the following national cloud deployments. * @param RunItemRequestBuilderGetRequestConfiguration|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/Runs/Item/RunItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/RunItemRequestBuilderGetQueryParameters.php index c51c01cfb2d..32863a1d040 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/RunItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/RunItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a run object. + * Read the properties and relationships of a run object. This API is supported in the following national cloud deployments. */ class RunItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php index dfeaa85d9a5..ed2e4eac0c6 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ResumePostRequestBody $body, ?MicrosoftGraphIdentityGoverna } /** - * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration|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/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..443c649fe41 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..9af49c278d3 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..52597ff1e23 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..72dbb54a53a --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..1759bb75836 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..480bd347812 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php index 7fef27b7828..10949195960 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\Workflows\Item\Runs\Item\TaskProcessingResults\Item\Subject\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\Workflows\Item\Runs\Item\TaskProcessingResults\Item\Subject\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new SubjectRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php index 0f91e3511ac..7e68395cd9a 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the taskProcessingResult resources for a run. + * Get the taskProcessingResult resources for a run. This API is supported in the following national cloud deployments. * @param TaskProcessingResultsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-run-list-taskprocessingresults?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?TaskProcessingResultsRequestBuilderGetRequestConfiguration } /** - * Get the taskProcessingResult resources for a run. + * Get the taskProcessingResult resources for a run. This API is supported in the following national cloud deployments. * @param TaskProcessingResultsRequestBuilderGetRequestConfiguration|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/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php index 71950772f4e..e13d96b6449 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the taskProcessingResult resources for a run. + * Get the taskProcessingResult resources for a run. This API is supported in the following national cloud deployments. */ class TaskProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..e1f5c9c31dd --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..e2002f4e716 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..c3ca9d378ff --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..06e9f344ea9 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..7a6e4610971 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..0d66e6a540e --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.php index 6297ad2d706..59d558e3cf9 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\Workflows\Item\Runs\Item\UserProcessingResults\Item\Subject\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\Workflows\Item\Runs\Item\UserProcessingResults\Item\Subject\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new SubjectRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php index 4ece134be87..8b8f6cbc252 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ResumePostRequestBody $body, ?MicrosoftGraphIdentityGoverna } /** - * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration|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/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..47d69138bc6 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..68db22ee9a1 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..bbad63d4797 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..99ca2c2378e --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..4fe9f71fb5b --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..f943abcc6a5 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php index 5814dfe4214..788df4d74e6 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\Workflows\Item\Runs\Item\UserProcessingResults\Item\TaskProcessingResults\Item\Subject\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\Workflows\Item\Runs\Item\UserProcessingResults\Item\TaskProcessingResults\Item\Subject\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new SubjectRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php index 1a6710f4333..ad1907a9d13 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the task processing result from a userProcessingResult either directly or through a run. + * Get the task processing result from a userProcessingResult either directly or through a run. This API is supported in the following national cloud deployments. * @param TaskProcessingResultsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-userprocessingresult-list-taskprocessingresults?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?TaskProcessingResultsRequestBuilderGetRequestConfiguration } /** - * Get the task processing result from a userProcessingResult either directly or through a run. + * Get the task processing result from a userProcessingResult either directly or through a run. This API is supported in the following national cloud deployments. * @param TaskProcessingResultsRequestBuilderGetRequestConfiguration|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/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php index 74e0efe7dec..15095c17308 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the task processing result from a userProcessingResult either directly or through a run. + * Get the task processing result from a userProcessingResult either directly or through a run. This API is supported in the following national cloud deployments. */ class TaskProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.php index 0929127e169..a41e2644046 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.php @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the user processing result of a user processing result of a run. + * Get the user processing result of a user processing result of a run. This API is supported in the following national cloud deployments. * @param UserProcessingResultItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-userprocessingresult-get?view=graph-rest-1.0 Find more info here @@ -67,7 +67,7 @@ public function get(?UserProcessingResultItemRequestBuilderGetRequestConfigurati } /** - * Get the user processing result of a user processing result of a run. + * Get the user processing result of a user processing result of a run. This API is supported in the following national cloud deployments. * @param UserProcessingResultItemRequestBuilderGetRequestConfiguration|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/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilderGetQueryParameters.php index ffe8470a5ea..dfccf84c25c 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the user processing result of a user processing result of a run. + * Get the user processing result of a user processing result of a run. This API is supported in the following national cloud deployments. */ class UserProcessingResultItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.php index 63d9579d778..e036d047d65 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.php @@ -54,7 +54,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get user processing results of a workflow run object. + * Get user processing results of a workflow run object. This API is supported in the following national cloud deployments. * @param UserProcessingResultsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-run-list-userprocessingresults?view=graph-rest-1.0 Find more info here @@ -83,7 +83,7 @@ public function microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndD } /** - * Get user processing results of a workflow run object. + * Get user processing results of a workflow run object. This API is supported in the following national cloud deployments. * @param UserProcessingResultsRequestBuilderGetRequestConfiguration|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/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilderGetQueryParameters.php index 5a7098a21bc..fee109bd5c2 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get user processing results of a workflow run object. + * Get user processing results of a workflow run object. This API is supported in the following national cloud deployments. */ class UserProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/RunsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/RunsRequestBuilder.php index aea82dc102b..abdb5295c27 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/RunsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/RunsRequestBuilder.php @@ -54,7 +54,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the run objects and their properties for a lifecycle workflow. + * Get a list of the run objects and their properties for a lifecycle workflow. This API is supported in the following national cloud deployments. * @param RunsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-workflow-list-runs?view=graph-rest-1.0 Find more info here @@ -83,7 +83,7 @@ public function microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndD } /** - * Get a list of the run objects and their properties for a lifecycle workflow. + * Get a list of the run objects and their properties for a lifecycle workflow. This API is supported in the following national cloud deployments. * @param RunsRequestBuilderGetRequestConfiguration|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/Runs/RunsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/RunsRequestBuilderGetQueryParameters.php index 40b1cd9bfb0..352e4ff1382 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/RunsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/RunsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the run objects and their properties for a lifecycle workflow. + * Get a list of the run objects and their properties for a lifecycle workflow. This API is supported in the following national cloud deployments. */ class RunsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php index 1a6086d80f0..829adc46816 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ResumePostRequestBody $body, ?MicrosoftGraphIdentityGoverna } /** - * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration|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/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..0d7c6339ef9 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/taskReports/{taskReport%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d2596cc42a9 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..db3a4a78a8d --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..0589f0ce74e --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/taskReports/{taskReport%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..f6a6d0fcbdc --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..5fd2a306824 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php index c71a5179d3a..54111231b16 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\Workflows\Item\TaskReports\Item\TaskProcessingResults\Item\Subject\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\Workflows\Item\TaskReports\Item\TaskProcessingResults\Item\Subject\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new SubjectRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php index aabe04102f5..06f0814d0ff 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the task processing result resources from the taskReport. + * Get the task processing result resources from the taskReport. This API is supported in the following national cloud deployments. * @param TaskProcessingResultsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-taskreport-list-taskprocessingresults?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?TaskProcessingResultsRequestBuilderGetRequestConfiguration } /** - * Get the task processing result resources from the taskReport. + * Get the task processing result resources from the taskReport. This API is supported in the following national cloud deployments. * @param TaskProcessingResultsRequestBuilderGetRequestConfiguration|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/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php index 0cc096836b2..02b7033fdb0 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the task processing result resources from the taskReport. + * Get the task processing result resources from the taskReport. This API is supported in the following national cloud deployments. */ class TaskProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/TaskReportsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/TaskReportsRequestBuilder.php index 89a57f8c7c9..dfcd25a3d49 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/TaskReportsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/TaskReportsRequestBuilder.php @@ -54,7 +54,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the taskReport objects and their properties. + * Get a list of the taskReport objects and their properties. This API is supported in the following national cloud deployments. * @param TaskReportsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-workflow-list-taskreports?view=graph-rest-1.0 Find more info here @@ -83,7 +83,7 @@ public function microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndD } /** - * Get a list of the taskReport objects and their properties. + * Get a list of the taskReport objects and their properties. This API is supported in the following national cloud deployments. * @param TaskReportsRequestBuilderGetRequestConfiguration|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/TaskReports/TaskReportsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/TaskReportsRequestBuilderGetQueryParameters.php index eb56f0ebae5..29aa547b7cb 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/TaskReportsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/TaskReportsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the taskReport objects and their properties. + * Get a list of the taskReport objects and their properties. This API is supported in the following national cloud deployments. */ class TaskReportsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php index b2d213b955d..9dc8e74eecd 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ResumePostRequestBody $body, ?MicrosoftGraphIdentityGoverna } /** - * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration|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/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..f5b55a6fe29 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..15a64acfe19 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e997666a3ef --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..a0e3b6aaabd --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..c86da2a4fca --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..65f290885b5 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php index 455bf3e8972..fe1bf094b1c 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\Workflows\Item\Tasks\Item\TaskProcessingResults\Item\Subject\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\Workflows\Item\Tasks\Item\TaskProcessingResults\Item\Subject\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new SubjectRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..418e54d708e --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d06f3a2f332 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..c8b0ad82d8a --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..4292d5a59e0 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d022ca46aa9 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..fe059d12000 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.php index 71e7589b96c..d309fc14b82 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\Workflows\Item\UserProcessingResults\Item\Subject\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\Workflows\Item\UserProcessingResults\Item\Subject\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new SubjectRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php index d5629b84201..b9bc57cef26 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ResumePostRequestBody $body, ?MicrosoftGraphIdentityGoverna } /** - * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration|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/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..d8670613c2e --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..404e6544c3a --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..5eb800ddce1 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..6728e9bc014 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d1d152905ad --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..2e998475026 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php index 96e44f37db2..660f8633732 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\Workflows\Item\UserProcessingResults\Item\TaskProcessingResults\Item\Subject\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\Workflows\Item\UserProcessingResults\Item\TaskProcessingResults\Item\Subject\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new SubjectRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php index 072fac85ab2..df0be41fa4c 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the task processing result from a userProcessingResult either directly or through a run. + * Get the task processing result from a userProcessingResult either directly or through a run. This API is supported in the following national cloud deployments. * @param TaskProcessingResultsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-userprocessingresult-list-taskprocessingresults?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?TaskProcessingResultsRequestBuilderGetRequestConfiguration } /** - * Get the task processing result from a userProcessingResult either directly or through a run. + * Get the task processing result from a userProcessingResult either directly or through a run. This API is supported in the following national cloud deployments. * @param TaskProcessingResultsRequestBuilderGetRequestConfiguration|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/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php index 7730227665d..6df1ff76fad 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the task processing result from a userProcessingResult either directly or through a run. + * Get the task processing result from a userProcessingResult either directly or through a run. This API is supported in the following national cloud deployments. */ class TaskProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.php index f432a1a9e51..80fcbaaa4eb 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.php @@ -54,7 +54,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the userProcessingResult resources for a workflow. + * Get the userProcessingResult resources for a workflow. This API is supported in the following national cloud deployments. * @param UserProcessingResultsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-workflow-list-userprocessingresults?view=graph-rest-1.0 Find more info here @@ -83,7 +83,7 @@ public function microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndD } /** - * Get the userProcessingResult resources for a workflow. + * Get the userProcessingResult resources for a workflow. This API is supported in the following national cloud deployments. * @param UserProcessingResultsRequestBuilderGetRequestConfiguration|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/UserProcessingResults/UserProcessingResultsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilderGetQueryParameters.php index 2258cb3c7a8..099a1dc065b 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the userProcessingResult resources for a workflow. + * Get the userProcessingResult resources for a workflow. This API is supported in the following national cloud deployments. */ class UserProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/CreatedByRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/CreatedByRequestBuilder.php index 1e1c71ecabd..01c3257d1a4 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/CreatedByRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/CreatedByRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\Workflows\Item\Versions\Item\CreatedBy\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\Workflows\Item\Versions\Item\CreatedBy\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new CreatedByRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..d3ee44c1637 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/createdBy/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..c42d1ba9ae3 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..ccec29df352 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..833bd1172b9 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/createdBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..aaf7cf6d713 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..3aa089cd1e3 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.php index cbcfea4952c..9985c47fc06 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\Workflows\Item\Versions\Item\LastModifiedBy\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\Workflows\Item\Versions\Item\LastModifiedBy\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new LastModifiedByRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..a5155e34d93 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/lastModifiedBy/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..3d9a95bdf19 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..97028db5ea1 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..11779a89296 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/lastModifiedBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..713326af1fb --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..273c5eeebcb --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php index e2846d5ecc9..a681057d412 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ResumePostRequestBody $body, ?MicrosoftGraphIdentityGoverna } /** - * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + * Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. * @param ResumePostRequestBody $body The request body * @param MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration|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/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..3ed771278cb --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..ce5b05cfa10 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..a3fc02963e1 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..1aa1a83caa4 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..7ac3de4e8e8 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..39163e9e116 --- /dev/null +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php index dca8ce786e7..5e54db1ac5a 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\Workflows\Item\Versions\Item\Tasks\Item\TaskProcessingResults\Item\Subject\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\IdentityGovernance\LifecycleWorkflows\Workflows\Item\Versions\Item\Tasks\Item\TaskProcessingResults\Item\Subject\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new SubjectRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.php index fe256cb5f4b..9aa30f7f6a8 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.php @@ -56,7 +56,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read the properties and relationships of a workflowVersion object. + * Read the properties and relationships of a workflowVersion object. This API is supported in the following national cloud deployments. * @param WorkflowVersionVersionNumberItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-workflowversion-get?view=graph-rest-1.0 Find more info here @@ -75,7 +75,7 @@ public function get(?WorkflowVersionVersionNumberItemRequestBuilderGetRequestCon } /** - * Read the properties and relationships of a workflowVersion object. + * Read the properties and relationships of a workflowVersion object. This API is supported in the following national cloud deployments. * @param WorkflowVersionVersionNumberItemRequestBuilderGetRequestConfiguration|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/WorkflowVersionVersionNumberItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilderGetQueryParameters.php index 6cdd8fb06d4..f25e422a564 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a workflowVersion object. + * Read the properties and relationships of a workflowVersion object. This API is supported in the following national cloud deployments. */ class WorkflowVersionVersionNumberItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/VersionsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/VersionsRequestBuilder.php index f0fb7d98b5c..a4998733f8d 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/VersionsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/VersionsRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the workflowVersion objects and their properties. + * Get a list of the workflowVersion objects and their properties. This API is supported in the following national cloud deployments. * @param VersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-workflow-list-versions?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?VersionsRequestBuilderGetRequestConfiguration $requestConfi } /** - * Get a list of the workflowVersion objects and their properties. + * Get a list of the workflowVersion objects and their properties. This API is supported in the following national cloud deployments. * @param VersionsRequestBuilderGetRequestConfiguration|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/VersionsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/VersionsRequestBuilderGetQueryParameters.php index 54020a875c7..226fe701160 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/VersionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/VersionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the workflowVersion objects and their properties. + * Get a list of the workflowVersion objects and their properties. This API is supported in the following national cloud deployments. */ class VersionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/WorkflowItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/WorkflowItemRequestBuilder.php index 7736f3ff127..acc99dd6ce2 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/WorkflowItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/WorkflowItemRequestBuilder.php @@ -120,7 +120,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a workflow object and its associated tasks, taskProcessingResults and versions. You can restore a deleted workflow and its associated objects within 30 days of deletion. + * Delete a workflow object and its associated tasks, taskProcessingResults and versions. You can restore a deleted workflow and its associated objects within 30 days of deletion. This API is supported in the following national cloud deployments. * @param WorkflowItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-workflow-delete?view=graph-rest-1.0 Find more info here @@ -139,7 +139,7 @@ public function delete(?WorkflowItemRequestBuilderDeleteRequestConfiguration $re } /** - * Read the properties and relationships of a workflow object. + * Read the properties and relationships of a workflow object. This API is supported in the following national cloud deployments. * @param WorkflowItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-workflow-get?view=graph-rest-1.0 Find more info here @@ -158,7 +158,7 @@ public function get(?WorkflowItemRequestBuilderGetRequestConfiguration $requestC } /** - * Update the properties of a workflow object. Only the properties listed in the request body table can be updated. To update any other workflow properties, see workflow: createNewVersion. + * Update the properties of a workflow object. Only the properties listed in the request body table can be updated. To update any other workflow properties, see workflow: createNewVersion. This API is supported in the following national cloud deployments. * @param Workflow $body The request body * @param WorkflowItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -178,7 +178,7 @@ public function patch(Workflow $body, ?WorkflowItemRequestBuilderPatchRequestCon } /** - * Delete a workflow object and its associated tasks, taskProcessingResults and versions. You can restore a deleted workflow and its associated objects within 30 days of deletion. + * Delete a workflow object and its associated tasks, taskProcessingResults and versions. You can restore a deleted workflow and its associated objects within 30 days of deletion. This API is supported in the following national cloud deployments. * @param WorkflowItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -195,7 +195,7 @@ public function toDeleteRequestInformation(?WorkflowItemRequestBuilderDeleteRequ } /** - * Read the properties and relationships of a workflow object. + * Read the properties and relationships of a workflow object. This API is supported in the following national cloud deployments. * @param WorkflowItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -216,7 +216,7 @@ public function toGetRequestInformation(?WorkflowItemRequestBuilderGetRequestCon } /** - * Update the properties of a workflow object. Only the properties listed in the request body table can be updated. To update any other workflow properties, see workflow: createNewVersion. + * Update the properties of a workflow object. Only the properties listed in the request body table can be updated. To update any other workflow properties, see workflow: createNewVersion. This API is supported in the following national cloud deployments. * @param Workflow $body The request body * @param WorkflowItemRequestBuilderPatchRequestConfiguration|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/WorkflowItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/WorkflowItemRequestBuilderGetQueryParameters.php index 0c95fb617d7..89967dd83d6 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/WorkflowItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/WorkflowItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a workflow object. + * Read the properties and relationships of a workflow object. This API is supported in the following national cloud deployments. */ class WorkflowItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/WorkflowsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/WorkflowsRequestBuilder.php index d149a015d6a..9ccff3dcd2e 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/WorkflowsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/WorkflowsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of workflow resources that are associated with lifecycle workflows. + * Get a list of workflow resources that are associated with lifecycle workflows. This API is supported in the following national cloud deployments. * @param WorkflowsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identitygovernance-lifecycleworkflowscontainer-list-workflows?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?WorkflowsRequestBuilderGetRequestConfiguration $requestConf } /** - * Create a new workflow object. You can create up to 50 workflows in a tenant. + * Create a new workflow object. You can create up to 50 workflows in a tenant. This API is supported in the following national cloud deployments. * @param Workflow $body The request body * @param WorkflowsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(Workflow $body, ?WorkflowsRequestBuilderPostRequestConfigur } /** - * Get a list of workflow resources that are associated with lifecycle workflows. + * Get a list of workflow resources that are associated with lifecycle workflows. This API is supported in the following national cloud deployments. * @param WorkflowsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?WorkflowsRequestBuilderGetRequestConfig } /** - * Create a new workflow object. You can create up to 50 workflows in a tenant. + * Create a new workflow object. You can create up to 50 workflows in a tenant. This API is supported in the following national cloud deployments. * @param Workflow $body The request body * @param WorkflowsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/WorkflowsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/WorkflowsRequestBuilderGetQueryParameters.php index 62cc9f2bcec..188748619b8 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/WorkflowsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/WorkflowsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of workflow resources that are associated with lifecycle workflows. + * Get a list of workflow resources that are associated with lifecycle workflows. This API is supported in the following national cloud deployments. */ class WorkflowsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/AssignmentApprovalsRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/AssignmentApprovalsRequestBuilder.php new file mode 100644 index 00000000000..e23b6036660 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/AssignmentApprovalsRequestBuilder.php @@ -0,0 +1,152 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the assignmentApprovals property of the microsoft.graph.privilegedAccessGroup entity. + * @param string $approvalId The unique identifier of approval + * @return ApprovalItemRequestBuilder + */ + public function byApprovalId(string $approvalId): ApprovalItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['approval%2Did'] = $approvalId; + return new ApprovalItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new AssignmentApprovalsRequestBuilder 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}/identityGovernance/privilegedAccess/group/assignmentApprovals{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Provides operations to call the filterByCurrentUser method. + * @param string $on Usage: on='{on}' + * @return FilterByCurrentUserWithOnRequestBuilder + */ + public function filterByCurrentUserWithOn(string $on): FilterByCurrentUserWithOnRequestBuilder { + return new FilterByCurrentUserWithOnRequestBuilder($this->pathParameters, $this->requestAdapter, $on); + } + + /** + * Get assignmentApprovals from identityGovernance + * @param AssignmentApprovalsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?AssignmentApprovalsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ApprovalCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to assignmentApprovals for identityGovernance + * @param Approval $body The request body + * @param AssignmentApprovalsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(Approval $body, ?AssignmentApprovalsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [Approval::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get assignmentApprovals from identityGovernance + * @param AssignmentApprovalsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?AssignmentApprovalsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to assignmentApprovals for identityGovernance + * @param Approval $body The request body + * @param AssignmentApprovalsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(Approval $body, ?AssignmentApprovalsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 AssignmentApprovalsRequestBuilder + */ + public function withUrl(string $rawUrl): AssignmentApprovalsRequestBuilder { + return new AssignmentApprovalsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/AssignmentApprovalsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/AssignmentApprovalsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..9097b6023ee --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/AssignmentApprovalsRequestBuilderGetQueryParameters.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 assignmentApprovalsRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/AssignmentApprovalsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/AssignmentApprovalsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..0ee619ff4c3 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/AssignmentApprovalsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param AssignmentApprovalsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?AssignmentApprovalsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new assignmentApprovalsRequestBuilderGetQueryParameters. + * @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 AssignmentApprovalsRequestBuilderGetQueryParameters + */ + 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): AssignmentApprovalsRequestBuilderGetQueryParameters { + return new AssignmentApprovalsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/AssignmentApprovalsRequestBuilderPostRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/AssignmentApprovalsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..70b1071bf30 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/AssignmentApprovalsRequestBuilderPostRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..9b013e5c5db --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/privilegedAccess/group/assignmentApprovals/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..06d90e13c21 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..6c72065e78d --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/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/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php new file mode 100644 index 00000000000..f7841cd525c --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Approval::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, Approval::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/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php new file mode 100644 index 00000000000..41667014cac --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -0,0 +1,84 @@ +|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 $on Usage: on='{on}' + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter, ?string $on = null) { + parent::__construct($requestAdapter, [], '{+baseurl}/identityGovernance/privilegedAccess/group/assignmentApprovals/filterByCurrentUser(on=\'{on}\'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}'); + if (is_array($pathParametersOrRawUrl)) { + $urlTplParams = $pathParametersOrRawUrl; + $urlTplParams['on'] = $on; + $this->pathParameters = $urlTplParams; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke function filterByCurrentUser + * @param FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Invoke function filterByCurrentUser + * @param FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 FilterByCurrentUserWithOnRequestBuilder + */ + public function withUrl(string $rawUrl): FilterByCurrentUserWithOnRequestBuilder { + return new FilterByCurrentUserWithOnRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..990f06618ef --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetQueryParameters.php @@ -0,0 +1,74 @@ +|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 filterByCurrentUserWithOnRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @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, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) { + $this->count = $count; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..18920b20aad --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,44 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param FilterByCurrentUserWithOnRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?FilterByCurrentUserWithOnRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new filterByCurrentUserWithOnRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @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 FilterByCurrentUserWithOnRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { + return new FilterByCurrentUserWithOnRequestBuilderGetQueryParameters($count, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/ApprovalItemRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/ApprovalItemRequestBuilder.php new file mode 100644 index 00000000000..da01d28a357 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/ApprovalItemRequestBuilder.php @@ -0,0 +1,164 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ApprovalItemRequestBuilder 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}/identityGovernance/privilegedAccess/group/assignmentApprovals/{approval%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property assignmentApprovals for identityGovernance + * @param ApprovalItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?ApprovalItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get assignmentApprovals from identityGovernance + * @param ApprovalItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ApprovalItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [Approval::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property assignmentApprovals in identityGovernance + * @param Approval $body The request body + * @param ApprovalItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(Approval $body, ?ApprovalItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [Approval::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property assignmentApprovals for identityGovernance + * @param ApprovalItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?ApprovalItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get assignmentApprovals from identityGovernance + * @param ApprovalItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ApprovalItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property assignmentApprovals in identityGovernance + * @param Approval $body The request body + * @param ApprovalItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(Approval $body, ?ApprovalItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 ApprovalItemRequestBuilder + */ + public function withUrl(string $rawUrl): ApprovalItemRequestBuilder { + return new ApprovalItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/ApprovalItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/ApprovalItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..c0e8c2da405 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/ApprovalItemRequestBuilderDeleteRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/ApprovalItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/ApprovalItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d1c21a951df --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/ApprovalItemRequestBuilderGetQueryParameters.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 ApprovalItemRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/ApprovalItemRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/ApprovalItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..31a295c05bb --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/ApprovalItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ApprovalItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ApprovalItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ApprovalItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return ApprovalItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): ApprovalItemRequestBuilderGetQueryParameters { + return new ApprovalItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/ApprovalItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/ApprovalItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..e006a8f1bbc --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/ApprovalItemRequestBuilderPatchRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..af52f99c395 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/privilegedAccess/group/assignmentApprovals/{approval%2Did}/stages/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..6a387969017 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..7bb2070429b --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/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/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilder.php new file mode 100644 index 00000000000..847009699c2 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilder.php @@ -0,0 +1,158 @@ +|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}/identityGovernance/privilegedAccess/group/assignmentApprovals/{approval%2Did}/stages/{approvalStage%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property stages for identityGovernance + * @param ApprovalStageItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?ApprovalStageItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. This API is supported in the following national cloud deployments. + * @param ApprovalStageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/approvalstage-get?view=graph-rest-1.0 Find more info here + */ + public function get(?ApprovalStageItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ApprovalStage::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * In Azure AD entitlement management, approve or deny an approvalStage object in an approval. This API is supported in the following national cloud deployments. + * @param ApprovalStage $body The request body + * @param ApprovalStageItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/approvalstage-update?view=graph-rest-1.0 Find more info here + */ + public function patch(ApprovalStage $body, ?ApprovalStageItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ApprovalStage::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property stages for identityGovernance + * @param ApprovalStageItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?ApprovalStageItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. This API is supported in the following national cloud deployments. + * @param ApprovalStageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ApprovalStageItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * In Azure AD entitlement management, approve or deny an approvalStage object in an approval. This API is supported in the following national cloud deployments. + * @param ApprovalStage $body The request body + * @param ApprovalStageItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(ApprovalStage $body, ?ApprovalStageItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 ApprovalStageItemRequestBuilder + */ + public function withUrl(string $rawUrl): ApprovalStageItemRequestBuilder { + return new ApprovalStageItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..df5526eb0bb --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilderDeleteRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..24b4e6ffcd8 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilderGetQueryParameters.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 ApprovalStageItemRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..cd3a17b305a --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ApprovalStageItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ApprovalStageItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ApprovalStageItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return ApprovalStageItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): ApprovalStageItemRequestBuilderGetQueryParameters { + return new ApprovalStageItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..f4bd63ed78d --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilderPatchRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/StagesRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/StagesRequestBuilder.php new file mode 100644 index 00000000000..b59bc6e5a9f --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/StagesRequestBuilder.php @@ -0,0 +1,143 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the stages property of the microsoft.graph.approval entity. + * @param string $approvalStageId The unique identifier of approvalStage + * @return ApprovalStageItemRequestBuilder + */ + public function byApprovalStageId(string $approvalStageId): ApprovalStageItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['approvalStage%2Did'] = $approvalStageId; + return new ApprovalStageItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new StagesRequestBuilder 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}/identityGovernance/privilegedAccess/group/assignmentApprovals/{approval%2Did}/stages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. + * @param StagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @link https://learn.microsoft.com/graph/api/approval-list-stages?view=graph-rest-1.0 Find more info here + */ + public function get(?StagesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ApprovalStageCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to stages for identityGovernance + * @param ApprovalStage $body The request body + * @param StagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(ApprovalStage $body, ?StagesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ApprovalStage::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. + * @param StagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?StagesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to stages for identityGovernance + * @param ApprovalStage $body The request body + * @param StagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ApprovalStage $body, ?StagesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 StagesRequestBuilder + */ + public function withUrl(string $rawUrl): StagesRequestBuilder { + return new StagesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/StagesRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/StagesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..ea752da3b7d --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/StagesRequestBuilderGetQueryParameters.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 stagesRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/StagesRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/StagesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..a7d08151ea8 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/StagesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param StagesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?StagesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new stagesRequestBuilderGetQueryParameters. + * @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 StagesRequestBuilderGetQueryParameters + */ + 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): StagesRequestBuilderGetQueryParameters { + return new StagesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/StagesRequestBuilderPostRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/StagesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..a9dd8e13c00 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/StagesRequestBuilderPostRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilder.php new file mode 100644 index 00000000000..1fad0caf790 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilder.php @@ -0,0 +1,152 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the assignmentScheduleInstances property of the microsoft.graph.privilegedAccessGroup entity. + * @param string $privilegedAccessGroupAssignmentScheduleInstanceId The unique identifier of privilegedAccessGroupAssignmentScheduleInstance + * @return PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder + */ + public function byPrivilegedAccessGroupAssignmentScheduleInstanceId(string $privilegedAccessGroupAssignmentScheduleInstanceId): PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['privilegedAccessGroupAssignmentScheduleInstance%2Did'] = $privilegedAccessGroupAssignmentScheduleInstanceId; + return new PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new AssignmentScheduleInstancesRequestBuilder 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}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Provides operations to call the filterByCurrentUser method. + * @param string $on Usage: on='{on}' + * @return FilterByCurrentUserWithOnRequestBuilder + */ + public function filterByCurrentUserWithOn(string $on): FilterByCurrentUserWithOnRequestBuilder { + return new FilterByCurrentUserWithOnRequestBuilder($this->pathParameters, $this->requestAdapter, $on); + } + + /** + * Get assignmentScheduleInstances from identityGovernance + * @param AssignmentScheduleInstancesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?AssignmentScheduleInstancesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to assignmentScheduleInstances for identityGovernance + * @param PrivilegedAccessGroupAssignmentScheduleInstance $body The request body + * @param AssignmentScheduleInstancesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(PrivilegedAccessGroupAssignmentScheduleInstance $body, ?AssignmentScheduleInstancesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupAssignmentScheduleInstance::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get assignmentScheduleInstances from identityGovernance + * @param AssignmentScheduleInstancesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?AssignmentScheduleInstancesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to assignmentScheduleInstances for identityGovernance + * @param PrivilegedAccessGroupAssignmentScheduleInstance $body The request body + * @param AssignmentScheduleInstancesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(PrivilegedAccessGroupAssignmentScheduleInstance $body, ?AssignmentScheduleInstancesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 AssignmentScheduleInstancesRequestBuilder + */ + public function withUrl(string $rawUrl): AssignmentScheduleInstancesRequestBuilder { + return new AssignmentScheduleInstancesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d52ba1fb538 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilderGetQueryParameters.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 assignmentScheduleInstancesRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..77c91613736 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param AssignmentScheduleInstancesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?AssignmentScheduleInstancesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new assignmentScheduleInstancesRequestBuilderGetQueryParameters. + * @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 AssignmentScheduleInstancesRequestBuilderGetQueryParameters + */ + 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): AssignmentScheduleInstancesRequestBuilderGetQueryParameters { + return new AssignmentScheduleInstancesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilderPostRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..1b2b0c830d7 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilderPostRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..ad3983bd9e1 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..ea131fd9833 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..9e877d2c911 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php new file mode 100644 index 00000000000..a73cb665181 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([PrivilegedAccessGroupAssignmentScheduleInstance::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, PrivilegedAccessGroupAssignmentScheduleInstance::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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php new file mode 100644 index 00000000000..2fc51b3ca55 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -0,0 +1,84 @@ +|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 $on Usage: on='{on}' + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter, ?string $on = null) { + parent::__construct($requestAdapter, [], '{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/filterByCurrentUser(on=\'{on}\'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}'); + if (is_array($pathParametersOrRawUrl)) { + $urlTplParams = $pathParametersOrRawUrl; + $urlTplParams['on'] = $on; + $this->pathParameters = $urlTplParams; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke function filterByCurrentUser + * @param FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Invoke function filterByCurrentUser + * @param FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 FilterByCurrentUserWithOnRequestBuilder + */ + public function withUrl(string $rawUrl): FilterByCurrentUserWithOnRequestBuilder { + return new FilterByCurrentUserWithOnRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..280eceeaecd --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetQueryParameters.php @@ -0,0 +1,74 @@ +|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 filterByCurrentUserWithOnRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @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, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) { + $this->count = $count; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..2859d5d05d6 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,44 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param FilterByCurrentUserWithOnRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?FilterByCurrentUserWithOnRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new filterByCurrentUserWithOnRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @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 FilterByCurrentUserWithOnRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { + return new FilterByCurrentUserWithOnRequestBuilderGetQueryParameters($count, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php new file mode 100644 index 00000000000..103005c629b --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php @@ -0,0 +1,82 @@ +|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}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/{privilegedAccessGroupAssignmentScheduleInstance%2Did}/activatedUsing{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get activatedUsing from identityGovernance + * @param ActivatedUsingRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ActivatedUsingRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupEligibilityScheduleInstance::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get activatedUsing from identityGovernance + * @param ActivatedUsingRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ActivatedUsingRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ActivatedUsingRequestBuilder + */ + public function withUrl(string $rawUrl): ActivatedUsingRequestBuilder { + return new ActivatedUsingRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..b7707e2a3f3 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilderGetQueryParameters.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 activatedUsingRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..24b750d92cf --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ActivatedUsingRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ActivatedUsingRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new activatedUsingRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return ActivatedUsingRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): ActivatedUsingRequestBuilderGetQueryParameters { + return new ActivatedUsingRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/GroupRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/GroupRequestBuilder.php new file mode 100644 index 00000000000..f60a4c20f7e --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/GroupRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new GroupRequestBuilder 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}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/{privilegedAccessGroupAssignmentScheduleInstance%2Did}/group{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get group from identityGovernance + * @param GroupRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?GroupRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [Group::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get group from identityGovernance + * @param GroupRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 GroupRequestBuilder + */ + public function withUrl(string $rawUrl): GroupRequestBuilder { + return new GroupRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/GroupRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/GroupRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..1ca393688f9 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/GroupRequestBuilderGetQueryParameters.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 groupRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/GroupRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/GroupRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..d6d28dc95e6 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/GroupRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param GroupRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?GroupRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new groupRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return GroupRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): GroupRequestBuilderGetQueryParameters { + return new GroupRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..3f04ad7b3ce --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/{privilegedAccessGroupAssignmentScheduleInstance%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..9bf6dbb573f --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..75116f7c020 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..37ec71687f5 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/{privilegedAccessGroupAssignmentScheduleInstance%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..b92ad27ac06 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..913846e7b9c --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.php new file mode 100644 index 00000000000..0cccc6a522f --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.php @@ -0,0 +1,82 @@ +|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}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/{privilegedAccessGroupAssignmentScheduleInstance%2Did}/principal{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get principal from identityGovernance + * @param PrincipalRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?PrincipalRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [DirectoryObject::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get principal from identityGovernance + * @param PrincipalRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 PrincipalRequestBuilder + */ + public function withUrl(string $rawUrl): PrincipalRequestBuilder { + return new PrincipalRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d1d001f733c --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilderGetQueryParameters.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 principalRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..ba9aee7f2cd --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param PrincipalRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?PrincipalRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new principalRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return PrincipalRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): PrincipalRequestBuilderGetQueryParameters { + return new PrincipalRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder.php new file mode 100644 index 00000000000..ecc78c0fd99 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder.php @@ -0,0 +1,180 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleInstance entity. + */ + public function group(): GroupRequestBuilder { + return new GroupRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleInstance entity. + */ + public function principal(): PrincipalRequestBuilder { + return new PrincipalRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder 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}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/{privilegedAccessGroupAssignmentScheduleInstance%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property assignmentScheduleInstances for identityGovernance + * @param PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get assignmentScheduleInstances from identityGovernance + * @param PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupAssignmentScheduleInstance::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property assignmentScheduleInstances in identityGovernance + * @param PrivilegedAccessGroupAssignmentScheduleInstance $body The request body + * @param PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(PrivilegedAccessGroupAssignmentScheduleInstance $body, ?PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupAssignmentScheduleInstance::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property assignmentScheduleInstances for identityGovernance + * @param PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get assignmentScheduleInstances from identityGovernance + * @param PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property assignmentScheduleInstances in identityGovernance + * @param PrivilegedAccessGroupAssignmentScheduleInstance $body The request body + * @param PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(PrivilegedAccessGroupAssignmentScheduleInstance $body, ?PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder + */ + public function withUrl(string $rawUrl): PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder { + return new PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..01f35c01732 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderDeleteRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..ad9b3dbc5f4 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetQueryParameters.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 PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..be73dfa8fdc --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetQueryParameters { + return new PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..96ec479ed86 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderPatchRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilder.php new file mode 100644 index 00000000000..c18be531a58 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilder.php @@ -0,0 +1,152 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the assignmentScheduleRequests property of the microsoft.graph.privilegedAccessGroup entity. + * @param string $privilegedAccessGroupAssignmentScheduleRequestId The unique identifier of privilegedAccessGroupAssignmentScheduleRequest + * @return PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder + */ + public function byPrivilegedAccessGroupAssignmentScheduleRequestId(string $privilegedAccessGroupAssignmentScheduleRequestId): PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['privilegedAccessGroupAssignmentScheduleRequest%2Did'] = $privilegedAccessGroupAssignmentScheduleRequestId; + return new PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new AssignmentScheduleRequestsRequestBuilder 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}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Provides operations to call the filterByCurrentUser method. + * @param string $on Usage: on='{on}' + * @return FilterByCurrentUserWithOnRequestBuilder + */ + public function filterByCurrentUserWithOn(string $on): FilterByCurrentUserWithOnRequestBuilder { + return new FilterByCurrentUserWithOnRequestBuilder($this->pathParameters, $this->requestAdapter, $on); + } + + /** + * Get assignmentScheduleRequests from identityGovernance + * @param AssignmentScheduleRequestsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?AssignmentScheduleRequestsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to assignmentScheduleRequests for identityGovernance + * @param PrivilegedAccessGroupAssignmentScheduleRequest $body The request body + * @param AssignmentScheduleRequestsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(PrivilegedAccessGroupAssignmentScheduleRequest $body, ?AssignmentScheduleRequestsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupAssignmentScheduleRequest::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get assignmentScheduleRequests from identityGovernance + * @param AssignmentScheduleRequestsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?AssignmentScheduleRequestsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to assignmentScheduleRequests for identityGovernance + * @param PrivilegedAccessGroupAssignmentScheduleRequest $body The request body + * @param AssignmentScheduleRequestsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(PrivilegedAccessGroupAssignmentScheduleRequest $body, ?AssignmentScheduleRequestsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 AssignmentScheduleRequestsRequestBuilder + */ + public function withUrl(string $rawUrl): AssignmentScheduleRequestsRequestBuilder { + return new AssignmentScheduleRequestsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..7e76d3ea14f --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilderGetQueryParameters.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 assignmentScheduleRequestsRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..4e6b087ad11 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param AssignmentScheduleRequestsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?AssignmentScheduleRequestsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new assignmentScheduleRequestsRequestBuilderGetQueryParameters. + * @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 AssignmentScheduleRequestsRequestBuilderGetQueryParameters + */ + 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): AssignmentScheduleRequestsRequestBuilderGetQueryParameters { + return new AssignmentScheduleRequestsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilderPostRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..7699784aa51 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilderPostRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..137e6319294 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d35141cf35e --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..3bd769854fe --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php new file mode 100644 index 00000000000..386a8412559 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([PrivilegedAccessGroupAssignmentScheduleRequest::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, PrivilegedAccessGroupAssignmentScheduleRequest::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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php new file mode 100644 index 00000000000..5b60482f490 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -0,0 +1,84 @@ +|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 $on Usage: on='{on}' + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter, ?string $on = null) { + parent::__construct($requestAdapter, [], '{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/filterByCurrentUser(on=\'{on}\'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}'); + if (is_array($pathParametersOrRawUrl)) { + $urlTplParams = $pathParametersOrRawUrl; + $urlTplParams['on'] = $on; + $this->pathParameters = $urlTplParams; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke function filterByCurrentUser + * @param FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Invoke function filterByCurrentUser + * @param FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 FilterByCurrentUserWithOnRequestBuilder + */ + public function withUrl(string $rawUrl): FilterByCurrentUserWithOnRequestBuilder { + return new FilterByCurrentUserWithOnRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..e94b70a1dda --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetQueryParameters.php @@ -0,0 +1,74 @@ +|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 filterByCurrentUserWithOnRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @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, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) { + $this->count = $count; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e2d36f821f5 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,44 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param FilterByCurrentUserWithOnRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?FilterByCurrentUserWithOnRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new filterByCurrentUserWithOnRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @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 FilterByCurrentUserWithOnRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { + return new FilterByCurrentUserWithOnRequestBuilderGetQueryParameters($count, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php new file mode 100644 index 00000000000..af7ff163c93 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php @@ -0,0 +1,82 @@ +|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}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/activatedUsing{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get activatedUsing from identityGovernance + * @param ActivatedUsingRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ActivatedUsingRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupEligibilitySchedule::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get activatedUsing from identityGovernance + * @param ActivatedUsingRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ActivatedUsingRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ActivatedUsingRequestBuilder + */ + public function withUrl(string $rawUrl): ActivatedUsingRequestBuilder { + return new ActivatedUsingRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..19be6886a59 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilderGetQueryParameters.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 activatedUsingRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..eaa0c3188b5 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ActivatedUsingRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ActivatedUsingRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new activatedUsingRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return ActivatedUsingRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): ActivatedUsingRequestBuilderGetQueryParameters { + return new ActivatedUsingRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.php new file mode 100644 index 00000000000..19b7cd7bbf0 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.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}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/cancel'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke action cancel + * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(?CancelRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Invoke action cancel + * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?CancelRequestBuilderPostRequestConfiguration $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); + } + 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 CancelRequestBuilder + */ + public function withUrl(string $rawUrl): CancelRequestBuilder { + return new CancelRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Cancel/CancelRequestBuilderPostRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Cancel/CancelRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..3e4799428f1 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Cancel/CancelRequestBuilderPostRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/GroupRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/GroupRequestBuilder.php new file mode 100644 index 00000000000..e2bfc77598f --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/GroupRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new GroupRequestBuilder 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}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/group{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get group from identityGovernance + * @param GroupRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?GroupRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [Group::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get group from identityGovernance + * @param GroupRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 GroupRequestBuilder + */ + public function withUrl(string $rawUrl): GroupRequestBuilder { + return new GroupRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/GroupRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/GroupRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..967f240c24e --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/GroupRequestBuilderGetQueryParameters.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 groupRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/GroupRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/GroupRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..b0b6bd43c72 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/GroupRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param GroupRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?GroupRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new groupRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return GroupRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): GroupRequestBuilderGetQueryParameters { + return new GroupRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..a08304a0274 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..fa35f7c3e45 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..6ae322cf21f --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..7e5fcbf6b79 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..7b93e9bc733 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..c4b064b63f7 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.php new file mode 100644 index 00000000000..d0c115621ec --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.php @@ -0,0 +1,82 @@ +|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}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/principal{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get principal from identityGovernance + * @param PrincipalRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?PrincipalRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [DirectoryObject::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get principal from identityGovernance + * @param PrincipalRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 PrincipalRequestBuilder + */ + public function withUrl(string $rawUrl): PrincipalRequestBuilder { + return new PrincipalRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..0956d156643 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilderGetQueryParameters.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 principalRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..cb555b3b937 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param PrincipalRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?PrincipalRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new principalRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return PrincipalRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): PrincipalRequestBuilderGetQueryParameters { + return new PrincipalRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder.php new file mode 100644 index 00000000000..f3763f01d59 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder.php @@ -0,0 +1,196 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to call the cancel method. + */ + public function cancel(): CancelRequestBuilder { + return new CancelRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest entity. + */ + public function group(): GroupRequestBuilder { + return new GroupRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest entity. + */ + public function principal(): PrincipalRequestBuilder { + return new PrincipalRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the targetSchedule property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest entity. + */ + public function targetSchedule(): TargetScheduleRequestBuilder { + return new TargetScheduleRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder 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}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property assignmentScheduleRequests for identityGovernance + * @param PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get assignmentScheduleRequests from identityGovernance + * @param PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupAssignmentScheduleRequest::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property assignmentScheduleRequests in identityGovernance + * @param PrivilegedAccessGroupAssignmentScheduleRequest $body The request body + * @param PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(PrivilegedAccessGroupAssignmentScheduleRequest $body, ?PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupAssignmentScheduleRequest::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property assignmentScheduleRequests for identityGovernance + * @param PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get assignmentScheduleRequests from identityGovernance + * @param PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property assignmentScheduleRequests in identityGovernance + * @param PrivilegedAccessGroupAssignmentScheduleRequest $body The request body + * @param PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(PrivilegedAccessGroupAssignmentScheduleRequest $body, ?PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder + */ + public function withUrl(string $rawUrl): PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder { + return new PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..5f5d533b4fc --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderDeleteRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..04dd2ce0e45 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetQueryParameters.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 PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..1e4b3c86285 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetQueryParameters { + return new PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..5220b29a2de --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderPatchRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php new file mode 100644 index 00000000000..fbd93d764ba --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php @@ -0,0 +1,82 @@ +|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}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/targetSchedule{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get targetSchedule from identityGovernance + * @param TargetScheduleRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?TargetScheduleRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupEligibilitySchedule::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get targetSchedule from identityGovernance + * @param TargetScheduleRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?TargetScheduleRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 TargetScheduleRequestBuilder + */ + public function withUrl(string $rawUrl): TargetScheduleRequestBuilder { + return new TargetScheduleRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..abc293f56f5 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilderGetQueryParameters.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 targetScheduleRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..069af5c6e8f --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param TargetScheduleRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?TargetScheduleRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new targetScheduleRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return TargetScheduleRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): TargetScheduleRequestBuilderGetQueryParameters { + return new TargetScheduleRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilder.php new file mode 100644 index 00000000000..feb827a8f01 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilder.php @@ -0,0 +1,152 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the assignmentSchedules property of the microsoft.graph.privilegedAccessGroup entity. + * @param string $privilegedAccessGroupAssignmentScheduleId The unique identifier of privilegedAccessGroupAssignmentSchedule + * @return PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder + */ + public function byPrivilegedAccessGroupAssignmentScheduleId(string $privilegedAccessGroupAssignmentScheduleId): PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['privilegedAccessGroupAssignmentSchedule%2Did'] = $privilegedAccessGroupAssignmentScheduleId; + return new PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new AssignmentSchedulesRequestBuilder 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}/identityGovernance/privilegedAccess/group/assignmentSchedules{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Provides operations to call the filterByCurrentUser method. + * @param string $on Usage: on='{on}' + * @return FilterByCurrentUserWithOnRequestBuilder + */ + public function filterByCurrentUserWithOn(string $on): FilterByCurrentUserWithOnRequestBuilder { + return new FilterByCurrentUserWithOnRequestBuilder($this->pathParameters, $this->requestAdapter, $on); + } + + /** + * Get assignmentSchedules from identityGovernance + * @param AssignmentSchedulesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?AssignmentSchedulesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupAssignmentScheduleCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to assignmentSchedules for identityGovernance + * @param PrivilegedAccessGroupAssignmentSchedule $body The request body + * @param AssignmentSchedulesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(PrivilegedAccessGroupAssignmentSchedule $body, ?AssignmentSchedulesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupAssignmentSchedule::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get assignmentSchedules from identityGovernance + * @param AssignmentSchedulesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?AssignmentSchedulesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to assignmentSchedules for identityGovernance + * @param PrivilegedAccessGroupAssignmentSchedule $body The request body + * @param AssignmentSchedulesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(PrivilegedAccessGroupAssignmentSchedule $body, ?AssignmentSchedulesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 AssignmentSchedulesRequestBuilder + */ + public function withUrl(string $rawUrl): AssignmentSchedulesRequestBuilder { + return new AssignmentSchedulesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..247fad87eaf --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilderGetQueryParameters.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 assignmentSchedulesRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..db39dc0ce6a --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param AssignmentSchedulesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?AssignmentSchedulesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new assignmentSchedulesRequestBuilderGetQueryParameters. + * @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 AssignmentSchedulesRequestBuilderGetQueryParameters + */ + 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): AssignmentSchedulesRequestBuilderGetQueryParameters { + return new AssignmentSchedulesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilderPostRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..7c74b63c528 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilderPostRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..5ad172ad372 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/privilegedAccess/group/assignmentSchedules/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..1bfd526b610 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..799353d8bf1 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/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/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php new file mode 100644 index 00000000000..1d333ef28bb --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([PrivilegedAccessGroupAssignmentSchedule::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, PrivilegedAccessGroupAssignmentSchedule::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/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php new file mode 100644 index 00000000000..6702d9b28b4 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -0,0 +1,84 @@ +|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 $on Usage: on='{on}' + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter, ?string $on = null) { + parent::__construct($requestAdapter, [], '{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/filterByCurrentUser(on=\'{on}\'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}'); + if (is_array($pathParametersOrRawUrl)) { + $urlTplParams = $pathParametersOrRawUrl; + $urlTplParams['on'] = $on; + $this->pathParameters = $urlTplParams; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke function filterByCurrentUser + * @param FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Invoke function filterByCurrentUser + * @param FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 FilterByCurrentUserWithOnRequestBuilder + */ + public function withUrl(string $rawUrl): FilterByCurrentUserWithOnRequestBuilder { + return new FilterByCurrentUserWithOnRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..2a3670d49f9 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetQueryParameters.php @@ -0,0 +1,74 @@ +|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 filterByCurrentUserWithOnRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @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, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) { + $this->count = $count; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..da832a90ac5 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,44 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param FilterByCurrentUserWithOnRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?FilterByCurrentUserWithOnRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new filterByCurrentUserWithOnRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @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 FilterByCurrentUserWithOnRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { + return new FilterByCurrentUserWithOnRequestBuilderGetQueryParameters($count, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php new file mode 100644 index 00000000000..4b853ee0884 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php @@ -0,0 +1,82 @@ +|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}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}/activatedUsing{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get activatedUsing from identityGovernance + * @param ActivatedUsingRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ActivatedUsingRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupEligibilitySchedule::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get activatedUsing from identityGovernance + * @param ActivatedUsingRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ActivatedUsingRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ActivatedUsingRequestBuilder + */ + public function withUrl(string $rawUrl): ActivatedUsingRequestBuilder { + return new ActivatedUsingRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..8bd97230ba0 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilderGetQueryParameters.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 activatedUsingRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..336aa34cdf7 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ActivatedUsingRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ActivatedUsingRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new activatedUsingRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return ActivatedUsingRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): ActivatedUsingRequestBuilderGetQueryParameters { + return new ActivatedUsingRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/GroupRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/GroupRequestBuilder.php new file mode 100644 index 00000000000..0bdfd9ddb17 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/GroupRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new GroupRequestBuilder 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}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}/group{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get group from identityGovernance + * @param GroupRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?GroupRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [Group::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get group from identityGovernance + * @param GroupRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 GroupRequestBuilder + */ + public function withUrl(string $rawUrl): GroupRequestBuilder { + return new GroupRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/GroupRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/GroupRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..7c6c8a532bd --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/GroupRequestBuilderGetQueryParameters.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 groupRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/GroupRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/GroupRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..1521ea2d117 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/GroupRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param GroupRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?GroupRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new groupRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return GroupRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): GroupRequestBuilderGetQueryParameters { + return new GroupRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..56f3139a611 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..f8583047140 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..7123f9f1486 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/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/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..cd5adf55ad1 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..bc4348f0ae7 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..696c02b541d --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Principal/PrincipalRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Principal/PrincipalRequestBuilder.php new file mode 100644 index 00000000000..de9adc041a7 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Principal/PrincipalRequestBuilder.php @@ -0,0 +1,82 @@ +|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}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}/principal{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get principal from identityGovernance + * @param PrincipalRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?PrincipalRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [DirectoryObject::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get principal from identityGovernance + * @param PrincipalRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 PrincipalRequestBuilder + */ + public function withUrl(string $rawUrl): PrincipalRequestBuilder { + return new PrincipalRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Principal/PrincipalRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Principal/PrincipalRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..6aa0b423e96 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Principal/PrincipalRequestBuilderGetQueryParameters.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 principalRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Principal/PrincipalRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Principal/PrincipalRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..68c0174ec1a --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Principal/PrincipalRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param PrincipalRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?PrincipalRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new principalRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return PrincipalRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): PrincipalRequestBuilderGetQueryParameters { + return new PrincipalRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder.php new file mode 100644 index 00000000000..c4d13b39b25 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder.php @@ -0,0 +1,180 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupAssignmentSchedule entity. + */ + public function group(): GroupRequestBuilder { + return new GroupRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupAssignmentSchedule entity. + */ + public function principal(): PrincipalRequestBuilder { + return new PrincipalRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder 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}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property assignmentSchedules for identityGovernance + * @param PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get assignmentSchedules from identityGovernance + * @param PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupAssignmentSchedule::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property assignmentSchedules in identityGovernance + * @param PrivilegedAccessGroupAssignmentSchedule $body The request body + * @param PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(PrivilegedAccessGroupAssignmentSchedule $body, ?PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupAssignmentSchedule::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property assignmentSchedules for identityGovernance + * @param PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get assignmentSchedules from identityGovernance + * @param PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property assignmentSchedules in identityGovernance + * @param PrivilegedAccessGroupAssignmentSchedule $body The request body + * @param PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(PrivilegedAccessGroupAssignmentSchedule $body, ?PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder + */ + public function withUrl(string $rawUrl): PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder { + return new PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..c7764f209ee --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderDeleteRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..460b71a0661 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetQueryParameters.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 PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..27ff0e125a0 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetQueryParameters { + return new PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..5e36b0f7031 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderPatchRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..aabed7c7e51 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..60e02cadc15 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e7f39a59067 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilder.php new file mode 100644 index 00000000000..b7756f70bce --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilder.php @@ -0,0 +1,152 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the eligibilityScheduleInstances property of the microsoft.graph.privilegedAccessGroup entity. + * @param string $privilegedAccessGroupEligibilityScheduleInstanceId The unique identifier of privilegedAccessGroupEligibilityScheduleInstance + * @return PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder + */ + public function byPrivilegedAccessGroupEligibilityScheduleInstanceId(string $privilegedAccessGroupEligibilityScheduleInstanceId): PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['privilegedAccessGroupEligibilityScheduleInstance%2Did'] = $privilegedAccessGroupEligibilityScheduleInstanceId; + return new PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new EligibilityScheduleInstancesRequestBuilder 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}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Provides operations to call the filterByCurrentUser method. + * @param string $on Usage: on='{on}' + * @return FilterByCurrentUserWithOnRequestBuilder + */ + public function filterByCurrentUserWithOn(string $on): FilterByCurrentUserWithOnRequestBuilder { + return new FilterByCurrentUserWithOnRequestBuilder($this->pathParameters, $this->requestAdapter, $on); + } + + /** + * Get eligibilityScheduleInstances from identityGovernance + * @param EligibilityScheduleInstancesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?EligibilityScheduleInstancesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to eligibilityScheduleInstances for identityGovernance + * @param PrivilegedAccessGroupEligibilityScheduleInstance $body The request body + * @param EligibilityScheduleInstancesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(PrivilegedAccessGroupEligibilityScheduleInstance $body, ?EligibilityScheduleInstancesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupEligibilityScheduleInstance::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get eligibilityScheduleInstances from identityGovernance + * @param EligibilityScheduleInstancesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?EligibilityScheduleInstancesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to eligibilityScheduleInstances for identityGovernance + * @param PrivilegedAccessGroupEligibilityScheduleInstance $body The request body + * @param EligibilityScheduleInstancesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(PrivilegedAccessGroupEligibilityScheduleInstance $body, ?EligibilityScheduleInstancesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 EligibilityScheduleInstancesRequestBuilder + */ + public function withUrl(string $rawUrl): EligibilityScheduleInstancesRequestBuilder { + return new EligibilityScheduleInstancesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..5282524d260 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilderGetQueryParameters.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 eligibilityScheduleInstancesRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..de9c5f0ec1d --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param EligibilityScheduleInstancesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?EligibilityScheduleInstancesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new eligibilityScheduleInstancesRequestBuilderGetQueryParameters. + * @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 EligibilityScheduleInstancesRequestBuilderGetQueryParameters + */ + 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): EligibilityScheduleInstancesRequestBuilderGetQueryParameters { + return new EligibilityScheduleInstancesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilderPostRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..569061e2a12 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilderPostRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php new file mode 100644 index 00000000000..cde08aad870 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([PrivilegedAccessGroupEligibilityScheduleInstance::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, PrivilegedAccessGroupEligibilityScheduleInstance::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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php new file mode 100644 index 00000000000..7eeef48d8bb --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -0,0 +1,84 @@ +|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 $on Usage: on='{on}' + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter, ?string $on = null) { + parent::__construct($requestAdapter, [], '{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/filterByCurrentUser(on=\'{on}\'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}'); + if (is_array($pathParametersOrRawUrl)) { + $urlTplParams = $pathParametersOrRawUrl; + $urlTplParams['on'] = $on; + $this->pathParameters = $urlTplParams; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke function filterByCurrentUser + * @param FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Invoke function filterByCurrentUser + * @param FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 FilterByCurrentUserWithOnRequestBuilder + */ + public function withUrl(string $rawUrl): FilterByCurrentUserWithOnRequestBuilder { + return new FilterByCurrentUserWithOnRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d91572f1cdb --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetQueryParameters.php @@ -0,0 +1,74 @@ +|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 filterByCurrentUserWithOnRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @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, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) { + $this->count = $count; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..535f10f5144 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,44 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param FilterByCurrentUserWithOnRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?FilterByCurrentUserWithOnRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new filterByCurrentUserWithOnRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @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 FilterByCurrentUserWithOnRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { + return new FilterByCurrentUserWithOnRequestBuilderGetQueryParameters($count, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/GroupRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/GroupRequestBuilder.php new file mode 100644 index 00000000000..5eee68e0369 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/GroupRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new GroupRequestBuilder 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}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/{privilegedAccessGroupEligibilityScheduleInstance%2Did}/group{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get group from identityGovernance + * @param GroupRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?GroupRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [Group::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get group from identityGovernance + * @param GroupRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 GroupRequestBuilder + */ + public function withUrl(string $rawUrl): GroupRequestBuilder { + return new GroupRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/GroupRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/GroupRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..0cb188fdc66 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/GroupRequestBuilderGetQueryParameters.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 groupRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/GroupRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/GroupRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..93eeb946452 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/GroupRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param GroupRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?GroupRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new groupRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return GroupRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): GroupRequestBuilderGetQueryParameters { + return new GroupRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..7933b7f7140 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/{privilegedAccessGroupEligibilityScheduleInstance%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..de62ca4ccbc --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..391d61734fe --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..5aba0a77a41 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/{privilegedAccessGroupEligibilityScheduleInstance%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..c389be1f108 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e6ccf2ebb7a --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.php new file mode 100644 index 00000000000..3bde4783357 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.php @@ -0,0 +1,82 @@ +|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}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/{privilegedAccessGroupEligibilityScheduleInstance%2Did}/principal{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get principal from identityGovernance + * @param PrincipalRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?PrincipalRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [DirectoryObject::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get principal from identityGovernance + * @param PrincipalRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 PrincipalRequestBuilder + */ + public function withUrl(string $rawUrl): PrincipalRequestBuilder { + return new PrincipalRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..49e0bd4c2ac --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilderGetQueryParameters.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 principalRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..f3b86d3b0f4 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param PrincipalRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?PrincipalRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new principalRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return PrincipalRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): PrincipalRequestBuilderGetQueryParameters { + return new PrincipalRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder.php new file mode 100644 index 00000000000..86025d17b28 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder.php @@ -0,0 +1,172 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupEligibilityScheduleInstance entity. + */ + public function principal(): PrincipalRequestBuilder { + return new PrincipalRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder 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}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/{privilegedAccessGroupEligibilityScheduleInstance%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property eligibilityScheduleInstances for identityGovernance + * @param PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get eligibilityScheduleInstances from identityGovernance + * @param PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupEligibilityScheduleInstance::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property eligibilityScheduleInstances in identityGovernance + * @param PrivilegedAccessGroupEligibilityScheduleInstance $body The request body + * @param PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(PrivilegedAccessGroupEligibilityScheduleInstance $body, ?PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupEligibilityScheduleInstance::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property eligibilityScheduleInstances for identityGovernance + * @param PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get eligibilityScheduleInstances from identityGovernance + * @param PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property eligibilityScheduleInstances in identityGovernance + * @param PrivilegedAccessGroupEligibilityScheduleInstance $body The request body + * @param PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(PrivilegedAccessGroupEligibilityScheduleInstance $body, ?PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder + */ + public function withUrl(string $rawUrl): PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder { + return new PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..56019b0b55e --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderDeleteRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..201117ee5b9 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetQueryParameters.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 PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..c5e27acb969 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetQueryParameters { + return new PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..e5580f09d88 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderPatchRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..19c043e454f --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..cf1a4ebdb40 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..f11e3157db8 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilder.php new file mode 100644 index 00000000000..e421784d3c6 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilder.php @@ -0,0 +1,152 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the eligibilityScheduleRequests property of the microsoft.graph.privilegedAccessGroup entity. + * @param string $privilegedAccessGroupEligibilityScheduleRequestId The unique identifier of privilegedAccessGroupEligibilityScheduleRequest + * @return PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder + */ + public function byPrivilegedAccessGroupEligibilityScheduleRequestId(string $privilegedAccessGroupEligibilityScheduleRequestId): PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['privilegedAccessGroupEligibilityScheduleRequest%2Did'] = $privilegedAccessGroupEligibilityScheduleRequestId; + return new PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new EligibilityScheduleRequestsRequestBuilder 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}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Provides operations to call the filterByCurrentUser method. + * @param string $on Usage: on='{on}' + * @return FilterByCurrentUserWithOnRequestBuilder + */ + public function filterByCurrentUserWithOn(string $on): FilterByCurrentUserWithOnRequestBuilder { + return new FilterByCurrentUserWithOnRequestBuilder($this->pathParameters, $this->requestAdapter, $on); + } + + /** + * Get eligibilityScheduleRequests from identityGovernance + * @param EligibilityScheduleRequestsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?EligibilityScheduleRequestsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to eligibilityScheduleRequests for identityGovernance + * @param PrivilegedAccessGroupEligibilityScheduleRequest $body The request body + * @param EligibilityScheduleRequestsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(PrivilegedAccessGroupEligibilityScheduleRequest $body, ?EligibilityScheduleRequestsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupEligibilityScheduleRequest::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get eligibilityScheduleRequests from identityGovernance + * @param EligibilityScheduleRequestsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?EligibilityScheduleRequestsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to eligibilityScheduleRequests for identityGovernance + * @param PrivilegedAccessGroupEligibilityScheduleRequest $body The request body + * @param EligibilityScheduleRequestsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(PrivilegedAccessGroupEligibilityScheduleRequest $body, ?EligibilityScheduleRequestsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 EligibilityScheduleRequestsRequestBuilder + */ + public function withUrl(string $rawUrl): EligibilityScheduleRequestsRequestBuilder { + return new EligibilityScheduleRequestsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..085fde98727 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilderGetQueryParameters.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 eligibilityScheduleRequestsRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..07ef36d536f --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param EligibilityScheduleRequestsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?EligibilityScheduleRequestsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new eligibilityScheduleRequestsRequestBuilderGetQueryParameters. + * @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 EligibilityScheduleRequestsRequestBuilderGetQueryParameters + */ + 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): EligibilityScheduleRequestsRequestBuilderGetQueryParameters { + return new EligibilityScheduleRequestsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilderPostRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..bf3fa1937e2 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilderPostRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php new file mode 100644 index 00000000000..966bdb6e0fd --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([PrivilegedAccessGroupEligibilityScheduleRequest::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, PrivilegedAccessGroupEligibilityScheduleRequest::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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php new file mode 100644 index 00000000000..7f277b5a012 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -0,0 +1,84 @@ +|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 $on Usage: on='{on}' + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter, ?string $on = null) { + parent::__construct($requestAdapter, [], '{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/filterByCurrentUser(on=\'{on}\'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}'); + if (is_array($pathParametersOrRawUrl)) { + $urlTplParams = $pathParametersOrRawUrl; + $urlTplParams['on'] = $on; + $this->pathParameters = $urlTplParams; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke function filterByCurrentUser + * @param FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Invoke function filterByCurrentUser + * @param FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 FilterByCurrentUserWithOnRequestBuilder + */ + public function withUrl(string $rawUrl): FilterByCurrentUserWithOnRequestBuilder { + return new FilterByCurrentUserWithOnRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..522d2f1bfa1 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetQueryParameters.php @@ -0,0 +1,74 @@ +|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 filterByCurrentUserWithOnRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @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, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) { + $this->count = $count; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..708cb1cc1d4 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,44 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param FilterByCurrentUserWithOnRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?FilterByCurrentUserWithOnRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new filterByCurrentUserWithOnRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @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 FilterByCurrentUserWithOnRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { + return new FilterByCurrentUserWithOnRequestBuilderGetQueryParameters($count, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.php new file mode 100644 index 00000000000..4a54d152111 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.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}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/cancel'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke action cancel + * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(?CancelRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Invoke action cancel + * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?CancelRequestBuilderPostRequestConfiguration $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); + } + 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 CancelRequestBuilder + */ + public function withUrl(string $rawUrl): CancelRequestBuilder { + return new CancelRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Cancel/CancelRequestBuilderPostRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Cancel/CancelRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..b98e9cdc749 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Cancel/CancelRequestBuilderPostRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/GroupRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/GroupRequestBuilder.php new file mode 100644 index 00000000000..63627ba0ea5 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/GroupRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new GroupRequestBuilder 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}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/group{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get group from identityGovernance + * @param GroupRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?GroupRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [Group::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get group from identityGovernance + * @param GroupRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 GroupRequestBuilder + */ + public function withUrl(string $rawUrl): GroupRequestBuilder { + return new GroupRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/GroupRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/GroupRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..2fa4a1b93b8 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/GroupRequestBuilderGetQueryParameters.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 groupRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/GroupRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/GroupRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..20d2916ef4e --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/GroupRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param GroupRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?GroupRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new groupRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return GroupRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): GroupRequestBuilderGetQueryParameters { + return new GroupRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..189327d2426 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..8f4417cf232 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..d5145184e0a --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..6197ff034ce --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..e6c32e0e774 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..533da72527e --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.php new file mode 100644 index 00000000000..f191e1c75bf --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.php @@ -0,0 +1,82 @@ +|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}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/principal{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get principal from identityGovernance + * @param PrincipalRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?PrincipalRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [DirectoryObject::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get principal from identityGovernance + * @param PrincipalRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 PrincipalRequestBuilder + */ + public function withUrl(string $rawUrl): PrincipalRequestBuilder { + return new PrincipalRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..25563c390c8 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilderGetQueryParameters.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 principalRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..a882170f1a8 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param PrincipalRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?PrincipalRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new principalRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return PrincipalRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): PrincipalRequestBuilderGetQueryParameters { + return new PrincipalRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder.php new file mode 100644 index 00000000000..a781ce48c38 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder.php @@ -0,0 +1,188 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupEligibilityScheduleRequest entity. + */ + public function group(): GroupRequestBuilder { + return new GroupRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupEligibilityScheduleRequest entity. + */ + public function principal(): PrincipalRequestBuilder { + return new PrincipalRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the targetSchedule property of the microsoft.graph.privilegedAccessGroupEligibilityScheduleRequest entity. + */ + public function targetSchedule(): TargetScheduleRequestBuilder { + return new TargetScheduleRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder 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}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property eligibilityScheduleRequests for identityGovernance + * @param PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get eligibilityScheduleRequests from identityGovernance + * @param PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupEligibilityScheduleRequest::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property eligibilityScheduleRequests in identityGovernance + * @param PrivilegedAccessGroupEligibilityScheduleRequest $body The request body + * @param PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(PrivilegedAccessGroupEligibilityScheduleRequest $body, ?PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupEligibilityScheduleRequest::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property eligibilityScheduleRequests for identityGovernance + * @param PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get eligibilityScheduleRequests from identityGovernance + * @param PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property eligibilityScheduleRequests in identityGovernance + * @param PrivilegedAccessGroupEligibilityScheduleRequest $body The request body + * @param PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(PrivilegedAccessGroupEligibilityScheduleRequest $body, ?PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder + */ + public function withUrl(string $rawUrl): PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder { + return new PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..ae6d9e14fb9 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderDeleteRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..54516fe0900 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetQueryParameters.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 PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..b0689367f15 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetQueryParameters { + return new PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..5e5f6733b8e --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderPatchRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php new file mode 100644 index 00000000000..856b48d8889 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php @@ -0,0 +1,82 @@ +|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}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/targetSchedule{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get targetSchedule from identityGovernance + * @param TargetScheduleRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?TargetScheduleRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupEligibilitySchedule::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get targetSchedule from identityGovernance + * @param TargetScheduleRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?TargetScheduleRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 TargetScheduleRequestBuilder + */ + public function withUrl(string $rawUrl): TargetScheduleRequestBuilder { + return new TargetScheduleRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d8dd1da3181 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilderGetQueryParameters.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 targetScheduleRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..34e3620a645 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param TargetScheduleRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?TargetScheduleRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new targetScheduleRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return TargetScheduleRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): TargetScheduleRequestBuilderGetQueryParameters { + return new TargetScheduleRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..47a0a863042 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/privilegedAccess/group/eligibilitySchedules/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..a835952275a --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..96e129ba7d7 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/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/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilder.php new file mode 100644 index 00000000000..915e352abe1 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilder.php @@ -0,0 +1,152 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the eligibilitySchedules property of the microsoft.graph.privilegedAccessGroup entity. + * @param string $privilegedAccessGroupEligibilityScheduleId The unique identifier of privilegedAccessGroupEligibilitySchedule + * @return PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder + */ + public function byPrivilegedAccessGroupEligibilityScheduleId(string $privilegedAccessGroupEligibilityScheduleId): PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['privilegedAccessGroupEligibilitySchedule%2Did'] = $privilegedAccessGroupEligibilityScheduleId; + return new PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new EligibilitySchedulesRequestBuilder 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}/identityGovernance/privilegedAccess/group/eligibilitySchedules{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Provides operations to call the filterByCurrentUser method. + * @param string $on Usage: on='{on}' + * @return FilterByCurrentUserWithOnRequestBuilder + */ + public function filterByCurrentUserWithOn(string $on): FilterByCurrentUserWithOnRequestBuilder { + return new FilterByCurrentUserWithOnRequestBuilder($this->pathParameters, $this->requestAdapter, $on); + } + + /** + * Get eligibilitySchedules from identityGovernance + * @param EligibilitySchedulesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?EligibilitySchedulesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupEligibilityScheduleCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to eligibilitySchedules for identityGovernance + * @param PrivilegedAccessGroupEligibilitySchedule $body The request body + * @param EligibilitySchedulesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(PrivilegedAccessGroupEligibilitySchedule $body, ?EligibilitySchedulesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupEligibilitySchedule::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get eligibilitySchedules from identityGovernance + * @param EligibilitySchedulesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?EligibilitySchedulesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Create new navigation property to eligibilitySchedules for identityGovernance + * @param PrivilegedAccessGroupEligibilitySchedule $body The request body + * @param EligibilitySchedulesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(PrivilegedAccessGroupEligibilitySchedule $body, ?EligibilitySchedulesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 EligibilitySchedulesRequestBuilder + */ + public function withUrl(string $rawUrl): EligibilitySchedulesRequestBuilder { + return new EligibilitySchedulesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..902fe8b5cfa --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilderGetQueryParameters.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 eligibilitySchedulesRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..05d558dd02f --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param EligibilitySchedulesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?EligibilitySchedulesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new eligibilitySchedulesRequestBuilderGetQueryParameters. + * @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 EligibilitySchedulesRequestBuilderGetQueryParameters + */ + 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): EligibilitySchedulesRequestBuilderGetQueryParameters { + return new EligibilitySchedulesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilderPostRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..19fe629881d --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilderPostRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php new file mode 100644 index 00000000000..88e6fdbd32a --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([PrivilegedAccessGroupEligibilitySchedule::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, PrivilegedAccessGroupEligibilitySchedule::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/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php new file mode 100644 index 00000000000..614ec1c41c0 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -0,0 +1,84 @@ +|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 $on Usage: on='{on}' + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter, ?string $on = null) { + parent::__construct($requestAdapter, [], '{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules/filterByCurrentUser(on=\'{on}\'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}'); + if (is_array($pathParametersOrRawUrl)) { + $urlTplParams = $pathParametersOrRawUrl; + $urlTplParams['on'] = $on; + $this->pathParameters = $urlTplParams; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke function filterByCurrentUser + * @param FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [FilterByCurrentUserWithOnGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Invoke function filterByCurrentUser + * @param FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 FilterByCurrentUserWithOnRequestBuilder + */ + public function withUrl(string $rawUrl): FilterByCurrentUserWithOnRequestBuilder { + return new FilterByCurrentUserWithOnRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..64ebef7e3bd --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetQueryParameters.php @@ -0,0 +1,74 @@ +|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 filterByCurrentUserWithOnRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @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, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) { + $this->count = $count; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..eee068f0c05 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,44 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param FilterByCurrentUserWithOnRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?FilterByCurrentUserWithOnRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new filterByCurrentUserWithOnRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @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 FilterByCurrentUserWithOnRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { + return new FilterByCurrentUserWithOnRequestBuilderGetQueryParameters($count, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/GroupRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/GroupRequestBuilder.php new file mode 100644 index 00000000000..c9057e99b3e --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/GroupRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new GroupRequestBuilder 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}/identityGovernance/privilegedAccess/group/eligibilitySchedules/{privilegedAccessGroupEligibilitySchedule%2Did}/group{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get group from identityGovernance + * @param GroupRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?GroupRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [Group::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get group from identityGovernance + * @param GroupRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 GroupRequestBuilder + */ + public function withUrl(string $rawUrl): GroupRequestBuilder { + return new GroupRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/GroupRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/GroupRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..4fd43c0553b --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/GroupRequestBuilderGetQueryParameters.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 groupRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/GroupRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/GroupRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..f8ccbcc46d8 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/GroupRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param GroupRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?GroupRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new groupRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return GroupRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): GroupRequestBuilderGetQueryParameters { + return new GroupRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..dc6c3a362f0 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/identityGovernance/privilegedAccess/group/eligibilitySchedules/{privilegedAccessGroupEligibilitySchedule%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..66be6320c8d --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..54757ac38a3 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/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/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..c5aa1cb73e0 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/identityGovernance/privilegedAccess/group/eligibilitySchedules/{privilegedAccessGroupEligibilitySchedule%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..c27ac60b1dc --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..43bd50b0e0d --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Principal/PrincipalRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Principal/PrincipalRequestBuilder.php new file mode 100644 index 00000000000..d13932e086c --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Principal/PrincipalRequestBuilder.php @@ -0,0 +1,82 @@ +|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}/identityGovernance/privilegedAccess/group/eligibilitySchedules/{privilegedAccessGroupEligibilitySchedule%2Did}/principal{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get principal from identityGovernance + * @param PrincipalRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?PrincipalRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [DirectoryObject::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get principal from identityGovernance + * @param PrincipalRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 PrincipalRequestBuilder + */ + public function withUrl(string $rawUrl): PrincipalRequestBuilder { + return new PrincipalRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Principal/PrincipalRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Principal/PrincipalRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..afd36e84cb4 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Principal/PrincipalRequestBuilderGetQueryParameters.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 principalRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Principal/PrincipalRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Principal/PrincipalRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..37ce46db59a --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Principal/PrincipalRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param PrincipalRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?PrincipalRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new principalRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return PrincipalRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): PrincipalRequestBuilderGetQueryParameters { + return new PrincipalRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder.php new file mode 100644 index 00000000000..0862ea09626 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder.php @@ -0,0 +1,172 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupEligibilitySchedule entity. + */ + public function principal(): PrincipalRequestBuilder { + return new PrincipalRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder 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}/identityGovernance/privilegedAccess/group/eligibilitySchedules/{privilegedAccessGroupEligibilitySchedule%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property eligibilitySchedules for identityGovernance + * @param PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get eligibilitySchedules from identityGovernance + * @param PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupEligibilitySchedule::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property eligibilitySchedules in identityGovernance + * @param PrivilegedAccessGroupEligibilitySchedule $body The request body + * @param PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(PrivilegedAccessGroupEligibilitySchedule $body, ?PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroupEligibilitySchedule::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property eligibilitySchedules for identityGovernance + * @param PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get eligibilitySchedules from identityGovernance + * @param PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property eligibilitySchedules in identityGovernance + * @param PrivilegedAccessGroupEligibilitySchedule $body The request body + * @param PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(PrivilegedAccessGroupEligibilitySchedule $body, ?PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder + */ + public function withUrl(string $rawUrl): PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder { + return new PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..7feb8c1510d --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderDeleteRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..240f74b248c --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetQueryParameters.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 PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..a676b857a73 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetQueryParameters { + return new PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..738d570ca30 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderPatchRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilder.php new file mode 100644 index 00000000000..c84cb8d8a63 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilder.php @@ -0,0 +1,212 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the assignmentScheduleInstances property of the microsoft.graph.privilegedAccessGroup entity. + */ + public function assignmentScheduleInstances(): AssignmentScheduleInstancesRequestBuilder { + return new AssignmentScheduleInstancesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the assignmentScheduleRequests property of the microsoft.graph.privilegedAccessGroup entity. + */ + public function assignmentScheduleRequests(): AssignmentScheduleRequestsRequestBuilder { + return new AssignmentScheduleRequestsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the assignmentSchedules property of the microsoft.graph.privilegedAccessGroup entity. + */ + public function assignmentSchedules(): AssignmentSchedulesRequestBuilder { + return new AssignmentSchedulesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the eligibilityScheduleInstances property of the microsoft.graph.privilegedAccessGroup entity. + */ + public function eligibilityScheduleInstances(): EligibilityScheduleInstancesRequestBuilder { + return new EligibilityScheduleInstancesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the eligibilityScheduleRequests property of the microsoft.graph.privilegedAccessGroup entity. + */ + public function eligibilityScheduleRequests(): EligibilityScheduleRequestsRequestBuilder { + return new EligibilityScheduleRequestsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the eligibilitySchedules property of the microsoft.graph.privilegedAccessGroup entity. + */ + public function eligibilitySchedules(): EligibilitySchedulesRequestBuilder { + return new EligibilitySchedulesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new GroupRequestBuilder 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}/identityGovernance/privilegedAccess/group{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property group for identityGovernance + * @param GroupRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?GroupRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get group from identityGovernance + * @param GroupRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?GroupRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroup::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property group in identityGovernance + * @param PrivilegedAccessGroup $body The request body + * @param GroupRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(PrivilegedAccessGroup $body, ?GroupRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessGroup::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property group for identityGovernance + * @param GroupRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?GroupRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get group from identityGovernance + * @param GroupRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property group in identityGovernance + * @param PrivilegedAccessGroup $body The request body + * @param GroupRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(PrivilegedAccessGroup $body, ?GroupRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 GroupRequestBuilder + */ + public function withUrl(string $rawUrl): GroupRequestBuilder { + return new GroupRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilderDeleteRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..014cd408465 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilderDeleteRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..eaa55a87d5a --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilderGetQueryParameters.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 groupRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..41f50ea1014 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param GroupRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?GroupRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new groupRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return GroupRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): GroupRequestBuilderGetQueryParameters { + return new GroupRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilderPatchRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..09e85afcd6b --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilderPatchRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilder.php new file mode 100644 index 00000000000..5f7f7e535b7 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilder.php @@ -0,0 +1,164 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new PrivilegedAccessRequestBuilder 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}/identityGovernance/privilegedAccess{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property privilegedAccess for identityGovernance + * @param PrivilegedAccessRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?PrivilegedAccessRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get privilegedAccess from identityGovernance + * @param PrivilegedAccessRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?PrivilegedAccessRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessRoot::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property privilegedAccess in identityGovernance + * @param PrivilegedAccessRoot $body The request body + * @param PrivilegedAccessRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(PrivilegedAccessRoot $body, ?PrivilegedAccessRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [PrivilegedAccessRoot::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property privilegedAccess for identityGovernance + * @param PrivilegedAccessRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?PrivilegedAccessRequestBuilderDeleteRequestConfiguration $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); + } + return $requestInfo; + } + + /** + * Get privilegedAccess from identityGovernance + * @param PrivilegedAccessRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?PrivilegedAccessRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + return $requestInfo; + } + + /** + * Update the navigation property privilegedAccess in identityGovernance + * @param PrivilegedAccessRoot $body The request body + * @param PrivilegedAccessRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(PrivilegedAccessRoot $body, ?PrivilegedAccessRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $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 PrivilegedAccessRequestBuilder + */ + public function withUrl(string $rawUrl): PrivilegedAccessRequestBuilder { + return new PrivilegedAccessRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilderDeleteRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..24f8c9ee99b --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilderDeleteRequestConfiguration.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/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..81d70f5d204 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilderGetQueryParameters.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 privilegedAccessRequestBuilderGetQueryParameters 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/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilderGetRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..deb4a45faeb --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param PrivilegedAccessRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?PrivilegedAccessRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new privilegedAccessRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return PrivilegedAccessRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): PrivilegedAccessRequestBuilderGetQueryParameters { + return new PrivilegedAccessRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilderPatchRequestConfiguration.php b/src/Generated/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..8633dc55d80 --- /dev/null +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilderPatchRequestConfiguration.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/IdentityGovernance/TermsOfUse/Agreements/AgreementsRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/AgreementsRequestBuilder.php index 64168d538ed..790a2de0e6c 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/AgreementsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/AgreementsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of agreement objects. + * Retrieve a list of agreement objects. This API is supported in the following national cloud deployments. * @param AgreementsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/termsofusecontainer-list-agreements?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?AgreementsRequestBuilderGetRequestConfiguration $requestCon } /** - * Create a new agreement object. + * Create a new agreement object. This API is supported in the following national cloud deployments. * @param Agreement $body The request body * @param AgreementsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(Agreement $body, ?AgreementsRequestBuilderPostRequestConfig } /** - * Retrieve a list of agreement objects. + * Retrieve a list of agreement objects. This API is supported in the following national cloud deployments. * @param AgreementsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?AgreementsRequestBuilderGetRequestConfi } /** - * Create a new agreement object. + * Create a new agreement object. This API is supported in the following national cloud deployments. * @param Agreement $body The request body * @param AgreementsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/AgreementsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/AgreementsRequestBuilderGetQueryParameters.php index f89aa8e8808..0c12719ebda 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/AgreementsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/AgreementsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of agreement objects. + * Retrieve a list of agreement objects. This API is supported in the following national cloud deployments. */ class AgreementsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/AcceptancesRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/AcceptancesRequestBuilder.php index 2659b6228e0..d7f51058fc6 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/AcceptancesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/AcceptancesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the details about the acceptance records for a specific agreement. + * Get the details about the acceptance records for a specific agreement. This API is supported in the following national cloud deployments. * @param AcceptancesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/agreement-list-acceptances?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(AgreementAcceptance $body, ?AcceptancesRequestBuilderPostRe } /** - * Get the details about the acceptance records for a specific agreement. + * Get the details about the acceptance records for a specific agreement. This API is supported in the following national cloud deployments. * @param AcceptancesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/AcceptancesRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/AcceptancesRequestBuilderGetQueryParameters.php index 5fa9db03d22..771fb37ae00 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/AcceptancesRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/AcceptancesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the details about the acceptance records for a specific agreement. + * Get the details about the acceptance records for a specific agreement. This API is supported in the following national cloud deployments. */ class AcceptancesRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.php index 5f3abf0e594..254252ce631 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.php @@ -56,7 +56,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an agreement object. + * Delete an agreement object. This API is supported in the following national cloud deployments. * @param AgreementItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/agreement-delete?view=graph-rest-1.0 Find more info here @@ -75,7 +75,7 @@ public function delete(?AgreementItemRequestBuilderDeleteRequestConfiguration $r } /** - * Retrieve the properties and relationships of an agreement object. + * Retrieve the properties and relationships of an agreement object. This API is supported in the following national cloud deployments. * @param AgreementItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/agreement-get?view=graph-rest-1.0 Find more info here @@ -94,7 +94,7 @@ public function get(?AgreementItemRequestBuilderGetRequestConfiguration $request } /** - * Update the properties of an agreement object. + * Update the properties of an agreement object. This API is supported in the following national cloud deployments. * @param Agreement $body The request body * @param AgreementItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -114,7 +114,7 @@ public function patch(Agreement $body, ?AgreementItemRequestBuilderPatchRequestC } /** - * Delete an agreement object. + * Delete an agreement object. This API is supported in the following national cloud deployments. * @param AgreementItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -131,7 +131,7 @@ public function toDeleteRequestInformation(?AgreementItemRequestBuilderDeleteReq } /** - * Retrieve the properties and relationships of an agreement object. + * Retrieve the properties and relationships of an agreement object. This API is supported in the following national cloud deployments. * @param AgreementItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -152,7 +152,7 @@ public function toGetRequestInformation(?AgreementItemRequestBuilderGetRequestCo } /** - * Update the properties of an agreement object. + * Update the properties of an agreement object. This API is supported in the following national cloud deployments. * @param Agreement $body The request body * @param AgreementItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilderGetQueryParameters.php index 3ba58bfc831..a2d223381ca 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of an agreement object. + * Retrieve the properties and relationships of an agreement object. This API is supported in the following national cloud deployments. */ class AgreementItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/FileRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/FileRequestBuilder.php index 6a79eaa609f..a738162b69f 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/FileRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/FileRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?FileRequestBuilderDeleteRequestConfiguration $requestCon } /** - * Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the Accept-Language header. + * Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the Accept-Language header. This API is supported in the following national cloud deployments. * @param FileRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/agreementfile-get?view=graph-rest-1.0 Find more info here @@ -113,7 +113,7 @@ public function toDeleteRequestInformation(?FileRequestBuilderDeleteRequestConfi } /** - * Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the Accept-Language header. + * Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the Accept-Language header. This API is supported in the following national cloud deployments. * @param FileRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/FileRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/FileRequestBuilderGetQueryParameters.php index 7f00fbf054e..fa096812bfb 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/FileRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/FileRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the Accept-Language header. + * Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the Accept-Language header. This API is supported in the following national cloud deployments. */ class FileRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/LocalizationsRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/LocalizationsRequestBuilder.php index 4175c11cdd1..9cb55fe277f 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/LocalizationsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/LocalizationsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the default and localized agreement files. + * Get a list of the default and localized agreement files. This API is supported in the following national cloud deployments. * @param LocalizationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/agreementfile-list-localizations?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(AgreementFileLocalization $body, ?LocalizationsRequestBuild } /** - * Get a list of the default and localized agreement files. + * Get a list of the default and localized agreement files. This API is supported in the following national cloud deployments. * @param LocalizationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/LocalizationsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/LocalizationsRequestBuilderGetQueryParameters.php index d53ca3e435c..93275de4f5b 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/LocalizationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/LocalizationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the default and localized agreement files. + * Get a list of the default and localized agreement files. This API is supported in the following national cloud deployments. */ class LocalizationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/FilesRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/FilesRequestBuilder.php index 98c7fa58535..28cfca5443b 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/FilesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/FilesRequestBuilder.php @@ -71,7 +71,7 @@ public function get(?FilesRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Create a new localized agreement file. + * Create a new localized agreement file. This API is supported in the following national cloud deployments. * @param AgreementFileLocalization $body The request body * @param FilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -112,7 +112,7 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat } /** - * Create a new localized agreement file. + * Create a new localized agreement file. This API is supported in the following national cloud deployments. * @param AgreementFileLocalization $body The request body * @param FilesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityProtection/RiskDetections/Item/RiskDetectionItemRequestBuilder.php b/src/Generated/IdentityProtection/RiskDetections/Item/RiskDetectionItemRequestBuilder.php index 2bb46b0a1a0..d8ed153ddcc 100644 --- a/src/Generated/IdentityProtection/RiskDetections/Item/RiskDetectionItemRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskDetections/Item/RiskDetectionItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?RiskDetectionItemRequestBuilderDeleteRequestConfiguratio } /** - * Read the properties and relationships of a riskDetection object. + * Read the properties and relationships of a riskDetection object. This API is supported in the following national cloud deployments. * @param RiskDetectionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/riskdetection-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?RiskDetectionItemRequestBuilderDelet } /** - * Read the properties and relationships of a riskDetection object. + * Read the properties and relationships of a riskDetection object. This API is supported in the following national cloud deployments. * @param RiskDetectionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityProtection/RiskDetections/Item/RiskDetectionItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityProtection/RiskDetections/Item/RiskDetectionItemRequestBuilderGetQueryParameters.php index f0271527cb4..4acdfc18bfc 100644 --- a/src/Generated/IdentityProtection/RiskDetections/Item/RiskDetectionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityProtection/RiskDetections/Item/RiskDetectionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a riskDetection object. + * Read the properties and relationships of a riskDetection object. This API is supported in the following national cloud deployments. */ class RiskDetectionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityProtection/RiskDetections/RiskDetectionsRequestBuilder.php b/src/Generated/IdentityProtection/RiskDetections/RiskDetectionsRequestBuilder.php index 740739bce88..3065b155e84 100644 --- a/src/Generated/IdentityProtection/RiskDetections/RiskDetectionsRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskDetections/RiskDetectionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the riskDetection objects and their properties. + * Get a list of the riskDetection objects and their properties. This API is supported in the following national cloud deployments. * @param RiskDetectionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/riskdetection-list?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(RiskDetection $body, ?RiskDetectionsRequestBuilderPostReque } /** - * Get a list of the riskDetection objects and their properties. + * Get a list of the riskDetection objects and their properties. This API is supported in the following national cloud deployments. * @param RiskDetectionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityProtection/RiskDetections/RiskDetectionsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityProtection/RiskDetections/RiskDetectionsRequestBuilderGetQueryParameters.php index 1250b599f79..caa87c1f7a2 100644 --- a/src/Generated/IdentityProtection/RiskDetections/RiskDetectionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityProtection/RiskDetections/RiskDetectionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the riskDetection objects and their properties. + * Get a list of the riskDetection objects and their properties. This API is supported in the following national cloud deployments. */ class RiskDetectionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityProtection/RiskyServicePrincipals/ConfirmCompromised/ConfirmCompromisedRequestBuilder.php b/src/Generated/IdentityProtection/RiskyServicePrincipals/ConfirmCompromised/ConfirmCompromisedRequestBuilder.php index 0c59aeb4081..930478ca2c2 100644 --- a/src/Generated/IdentityProtection/RiskyServicePrincipals/ConfirmCompromised/ConfirmCompromisedRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskyServicePrincipals/ConfirmCompromised/ConfirmCompromisedRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Confirm one or more riskyServicePrincipal objects as compromised. This action sets the targeted service principal account's risk level to high. + * Confirm one or more riskyServicePrincipal objects as compromised. This action sets the targeted service principal account's risk level to high. This API is supported in the following national cloud deployments. * @param ConfirmCompromisedPostRequestBody $body The request body * @param ConfirmCompromisedRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ConfirmCompromisedPostRequestBody $body, ?ConfirmCompromise } /** - * Confirm one or more riskyServicePrincipal objects as compromised. This action sets the targeted service principal account's risk level to high. + * Confirm one or more riskyServicePrincipal objects as compromised. This action sets the targeted service principal account's risk level to high. This API is supported in the following national cloud deployments. * @param ConfirmCompromisedPostRequestBody $body The request body * @param ConfirmCompromisedRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityProtection/RiskyServicePrincipals/Dismiss/DismissRequestBuilder.php b/src/Generated/IdentityProtection/RiskyServicePrincipals/Dismiss/DismissRequestBuilder.php index 5a78ccce040..24d8bb94206 100644 --- a/src/Generated/IdentityProtection/RiskyServicePrincipals/Dismiss/DismissRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskyServicePrincipals/Dismiss/DismissRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Dismiss the risk of one or more riskyServicePrincipal objects. This action sets the targeted service principal account's risk level to none. You can dismiss up to 60 service principal accounts in one request. + * Dismiss the risk of one or more riskyServicePrincipal objects. This action sets the targeted service principal account's risk level to none. You can dismiss up to 60 service principal accounts in one request. This API is supported in the following national cloud deployments. * @param DismissPostRequestBody $body The request body * @param DismissRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(DismissPostRequestBody $body, ?DismissRequestBuilderPostReq } /** - * Dismiss the risk of one or more riskyServicePrincipal objects. This action sets the targeted service principal account's risk level to none. You can dismiss up to 60 service principal accounts in one request. + * Dismiss the risk of one or more riskyServicePrincipal objects. This action sets the targeted service principal account's risk level to none. You can dismiss up to 60 service principal accounts in one request. This API is supported in the following national cloud deployments. * @param DismissPostRequestBody $body The request body * @param DismissRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/HistoryRequestBuilder.php b/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/HistoryRequestBuilder.php index ada160064fb..5a13f75da2b 100644 --- a/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/HistoryRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/HistoryRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the risk history of a riskyServicePrincipal object. + * Get the risk history of a riskyServicePrincipal object. This API is supported in the following national cloud deployments. * @param HistoryRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/riskyserviceprincipal-list-history?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(RiskyServicePrincipalHistoryItem $body, ?HistoryRequestBuil } /** - * Get the risk history of a riskyServicePrincipal object. + * Get the risk history of a riskyServicePrincipal object. This API is supported in the following national cloud deployments. * @param HistoryRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/HistoryRequestBuilderGetQueryParameters.php b/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/HistoryRequestBuilderGetQueryParameters.php index e872a36f56b..5378835c905 100644 --- a/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/HistoryRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/HistoryRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the risk history of a riskyServicePrincipal object. + * Get the risk history of a riskyServicePrincipal object. This API is supported in the following national cloud deployments. */ class HistoryRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/RiskyServicePrincipalItemRequestBuilder.php b/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/RiskyServicePrincipalItemRequestBuilder.php index b269a266c41..052d6f46f05 100644 --- a/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/RiskyServicePrincipalItemRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/RiskyServicePrincipalItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?RiskyServicePrincipalItemRequestBuilderDeleteRequestConf } /** - * Read the properties and relationships of a riskyServicePrincipal object. + * Read the properties and relationships of a riskyServicePrincipal object. This API is supported in the following national cloud deployments. * @param RiskyServicePrincipalItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/riskyserviceprincipal-get?view=graph-rest-1.0 Find more info here @@ -113,7 +113,7 @@ public function toDeleteRequestInformation(?RiskyServicePrincipalItemRequestBuil } /** - * Read the properties and relationships of a riskyServicePrincipal object. + * Read the properties and relationships of a riskyServicePrincipal object. This API is supported in the following national cloud deployments. * @param RiskyServicePrincipalItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/RiskyServicePrincipalItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/RiskyServicePrincipalItemRequestBuilderGetQueryParameters.php index adaae814fe6..d634536d9da 100644 --- a/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/RiskyServicePrincipalItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/RiskyServicePrincipalItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a riskyServicePrincipal object. + * Read the properties and relationships of a riskyServicePrincipal object. This API is supported in the following national cloud deployments. */ class RiskyServicePrincipalItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityProtection/RiskyServicePrincipals/RiskyServicePrincipalsRequestBuilder.php b/src/Generated/IdentityProtection/RiskyServicePrincipals/RiskyServicePrincipalsRequestBuilder.php index 0933da68193..df74fd1691f 100644 --- a/src/Generated/IdentityProtection/RiskyServicePrincipals/RiskyServicePrincipalsRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskyServicePrincipals/RiskyServicePrincipalsRequestBuilder.php @@ -69,7 +69,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the properties and relationships of riskyServicePrincipal objects. + * Retrieve the properties and relationships of riskyServicePrincipal objects. This API is supported in the following national cloud deployments. * @param RiskyServicePrincipalsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identityprotectionroot-list-riskyserviceprincipals?view=graph-rest-1.0 Find more info here @@ -107,7 +107,7 @@ public function post(RiskyServicePrincipal $body, ?RiskyServicePrincipalsRequest } /** - * Retrieve the properties and relationships of riskyServicePrincipal objects. + * Retrieve the properties and relationships of riskyServicePrincipal objects. This API is supported in the following national cloud deployments. * @param RiskyServicePrincipalsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityProtection/RiskyServicePrincipals/RiskyServicePrincipalsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityProtection/RiskyServicePrincipals/RiskyServicePrincipalsRequestBuilderGetQueryParameters.php index 636e5df1bec..8d413e983be 100644 --- a/src/Generated/IdentityProtection/RiskyServicePrincipals/RiskyServicePrincipalsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityProtection/RiskyServicePrincipals/RiskyServicePrincipalsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of riskyServicePrincipal objects. + * Retrieve the properties and relationships of riskyServicePrincipal objects. This API is supported in the following national cloud deployments. */ class RiskyServicePrincipalsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityProtection/RiskyUsers/ConfirmCompromised/ConfirmCompromisedRequestBuilder.php b/src/Generated/IdentityProtection/RiskyUsers/ConfirmCompromised/ConfirmCompromisedRequestBuilder.php index c7df98e2122..c147a8a1875 100644 --- a/src/Generated/IdentityProtection/RiskyUsers/ConfirmCompromised/ConfirmCompromisedRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskyUsers/ConfirmCompromised/ConfirmCompromisedRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Confirm one or more riskyUser objects as compromised. This action sets the targeted user's risk level to high. + * Confirm one or more riskyUser objects as compromised. This action sets the targeted user's risk level to high. This API is supported in the following national cloud deployments. * @param ConfirmCompromisedPostRequestBody $body The request body * @param ConfirmCompromisedRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(ConfirmCompromisedPostRequestBody $body, ?ConfirmCompromise } /** - * Confirm one or more riskyUser objects as compromised. This action sets the targeted user's risk level to high. + * Confirm one or more riskyUser objects as compromised. This action sets the targeted user's risk level to high. This API is supported in the following national cloud deployments. * @param ConfirmCompromisedPostRequestBody $body The request body * @param ConfirmCompromisedRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityProtection/RiskyUsers/Dismiss/DismissRequestBuilder.php b/src/Generated/IdentityProtection/RiskyUsers/Dismiss/DismissRequestBuilder.php index 844a58bc8ef..615fb14127d 100644 --- a/src/Generated/IdentityProtection/RiskyUsers/Dismiss/DismissRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskyUsers/Dismiss/DismissRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Dismiss the risk of one or more riskyUser objects. This action sets the targeted user's risk level to none. + * Dismiss the risk of one or more riskyUser objects. This action sets the targeted user's risk level to none. This API is supported in the following national cloud deployments. * @param DismissPostRequestBody $body The request body * @param DismissRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -51,7 +51,7 @@ public function post(DismissPostRequestBody $body, ?DismissRequestBuilderPostReq } /** - * Dismiss the risk of one or more riskyUser objects. This action sets the targeted user's risk level to none. + * Dismiss the risk of one or more riskyUser objects. This action sets the targeted user's risk level to none. This API is supported in the following national cloud deployments. * @param DismissPostRequestBody $body The request body * @param DismissRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.php b/src/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.php index 1b3b32da92c..80ce3ea57ad 100644 --- a/src/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the riskyUserHistoryItems from the history navigation property. + * Get the riskyUserHistoryItems from the history navigation property. This API is supported in the following national cloud deployments. * @param HistoryRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/riskyuser-list-history?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(RiskyUserHistoryItem $body, ?HistoryRequestBuilderPostReque } /** - * Get the riskyUserHistoryItems from the history navigation property. + * Get the riskyUserHistoryItems from the history navigation property. This API is supported in the following national cloud deployments. * @param HistoryRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilderGetQueryParameters.php b/src/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilderGetQueryParameters.php index f2cc9e19d99..a2a0668621b 100644 --- a/src/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the riskyUserHistoryItems from the history navigation property. + * Get the riskyUserHistoryItems from the history navigation property. This API is supported in the following national cloud deployments. */ class HistoryRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityProtection/RiskyUsers/Item/RiskyUserItemRequestBuilder.php b/src/Generated/IdentityProtection/RiskyUsers/Item/RiskyUserItemRequestBuilder.php index 83385907085..66fbdefd720 100644 --- a/src/Generated/IdentityProtection/RiskyUsers/Item/RiskyUserItemRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskyUsers/Item/RiskyUserItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?RiskyUserItemRequestBuilderDeleteRequestConfiguration $r } /** - * Read the properties and relationships of a riskyUser object. + * Read the properties and relationships of a riskyUser object. This API is supported in the following national cloud deployments. * @param RiskyUserItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/riskyuser-get?view=graph-rest-1.0 Find more info here @@ -113,7 +113,7 @@ public function toDeleteRequestInformation(?RiskyUserItemRequestBuilderDeleteReq } /** - * Read the properties and relationships of a riskyUser object. + * Read the properties and relationships of a riskyUser object. This API is supported in the following national cloud deployments. * @param RiskyUserItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityProtection/RiskyUsers/Item/RiskyUserItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityProtection/RiskyUsers/Item/RiskyUserItemRequestBuilderGetQueryParameters.php index d58903314d4..43ca3e6ff83 100644 --- a/src/Generated/IdentityProtection/RiskyUsers/Item/RiskyUserItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityProtection/RiskyUsers/Item/RiskyUserItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a riskyUser object. + * Read the properties and relationships of a riskyUser object. This API is supported in the following national cloud deployments. */ class RiskyUserItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.php b/src/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.php index 55a6bfacf83..dd8740533e5 100644 --- a/src/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.php @@ -69,7 +69,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the riskyUser objects and their properties. + * Get a list of the riskyUser objects and their properties. This API is supported in the following national cloud deployments. * @param RiskyUsersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/riskyuser-list?view=graph-rest-1.0 Find more info here @@ -107,7 +107,7 @@ public function post(RiskyUser $body, ?RiskyUsersRequestBuilderPostRequestConfig } /** - * Get a list of the riskyUser objects and their properties. + * Get a list of the riskyUser objects and their properties. This API is supported in the following national cloud deployments. * @param RiskyUsersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilderGetQueryParameters.php b/src/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilderGetQueryParameters.php index 67916c3ccad..92feebdd383 100644 --- a/src/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the riskyUser objects and their properties. + * Get a list of the riskyUser objects and their properties. This API is supported in the following national cloud deployments. */ class RiskyUsersRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/Item/ServicePrincipalRiskDetectionItemRequestBuilder.php b/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/Item/ServicePrincipalRiskDetectionItemRequestBuilder.php index a980a4eb39a..cdacd5023f6 100644 --- a/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/Item/ServicePrincipalRiskDetectionItemRequestBuilder.php +++ b/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/Item/ServicePrincipalRiskDetectionItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?ServicePrincipalRiskDetectionItemRequestBuilderDeleteReq } /** - * Read the properties and relationships of a servicePrincipalRiskDetection object. + * Read the properties and relationships of a servicePrincipalRiskDetection object. This API is supported in the following national cloud deployments. * @param ServicePrincipalRiskDetectionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/serviceprincipalriskdetection-get?view=graph-rest-1.0 Find more info here @@ -105,7 +105,7 @@ public function toDeleteRequestInformation(?ServicePrincipalRiskDetectionItemReq } /** - * Read the properties and relationships of a servicePrincipalRiskDetection object. + * Read the properties and relationships of a servicePrincipalRiskDetection object. This API is supported in the following national cloud deployments. * @param ServicePrincipalRiskDetectionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/Item/ServicePrincipalRiskDetectionItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/Item/ServicePrincipalRiskDetectionItemRequestBuilderGetQueryParameters.php index 1c67ab542b0..0fd2ba79d09 100644 --- a/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/Item/ServicePrincipalRiskDetectionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/Item/ServicePrincipalRiskDetectionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a servicePrincipalRiskDetection object. + * Read the properties and relationships of a servicePrincipalRiskDetection object. This API is supported in the following national cloud deployments. */ class ServicePrincipalRiskDetectionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/ServicePrincipalRiskDetectionsRequestBuilder.php b/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/ServicePrincipalRiskDetectionsRequestBuilder.php index a58d159dcb5..1b9976e1534 100644 --- a/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/ServicePrincipalRiskDetectionsRequestBuilder.php +++ b/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/ServicePrincipalRiskDetectionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the properties of a collection of servicePrincipalRiskDetection objects. + * Retrieve the properties of a collection of servicePrincipalRiskDetection objects. This API is supported in the following national cloud deployments. * @param ServicePrincipalRiskDetectionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identityprotectionroot-list-serviceprincipalriskdetections?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(ServicePrincipalRiskDetection $body, ?ServicePrincipalRiskD } /** - * Retrieve the properties of a collection of servicePrincipalRiskDetection objects. + * Retrieve the properties of a collection of servicePrincipalRiskDetection objects. This API is supported in the following national cloud deployments. * @param ServicePrincipalRiskDetectionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/ServicePrincipalRiskDetectionsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/ServicePrincipalRiskDetectionsRequestBuilderGetQueryParameters.php index 9910321348c..11ce20519bd 100644 --- a/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/ServicePrincipalRiskDetectionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/ServicePrincipalRiskDetectionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties of a collection of servicePrincipalRiskDetection objects. + * Retrieve the properties of a collection of servicePrincipalRiskDetection objects. This API is supported in the following national cloud deployments. */ class ServicePrincipalRiskDetectionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesGetResponse.php b/src/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesGetResponse.php new file mode 100644 index 00000000000..2792e76af81 --- /dev/null +++ b/src/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesGetResponse.php @@ -0,0 +1,78 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setValue($val); + }, + ]); + } + + /** + * 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, 'string'); + /** @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->writeCollectionOfPrimitiveValues('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/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.php b/src/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.php index e9ec63390c3..00ed791ab67 100644 --- a/src/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.php +++ b/src/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.php @@ -42,7 +42,7 @@ public function get(?AvailableProviderTypesRequestBuilderGetRequestConfiguration '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], ]; - return $this->requestAdapter->sendAsync($requestInfo, [AvailableProviderTypesResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + return $this->requestAdapter->sendAsync($requestInfo, [AvailableProviderTypesGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } catch(Exception $ex) { return new RejectedPromise($ex); } diff --git a/src/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesResponse.php b/src/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesResponse.php deleted file mode 100644 index 3e2c308d08e..00000000000 --- a/src/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesResponse.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - $o = $this; - return array_merge(parent::getFieldDeserializers(), [ - 'value' => function (ParseNode $n) { - $val = $n->getCollectionOfPrimitiveValues(); - if (is_array($val)) { - TypeUtils::validateCollectionValues($val, 'string'); - } - /** @var array|null $val */ - $this->setValue($val); - }, - ]); - } - - /** - * 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, 'string'); - /** @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->writeCollectionOfPrimitiveValues('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/IdentityProviders/IdentityProvidersRequestBuilder.php b/src/Generated/IdentityProviders/IdentityProvidersRequestBuilder.php index 19c14d80f05..2de64cc4e26 100644 --- a/src/Generated/IdentityProviders/IdentityProvidersRequestBuilder.php +++ b/src/Generated/IdentityProviders/IdentityProvidersRequestBuilder.php @@ -61,7 +61,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve all identityProviders in the directory. + * Retrieve all identityProviders in the directory. This API is supported in the following national cloud deployments. * @param IdentityProvidersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identityprovider-list?view=graph-rest-1.0 Find more info here @@ -80,7 +80,7 @@ public function get(?IdentityProvidersRequestBuilderGetRequestConfiguration $req } /** - * Create a new identityProvider by specifying display name, identityProvider type, client ID, and client secret. + * Create a new identityProvider by specifying display name, identityProvider type, client ID, and client secret. This API is supported in the following national cloud deployments. * @param IdentityProvider $body The request body * @param IdentityProvidersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -100,7 +100,7 @@ public function post(IdentityProvider $body, ?IdentityProvidersRequestBuilderPos } /** - * Retrieve all identityProviders in the directory. + * Retrieve all identityProviders in the directory. This API is supported in the following national cloud deployments. * @param IdentityProvidersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -121,7 +121,7 @@ public function toGetRequestInformation(?IdentityProvidersRequestBuilderGetReque } /** - * Create a new identityProvider by specifying display name, identityProvider type, client ID, and client secret. + * Create a new identityProvider by specifying display name, identityProvider type, client ID, and client secret. This API is supported in the following national cloud deployments. * @param IdentityProvider $body The request body * @param IdentityProvidersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityProviders/IdentityProvidersRequestBuilderGetQueryParameters.php b/src/Generated/IdentityProviders/IdentityProvidersRequestBuilderGetQueryParameters.php index 5bf3413ce12..4b3f6b28100 100644 --- a/src/Generated/IdentityProviders/IdentityProvidersRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityProviders/IdentityProvidersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve all identityProviders in the directory. + * Retrieve all identityProviders in the directory. This API is supported in the following national cloud deployments. */ class IdentityProvidersRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityProviders/Item/IdentityProviderItemRequestBuilder.php b/src/Generated/IdentityProviders/Item/IdentityProviderItemRequestBuilder.php index 48b6fbe91a8..e29c402a7c3 100644 --- a/src/Generated/IdentityProviders/Item/IdentityProviderItemRequestBuilder.php +++ b/src/Generated/IdentityProviders/Item/IdentityProviderItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an existing identityProvider. + * Delete an existing identityProvider. This API is supported in the following national cloud deployments. * @param IdentityProviderItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identityprovider-delete?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function delete(?IdentityProviderItemRequestBuilderDeleteRequestConfigura } /** - * Retrieve the properties of an existing identityProvider. + * Retrieve the properties of an existing identityProvider. This API is supported in the following national cloud deployments. * @param IdentityProviderItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/identityprovider-get?view=graph-rest-1.0 Find more info here @@ -70,7 +70,7 @@ public function get(?IdentityProviderItemRequestBuilderGetRequestConfiguration $ } /** - * Update properties in an existing identityProvider. + * Update properties in an existing identityProvider. This API is supported in the following national cloud deployments. * @param IdentityProvider $body The request body * @param IdentityProviderItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -90,7 +90,7 @@ public function patch(IdentityProvider $body, ?IdentityProviderItemRequestBuilde } /** - * Delete an existing identityProvider. + * Delete an existing identityProvider. This API is supported in the following national cloud deployments. * @param IdentityProviderItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -107,7 +107,7 @@ public function toDeleteRequestInformation(?IdentityProviderItemRequestBuilderDe } /** - * Retrieve the properties of an existing identityProvider. + * Retrieve the properties of an existing identityProvider. This API is supported in the following national cloud deployments. * @param IdentityProviderItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -128,7 +128,7 @@ public function toGetRequestInformation(?IdentityProviderItemRequestBuilderGetRe } /** - * Update properties in an existing identityProvider. + * Update properties in an existing identityProvider. This API is supported in the following national cloud deployments. * @param IdentityProvider $body The request body * @param IdentityProviderItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/IdentityProviders/Item/IdentityProviderItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityProviders/Item/IdentityProviderItemRequestBuilderGetQueryParameters.php index 04a2d58e162..817b83cd83b 100644 --- a/src/Generated/IdentityProviders/Item/IdentityProviderItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityProviders/Item/IdentityProviderItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties of an existing identityProvider. + * Retrieve the properties of an existing identityProvider. This API is supported in the following national cloud deployments. */ class IdentityProviderItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/InformationProtection/Bitlocker/RecoveryKeys/Item/BitlockerRecoveryKeyItemRequestBuilder.php b/src/Generated/InformationProtection/Bitlocker/RecoveryKeys/Item/BitlockerRecoveryKeyItemRequestBuilder.php index f8225307410..d749d6ed22b 100644 --- a/src/Generated/InformationProtection/Bitlocker/RecoveryKeys/Item/BitlockerRecoveryKeyItemRequestBuilder.php +++ b/src/Generated/InformationProtection/Bitlocker/RecoveryKeys/Item/BitlockerRecoveryKeyItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the properties and relationships of a bitlockerRecoveryKey object. By default, this operation does not return the key property that represents the actual recovery key. To include the key property in the response, use the $select OData query parameter. Including the $select query parameter triggers an Azure AD audit of the operation and generates an audit log. For more information on audit logs for bitlocker recovery keys, see the KeyManagement category filter of Azure AD audit logs. + * Retrieve the properties and relationships of a bitlockerRecoveryKey object. By default, this operation doesn't return the key property that represents the actual recovery key. To include the key property in the response, use the $select OData query parameter. Including the $select query parameter triggers an Azure AD audit of the operation and generates an audit log. For more information on audit logs for bitlocker recovery keys, see the KeyManagement category filter of Azure AD audit logs. This API is supported in the following national cloud deployments. * @param BitlockerRecoveryKeyItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/bitlockerrecoverykey-get?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function get(?BitlockerRecoveryKeyItemRequestBuilderGetRequestConfigurati } /** - * Retrieve the properties and relationships of a bitlockerRecoveryKey object. By default, this operation does not return the key property that represents the actual recovery key. To include the key property in the response, use the $select OData query parameter. Including the $select query parameter triggers an Azure AD audit of the operation and generates an audit log. For more information on audit logs for bitlocker recovery keys, see the KeyManagement category filter of Azure AD audit logs. + * Retrieve the properties and relationships of a bitlockerRecoveryKey object. By default, this operation doesn't return the key property that represents the actual recovery key. To include the key property in the response, use the $select OData query parameter. Including the $select query parameter triggers an Azure AD audit of the operation and generates an audit log. For more information on audit logs for bitlocker recovery keys, see the KeyManagement category filter of Azure AD audit logs. This API is supported in the following national cloud deployments. * @param BitlockerRecoveryKeyItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/InformationProtection/Bitlocker/RecoveryKeys/Item/BitlockerRecoveryKeyItemRequestBuilderGetQueryParameters.php b/src/Generated/InformationProtection/Bitlocker/RecoveryKeys/Item/BitlockerRecoveryKeyItemRequestBuilderGetQueryParameters.php index e2264f0520d..2f54fc9df74 100644 --- a/src/Generated/InformationProtection/Bitlocker/RecoveryKeys/Item/BitlockerRecoveryKeyItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/InformationProtection/Bitlocker/RecoveryKeys/Item/BitlockerRecoveryKeyItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a bitlockerRecoveryKey object. By default, this operation does not return the key property that represents the actual recovery key. To include the key property in the response, use the $select OData query parameter. Including the $select query parameter triggers an Azure AD audit of the operation and generates an audit log. For more information on audit logs for bitlocker recovery keys, see the KeyManagement category filter of Azure AD audit logs. + * Retrieve the properties and relationships of a bitlockerRecoveryKey object. By default, this operation doesn't return the key property that represents the actual recovery key. To include the key property in the response, use the $select OData query parameter. Including the $select query parameter triggers an Azure AD audit of the operation and generates an audit log. For more information on audit logs for bitlocker recovery keys, see the KeyManagement category filter of Azure AD audit logs. This API is supported in the following national cloud deployments. */ class BitlockerRecoveryKeyItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/InformationProtection/Bitlocker/RecoveryKeys/RecoveryKeysRequestBuilder.php b/src/Generated/InformationProtection/Bitlocker/RecoveryKeys/RecoveryKeysRequestBuilder.php index f6b56c89f98..fb0a1f3773a 100644 --- a/src/Generated/InformationProtection/Bitlocker/RecoveryKeys/RecoveryKeysRequestBuilder.php +++ b/src/Generated/InformationProtection/Bitlocker/RecoveryKeys/RecoveryKeysRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of the bitlockerRecoveryKey objects and their properties. This operation does not return the key property. For information about how to read the key property, see Get bitlockerRecoveryKey. + * Get a list of the bitlockerRecoveryKey objects and their properties. This operation does not return the key property. For information about how to read the key property, see Get bitlockerRecoveryKey. This API is supported in the following national cloud deployments. * @param RecoveryKeysRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/bitlocker-list-recoverykeys?view=graph-rest-1.0 Find more info here @@ -71,7 +71,7 @@ public function get(?RecoveryKeysRequestBuilderGetRequestConfiguration $requestC } /** - * Get a list of the bitlockerRecoveryKey objects and their properties. This operation does not return the key property. For information about how to read the key property, see Get bitlockerRecoveryKey. + * Get a list of the bitlockerRecoveryKey objects and their properties. This operation does not return the key property. For information about how to read the key property, see Get bitlockerRecoveryKey. This API is supported in the following national cloud deployments. * @param RecoveryKeysRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/InformationProtection/Bitlocker/RecoveryKeys/RecoveryKeysRequestBuilderGetQueryParameters.php b/src/Generated/InformationProtection/Bitlocker/RecoveryKeys/RecoveryKeysRequestBuilderGetQueryParameters.php index fd1a5227b4e..4de90a07805 100644 --- a/src/Generated/InformationProtection/Bitlocker/RecoveryKeys/RecoveryKeysRequestBuilderGetQueryParameters.php +++ b/src/Generated/InformationProtection/Bitlocker/RecoveryKeys/RecoveryKeysRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the bitlockerRecoveryKey objects and their properties. This operation does not return the key property. For information about how to read the key property, see Get bitlockerRecoveryKey. + * Get a list of the bitlockerRecoveryKey objects and their properties. This operation does not return the key property. For information about how to read the key property, see Get bitlockerRecoveryKey. This API is supported in the following national cloud deployments. */ class RecoveryKeysRequestBuilderGetQueryParameters { diff --git a/src/Generated/InformationProtection/ThreatAssessmentRequests/Item/ThreatAssessmentRequestItemRequestBuilder.php b/src/Generated/InformationProtection/ThreatAssessmentRequests/Item/ThreatAssessmentRequestItemRequestBuilder.php index 9adcaceb84e..ccbcbed583a 100644 --- a/src/Generated/InformationProtection/ThreatAssessmentRequests/Item/ThreatAssessmentRequestItemRequestBuilder.php +++ b/src/Generated/InformationProtection/ThreatAssessmentRequests/Item/ThreatAssessmentRequestItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?ThreatAssessmentRequestItemRequestBuilderDeleteRequestCo } /** - * Retrieve the properties and relationships of a specified threatAssessmentRequest object. A threat assessment request can be one of the following types: + * Retrieve the properties and relationships of a specified threatAssessmentRequest object. A threat assessment request can be one of the following types: This API is supported in the following national cloud deployments. * @param ThreatAssessmentRequestItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/threatassessmentrequest-get?view=graph-rest-1.0 Find more info here @@ -113,7 +113,7 @@ public function toDeleteRequestInformation(?ThreatAssessmentRequestItemRequestBu } /** - * Retrieve the properties and relationships of a specified threatAssessmentRequest object. A threat assessment request can be one of the following types: + * Retrieve the properties and relationships of a specified threatAssessmentRequest object. A threat assessment request can be one of the following types: This API is supported in the following national cloud deployments. * @param ThreatAssessmentRequestItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/InformationProtection/ThreatAssessmentRequests/Item/ThreatAssessmentRequestItemRequestBuilderGetQueryParameters.php b/src/Generated/InformationProtection/ThreatAssessmentRequests/Item/ThreatAssessmentRequestItemRequestBuilderGetQueryParameters.php index 7a509537589..2a4180c1b62 100644 --- a/src/Generated/InformationProtection/ThreatAssessmentRequests/Item/ThreatAssessmentRequestItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/InformationProtection/ThreatAssessmentRequests/Item/ThreatAssessmentRequestItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties and relationships of a specified threatAssessmentRequest object. A threat assessment request can be one of the following types: + * Retrieve the properties and relationships of a specified threatAssessmentRequest object. A threat assessment request can be one of the following types: This API is supported in the following national cloud deployments. */ class ThreatAssessmentRequestItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/InformationProtection/ThreatAssessmentRequests/ThreatAssessmentRequestsRequestBuilder.php b/src/Generated/InformationProtection/ThreatAssessmentRequests/ThreatAssessmentRequestsRequestBuilder.php index 3af9e2f4bf3..fc09bf84021 100644 --- a/src/Generated/InformationProtection/ThreatAssessmentRequests/ThreatAssessmentRequestsRequestBuilder.php +++ b/src/Generated/InformationProtection/ThreatAssessmentRequests/ThreatAssessmentRequestsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of threatAssessmentRequest objects. A threat assessment request can be one of the following types: + * Retrieve a list of threatAssessmentRequest objects. A threat assessment request can be one of the following types: This API is supported in the following national cloud deployments. * @param ThreatAssessmentRequestsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/informationprotection-list-threatassessmentrequests?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?ThreatAssessmentRequestsRequestBuilderGetRequestConfigurati } /** - * Create a new threat assessment request. A threat assessment request can be one of the following types: + * Create a new threat assessment request. A threat assessment request can be one of the following types: This API is supported in the following national cloud deployments. * @param ThreatAssessmentRequest $body The request body * @param ThreatAssessmentRequestsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(ThreatAssessmentRequest $body, ?ThreatAssessmentRequestsReq } /** - * Retrieve a list of threatAssessmentRequest objects. A threat assessment request can be one of the following types: + * Retrieve a list of threatAssessmentRequest objects. A threat assessment request can be one of the following types: This API is supported in the following national cloud deployments. * @param ThreatAssessmentRequestsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +113,7 @@ public function toGetRequestInformation(?ThreatAssessmentRequestsRequestBuilderG } /** - * Create a new threat assessment request. A threat assessment request can be one of the following types: + * Create a new threat assessment request. A threat assessment request can be one of the following types: This API is supported in the following national cloud deployments. * @param ThreatAssessmentRequest $body The request body * @param ThreatAssessmentRequestsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/InformationProtection/ThreatAssessmentRequests/ThreatAssessmentRequestsRequestBuilderGetQueryParameters.php b/src/Generated/InformationProtection/ThreatAssessmentRequests/ThreatAssessmentRequestsRequestBuilderGetQueryParameters.php index a37eb08ab0b..5f12f8244da 100644 --- a/src/Generated/InformationProtection/ThreatAssessmentRequests/ThreatAssessmentRequestsRequestBuilderGetQueryParameters.php +++ b/src/Generated/InformationProtection/ThreatAssessmentRequests/ThreatAssessmentRequestsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of threatAssessmentRequest objects. A threat assessment request can be one of the following types: + * Retrieve a list of threatAssessmentRequest objects. A threat assessment request can be one of the following types: This API is supported in the following national cloud deployments. */ class ThreatAssessmentRequestsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Invitations/InvitationsRequestBuilder.php b/src/Generated/Invitations/InvitationsRequestBuilder.php index 93a7d4f9d20..ad975e1679d 100644 --- a/src/Generated/Invitations/InvitationsRequestBuilder.php +++ b/src/Generated/Invitations/InvitationsRequestBuilder.php @@ -71,7 +71,7 @@ public function get(?InvitationsRequestBuilderGetRequestConfiguration $requestCo } /** - * Use this API to create a new invitation. Invitation adds an external user to the organization. When creating a new invitation you have several options available: + * Use this API to create a new invitation. Invitation adds an external user to the organization. When creating a new invitation, you have several options available: This API is supported in the following national cloud deployments. * @param Invitation $body The request body * @param InvitationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -112,7 +112,7 @@ public function toGetRequestInformation(?InvitationsRequestBuilderGetRequestConf } /** - * Use this API to create a new invitation. Invitation adds an external user to the organization. When creating a new invitation you have several options available: + * Use this API to create a new invitation. Invitation adds an external user to the organization. When creating a new invitation, you have several options available: This API is supported in the following national cloud deployments. * @param Invitation $body The request body * @param InvitationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Invitations/Item/InvitedUser/InvitedUserRequestBuilder.php b/src/Generated/Invitations/Item/InvitedUser/InvitedUserRequestBuilder.php index 3ad135cae06..13926c3727a 100644 --- a/src/Generated/Invitations/Item/InvitedUser/InvitedUserRequestBuilder.php +++ b/src/Generated/Invitations/Item/InvitedUser/InvitedUserRequestBuilder.php @@ -6,6 +6,7 @@ use Http\Promise\Promise; use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\Invitations\Item\InvitedUser\MailboxSettings\MailboxSettingsRequestBuilder; +use Microsoft\Graph\Generated\Invitations\Item\InvitedUser\ServiceProvisioningErrors\ServiceProvisioningErrorsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\User; use Microsoft\Kiota\Abstractions\BaseRequestBuilder; @@ -25,6 +26,13 @@ public function mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * The serviceProvisioningErrors property + */ + public function serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Instantiates a new InvitedUserRequestBuilder and sets the default values. * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. diff --git a/src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..d06c8f7aa29 --- /dev/null +++ b/src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -0,0 +1,81 @@ +|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}/invitations/{invitation%2Did}/invitedUser/serviceProvisioningErrors/$count{?%24search,%24filter}'); + 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 + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * 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; + $requestInfo->addHeader('Accept', "text/plain"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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/Invitations/Item/InvitedUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..6bcf07d819c --- /dev/null +++ b/src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..cc35163ee5a --- /dev/null +++ b/src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/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/Invitations/Item/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php new file mode 100644 index 00000000000..c463fd1defe --- /dev/null +++ b/src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -0,0 +1,90 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/invitations/{invitation%2Did}/invitedUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ServiceProvisioningErrorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get serviceProvisioningErrors property value + * @param ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->addHeader('Accept', "application/json"); + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + 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 ServiceProvisioningErrorsRequestBuilder + */ + public function withUrl(string $rawUrl): ServiceProvisioningErrorsRequestBuilder { + return new ServiceProvisioningErrorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php b/src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..10cd42490da --- /dev/null +++ b/src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetQueryParameters.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 serviceProvisioningErrorsRequestBuilderGetQueryParameters 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/Invitations/Item/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php b/src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..61a690cac33 --- /dev/null +++ b/src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ServiceProvisioningErrorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ServiceProvisioningErrorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new serviceProvisioningErrorsRequestBuilderGetQueryParameters. + * @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 ServiceProvisioningErrorsRequestBuilderGetQueryParameters + */ + 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): ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + return new ServiceProvisioningErrorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Models/AccessPackageAssignmentApprovalSettings.php b/src/Generated/Models/AccessPackageAssignmentApprovalSettings.php index 4d688933472..267e896a1ca 100644 --- a/src/Generated/Models/AccessPackageAssignmentApprovalSettings.php +++ b/src/Generated/Models/AccessPackageAssignmentApprovalSettings.php @@ -71,7 +71,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the isApprovalRequiredForAdd property value. If false, then approval is not required for new requests in this policy. + * Gets the isApprovalRequiredForAdd property value. If false, then approval isn't required for new requests in this policy. * @return bool|null */ public function getIsApprovalRequiredForAdd(): ?bool { @@ -83,7 +83,7 @@ public function getIsApprovalRequiredForAdd(): ?bool { } /** - * Gets the isApprovalRequiredForUpdate property value. If false, then approval is not required for updates to requests in this policy. + * Gets the isApprovalRequiredForUpdate property value. If false, then approval isn't required for updates to requests in this policy. * @return bool|null */ public function getIsApprovalRequiredForUpdate(): ?bool { @@ -149,7 +149,7 @@ public function setBackingStore(BackingStore $value): void { } /** - * Sets the isApprovalRequiredForAdd property value. If false, then approval is not required for new requests in this policy. + * Sets the isApprovalRequiredForAdd property value. If false, then approval isn't required for new requests in this policy. * @param bool|null $value Value to set for the isApprovalRequiredForAdd property. */ public function setIsApprovalRequiredForAdd(?bool $value): void { @@ -157,7 +157,7 @@ public function setIsApprovalRequiredForAdd(?bool $value): void { } /** - * Sets the isApprovalRequiredForUpdate property value. If false, then approval is not required for updates to requests in this policy. + * Sets the isApprovalRequiredForUpdate property value. If false, then approval isn't required for updates to requests in this policy. * @param bool|null $value Value to set for the isApprovalRequiredForUpdate property. */ public function setIsApprovalRequiredForUpdate(?bool $value): void { diff --git a/src/Generated/Models/AccessPackageAssignmentRequest.php b/src/Generated/Models/AccessPackageAssignmentRequest.php index 3eab6d4b8ad..b212c8a0370 100644 --- a/src/Generated/Models/AccessPackageAssignmentRequest.php +++ b/src/Generated/Models/AccessPackageAssignmentRequest.php @@ -136,7 +136,7 @@ public function getRequestor(): ?AccessPackageSubject { } /** - * Gets the requestType property value. The type of the request. The possible values are: notSpecified, userAdd, UserExtend, userUpdate, userRemove, adminAdd, adminUpdate, adminRemove, systemAdd, systemUpdate, systemRemove, onBehalfAdd (not supported), unknownFutureValue. A request from the user themselves would have requestType of userAdd, userUpdate or userRemove. This property cannot be changed once set. + * Gets the requestType property value. The type of the request. The possible values are: notSpecified, userAdd, UserExtend, userUpdate, userRemove, adminAdd, adminUpdate, adminRemove, systemAdd, systemUpdate, systemRemove, onBehalfAdd (not supported), unknownFutureValue. A request from the user themselves would have requestType of userAdd, userUpdate or userRemove. This property can't be changed once set. * @return AccessPackageRequestType|null */ public function getRequestType(): ?AccessPackageRequestType { @@ -148,7 +148,7 @@ public function getRequestType(): ?AccessPackageRequestType { } /** - * Gets the schedule property value. The range of dates that access is to be assigned to the requestor. This property cannot be changed once set. + * Gets the schedule property value. The range of dates that access is to be assigned to the requestor. This property can't be changed once set. * @return EntitlementManagementSchedule|null */ public function getSchedule(): ?EntitlementManagementSchedule { @@ -259,7 +259,7 @@ public function setRequestor(?AccessPackageSubject $value): void { } /** - * Sets the requestType property value. The type of the request. The possible values are: notSpecified, userAdd, UserExtend, userUpdate, userRemove, adminAdd, adminUpdate, adminRemove, systemAdd, systemUpdate, systemRemove, onBehalfAdd (not supported), unknownFutureValue. A request from the user themselves would have requestType of userAdd, userUpdate or userRemove. This property cannot be changed once set. + * Sets the requestType property value. The type of the request. The possible values are: notSpecified, userAdd, UserExtend, userUpdate, userRemove, adminAdd, adminUpdate, adminRemove, systemAdd, systemUpdate, systemRemove, onBehalfAdd (not supported), unknownFutureValue. A request from the user themselves would have requestType of userAdd, userUpdate or userRemove. This property can't be changed once set. * @param AccessPackageRequestType|null $value Value to set for the requestType property. */ public function setRequestType(?AccessPackageRequestType $value): void { @@ -267,7 +267,7 @@ public function setRequestType(?AccessPackageRequestType $value): void { } /** - * Sets the schedule property value. The range of dates that access is to be assigned to the requestor. This property cannot be changed once set. + * Sets the schedule property value. The range of dates that access is to be assigned to the requestor. This property can't be changed once set. * @param EntitlementManagementSchedule|null $value Value to set for the schedule property. */ public function setSchedule(?EntitlementManagementSchedule $value): void { diff --git a/src/Generated/Models/AccessPackageAssignmentRequestCallbackData.php b/src/Generated/Models/AccessPackageAssignmentRequestCallbackData.php index 5741ffda404..7af35cd92d0 100644 --- a/src/Generated/Models/AccessPackageAssignmentRequestCallbackData.php +++ b/src/Generated/Models/AccessPackageAssignmentRequestCallbackData.php @@ -64,7 +64,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the stage property value. Indicates the stage at which the custom callout extension will be executed. The possible values are: assignmentRequestCreated, assignmentRequestApproved, assignmentRequestGranted, assignmentRequestRemoved, assignmentFourteenDaysBeforeExpiration, assignmentOneDayBeforeExpiration, unknownFutureValue. + * Gets the stage property value. Indicates the stage at which the custom callout extension is executed. The possible values are: assignmentRequestCreated, assignmentRequestApproved, assignmentRequestGranted, assignmentRequestRemoved, assignmentFourteenDaysBeforeExpiration, assignmentOneDayBeforeExpiration, unknownFutureValue. * @return AccessPackageCustomExtensionStage|null */ public function getStage(): ?AccessPackageCustomExtensionStage { @@ -116,7 +116,7 @@ public function setCustomExtensionStageInstanceId(?string $value): void { } /** - * Sets the stage property value. Indicates the stage at which the custom callout extension will be executed. The possible values are: assignmentRequestCreated, assignmentRequestApproved, assignmentRequestGranted, assignmentRequestRemoved, assignmentFourteenDaysBeforeExpiration, assignmentOneDayBeforeExpiration, unknownFutureValue. + * Sets the stage property value. Indicates the stage at which the custom callout extension is executed. The possible values are: assignmentRequestCreated, assignmentRequestApproved, assignmentRequestGranted, assignmentRequestRemoved, assignmentFourteenDaysBeforeExpiration, assignmentOneDayBeforeExpiration, unknownFutureValue. * @param AccessPackageCustomExtensionStage|null $value Value to set for the stage property. */ public function setStage(?AccessPackageCustomExtensionStage $value): void { diff --git a/src/Generated/Models/AccessPackageAssignmentRequestorSettings.php b/src/Generated/Models/AccessPackageAssignmentRequestorSettings.php index 34b705f283d..84ab06f64f7 100644 --- a/src/Generated/Models/AccessPackageAssignmentRequestorSettings.php +++ b/src/Generated/Models/AccessPackageAssignmentRequestorSettings.php @@ -49,7 +49,7 @@ public function getAdditionalData(): ?array { } /** - * Gets the allowCustomAssignmentSchedule property value. False indicates that the requestor is not permitted to include a schedule in their request. + * Gets the allowCustomAssignmentSchedule property value. False indicates that the requestor isn't permitted to include a schedule in their request. * @return bool|null */ public function getAllowCustomAssignmentSchedule(): ?bool { @@ -211,7 +211,7 @@ public function setAdditionalData(?array $value): void { } /** - * Sets the allowCustomAssignmentSchedule property value. False indicates that the requestor is not permitted to include a schedule in their request. + * Sets the allowCustomAssignmentSchedule property value. False indicates that the requestor isn't permitted to include a schedule in their request. * @param bool|null $value Value to set for the allowCustomAssignmentSchedule property. */ public function setAllowCustomAssignmentSchedule(?bool $value): void { diff --git a/src/Generated/Models/AccessPackageTextInputQuestion.php b/src/Generated/Models/AccessPackageTextInputQuestion.php index 8b80e9435ab..d0f0fb75edf 100644 --- a/src/Generated/Models/AccessPackageTextInputQuestion.php +++ b/src/Generated/Models/AccessPackageTextInputQuestion.php @@ -50,7 +50,7 @@ public function getIsSingleLineQuestion(): ?bool { } /** - * Gets the regexPattern property value. The regular expression pattern which any answer to this question must match. + * Gets the regexPattern property value. The regular expression pattern that any answer to this question must match. * @return string|null */ public function getRegexPattern(): ?string { @@ -80,7 +80,7 @@ public function setIsSingleLineQuestion(?bool $value): void { } /** - * Sets the regexPattern property value. The regular expression pattern which any answer to this question must match. + * Sets the regexPattern property value. The regular expression pattern that any answer to this question must match. * @param string|null $value Value to set for the regexPattern property. */ public function setRegexPattern(?string $value): void { diff --git a/src/Generated/Models/AccessReviewHistoryScheduleSettings.php b/src/Generated/Models/AccessReviewHistoryScheduleSettings.php index 3028b29a85f..ae7798a1f48 100644 --- a/src/Generated/Models/AccessReviewHistoryScheduleSettings.php +++ b/src/Generated/Models/AccessReviewHistoryScheduleSettings.php @@ -93,7 +93,7 @@ public function getRecurrence(): ?PatternedRecurrence { } /** - * Gets the reportRange property value. A duration string in ISO 8601 duration format specifying the lookback period of the generated review history data. For example, if a history definition is scheduled to run on the 1st of every month, the reportRange is P1M. In this case, on the first of every month, access review history data will be collected containing only the previous month's review data. Note: Only years, months, and days ISO 8601 properties are supported. Required. + * Gets the reportRange property value. A duration string in ISO 8601 duration format specifying the lookback period of the generated review history data. For example, if a history definition is scheduled to run on the first of every month, the reportRange is P1M. In this case, on the first of every month, access review history data is collected containing only the previous month's review data. Note: Only years, months, and days ISO 8601 properties are supported. Required. * @return string|null */ public function getReportRange(): ?string { @@ -148,7 +148,7 @@ public function setRecurrence(?PatternedRecurrence $value): void { } /** - * Sets the reportRange property value. A duration string in ISO 8601 duration format specifying the lookback period of the generated review history data. For example, if a history definition is scheduled to run on the 1st of every month, the reportRange is P1M. In this case, on the first of every month, access review history data will be collected containing only the previous month's review data. Note: Only years, months, and days ISO 8601 properties are supported. Required. + * Sets the reportRange property value. A duration string in ISO 8601 duration format specifying the lookback period of the generated review history data. For example, if a history definition is scheduled to run on the first of every month, the reportRange is P1M. In this case, on the first of every month, access review history data is collected containing only the previous month's review data. Note: Only years, months, and days ISO 8601 properties are supported. Required. * @param string|null $value Value to set for the reportRange property. */ public function setReportRange(?string $value): void { diff --git a/src/Generated/Models/AccessReviewScheduleDefinition.php b/src/Generated/Models/AccessReviewScheduleDefinition.php index 1b582f672f7..f028c3e1f11 100644 --- a/src/Generated/Models/AccessReviewScheduleDefinition.php +++ b/src/Generated/Models/AccessReviewScheduleDefinition.php @@ -77,7 +77,7 @@ public function getDescriptionForAdmins(): ?string { } /** - * Gets the descriptionForReviewers property value. Description provided by review creators to provide more context of the review to reviewers. Reviewers will see this description in the email sent to them requesting their review. Email notifications support up to 256 characters. Supports $select. + * Gets the descriptionForReviewers property value. Description provided by review creators to provide more context of the review to reviewers. Reviewers see this description in the email sent to them requesting their review. Email notifications support up to 256 characters. Supports $select. * @return string|null */ public function getDescriptionForReviewers(): ?string { @@ -101,7 +101,7 @@ public function getDisplayName(): ?string { } /** - * Gets the fallbackReviewers property value. This collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers will be notified to take action if no users are found from the list of reviewers specified. This could occur when either the group owner is specified as the reviewer but the group owner does not exist, or manager is specified as reviewer but a user's manager does not exist. See accessReviewReviewerScope. Replaces backupReviewers. Supports $select. NOTE: The value of this property will be ignored if fallback reviewers are assigned through the stageSettings property. + * Gets the fallbackReviewers property value. This collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers are notified to take action if no users are found from the list of reviewers specified. This could occur when either the group owner is specified as the reviewer but the group owner doesn't exist, or manager is specified as reviewer but a user's manager doesn't exist. See accessReviewReviewerScope. Replaces backupReviewers. Supports $select. NOTE: The value of this property will be ignored if fallback reviewers are assigned through the stageSettings property. * @return array|null */ public function getFallbackReviewers(): ?array { @@ -140,7 +140,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the instanceEnumerationScope property value. This property is required when scoping a review to guest users' access across all Microsoft 365 groups and determines which Microsoft 365 groups are reviewed. Each group will become a unique accessReviewInstance of the access review series. For supported scopes, see accessReviewScope. Supports $select. For examples of options for configuring instanceEnumerationScope, see Configure the scope of your access review definition using the Microsoft Graph API. + * Gets the instanceEnumerationScope property value. This property is required when scoping a review to guest users' access across all Microsoft 365 groups and determines which Microsoft 365 groups are reviewed. Each group becomes a unique accessReviewInstance of the access review series. For supported scopes, see accessReviewScope. Supports $select. For examples of options for configuring instanceEnumerationScope, see Configure the scope of your access review definition using the Microsoft Graph API. * @return AccessReviewScope|null */ public function getInstanceEnumerationScope(): ?AccessReviewScope { @@ -152,7 +152,7 @@ public function getInstanceEnumerationScope(): ?AccessReviewScope { } /** - * Gets the instances property value. If the accessReviewScheduleDefinition is a recurring access review, instances represent each recurrence. A review that does not recur will have exactly one instance. Instances also represent each unique resource under review in the accessReviewScheduleDefinition. If a review has multiple resources and multiple instances, each resource will have a unique instance for each recurrence. + * Gets the instances property value. If the accessReviewScheduleDefinition is a recurring access review, instances represent each recurrence. A review that doesn't recur will have exactly one instance. Instances also represent each unique resource under review in the accessReviewScheduleDefinition. If a review has multiple resources and multiple instances, each resource has a unique instance for each recurrence. * @return array|null */ public function getInstances(): ?array { @@ -216,7 +216,7 @@ public function getSettings(): ?AccessReviewScheduleSettings { } /** - * Gets the stageSettings property value. Required only for a multi-stage access review to define the stages and their settings. You can break down each review instance into up to three sequential stages, where each stage can have a different set of reviewers, fallback reviewers, and settings. Stages will be created sequentially based on the dependsOn property. Optional. When this property is defined, its settings are used instead of the corresponding settings in the accessReviewScheduleDefinition object and its settings, reviewers, and fallbackReviewers properties. + * Gets the stageSettings property value. Required only for a multi-stage access review to define the stages and their settings. You can break down each review instance into up to three sequential stages, where each stage can have a different set of reviewers, fallback reviewers, and settings. Stages are created sequentially based on the dependsOn property. Optional. When this property is defined, its settings are used instead of the corresponding settings in the accessReviewScheduleDefinition object and its settings, reviewers, and fallbackReviewers properties. * @return array|null */ public function getStageSettings(): ?array { @@ -297,7 +297,7 @@ public function setDescriptionForAdmins(?string $value): void { } /** - * Sets the descriptionForReviewers property value. Description provided by review creators to provide more context of the review to reviewers. Reviewers will see this description in the email sent to them requesting their review. Email notifications support up to 256 characters. Supports $select. + * Sets the descriptionForReviewers property value. Description provided by review creators to provide more context of the review to reviewers. Reviewers see this description in the email sent to them requesting their review. Email notifications support up to 256 characters. Supports $select. * @param string|null $value Value to set for the descriptionForReviewers property. */ public function setDescriptionForReviewers(?string $value): void { @@ -313,7 +313,7 @@ public function setDisplayName(?string $value): void { } /** - * Sets the fallbackReviewers property value. This collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers will be notified to take action if no users are found from the list of reviewers specified. This could occur when either the group owner is specified as the reviewer but the group owner does not exist, or manager is specified as reviewer but a user's manager does not exist. See accessReviewReviewerScope. Replaces backupReviewers. Supports $select. NOTE: The value of this property will be ignored if fallback reviewers are assigned through the stageSettings property. + * Sets the fallbackReviewers property value. This collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers are notified to take action if no users are found from the list of reviewers specified. This could occur when either the group owner is specified as the reviewer but the group owner doesn't exist, or manager is specified as reviewer but a user's manager doesn't exist. See accessReviewReviewerScope. Replaces backupReviewers. Supports $select. NOTE: The value of this property will be ignored if fallback reviewers are assigned through the stageSettings property. * @param array|null $value Value to set for the fallbackReviewers property. */ public function setFallbackReviewers(?array $value): void { @@ -321,7 +321,7 @@ public function setFallbackReviewers(?array $value): void { } /** - * Sets the instanceEnumerationScope property value. This property is required when scoping a review to guest users' access across all Microsoft 365 groups and determines which Microsoft 365 groups are reviewed. Each group will become a unique accessReviewInstance of the access review series. For supported scopes, see accessReviewScope. Supports $select. For examples of options for configuring instanceEnumerationScope, see Configure the scope of your access review definition using the Microsoft Graph API. + * Sets the instanceEnumerationScope property value. This property is required when scoping a review to guest users' access across all Microsoft 365 groups and determines which Microsoft 365 groups are reviewed. Each group becomes a unique accessReviewInstance of the access review series. For supported scopes, see accessReviewScope. Supports $select. For examples of options for configuring instanceEnumerationScope, see Configure the scope of your access review definition using the Microsoft Graph API. * @param AccessReviewScope|null $value Value to set for the instanceEnumerationScope property. */ public function setInstanceEnumerationScope(?AccessReviewScope $value): void { @@ -329,7 +329,7 @@ public function setInstanceEnumerationScope(?AccessReviewScope $value): void { } /** - * Sets the instances property value. If the accessReviewScheduleDefinition is a recurring access review, instances represent each recurrence. A review that does not recur will have exactly one instance. Instances also represent each unique resource under review in the accessReviewScheduleDefinition. If a review has multiple resources and multiple instances, each resource will have a unique instance for each recurrence. + * Sets the instances property value. If the accessReviewScheduleDefinition is a recurring access review, instances represent each recurrence. A review that doesn't recur will have exactly one instance. Instances also represent each unique resource under review in the accessReviewScheduleDefinition. If a review has multiple resources and multiple instances, each resource has a unique instance for each recurrence. * @param array|null $value Value to set for the instances property. */ public function setInstances(?array $value): void { @@ -369,7 +369,7 @@ public function setSettings(?AccessReviewScheduleSettings $value): void { } /** - * Sets the stageSettings property value. Required only for a multi-stage access review to define the stages and their settings. You can break down each review instance into up to three sequential stages, where each stage can have a different set of reviewers, fallback reviewers, and settings. Stages will be created sequentially based on the dependsOn property. Optional. When this property is defined, its settings are used instead of the corresponding settings in the accessReviewScheduleDefinition object and its settings, reviewers, and fallbackReviewers properties. + * Sets the stageSettings property value. Required only for a multi-stage access review to define the stages and their settings. You can break down each review instance into up to three sequential stages, where each stage can have a different set of reviewers, fallback reviewers, and settings. Stages are created sequentially based on the dependsOn property. Optional. When this property is defined, its settings are used instead of the corresponding settings in the accessReviewScheduleDefinition object and its settings, reviewers, and fallbackReviewers properties. * @param array|null $value Value to set for the stageSettings property. */ public function setStageSettings(?array $value): void { diff --git a/src/Generated/Models/AccessReviewStage.php b/src/Generated/Models/AccessReviewStage.php index 732345b2d71..dc289a7e42e 100644 --- a/src/Generated/Models/AccessReviewStage.php +++ b/src/Generated/Models/AccessReviewStage.php @@ -53,7 +53,7 @@ public function getEndDateTime(): ?DateTime { } /** - * Gets the fallbackReviewers property value. This collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers will be notified to take action if no users are found from the list of reviewers specified. This could occur when either the group owner is specified as the reviewer but the group owner does not exist, or manager is specified as reviewer but a user's manager does not exist. + * Gets the fallbackReviewers property value. This collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers are notified to take action if no users are found from the list of reviewers specified. This could occur when either the group owner is specified as the reviewer but the group owner doesn't exist, or manager is specified as reviewer but a user's manager doesn't exist. * @return array|null */ public function getFallbackReviewers(): ?array { @@ -151,7 +151,7 @@ public function setEndDateTime(?DateTime $value): void { } /** - * Sets the fallbackReviewers property value. This collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers will be notified to take action if no users are found from the list of reviewers specified. This could occur when either the group owner is specified as the reviewer but the group owner does not exist, or manager is specified as reviewer but a user's manager does not exist. + * Sets the fallbackReviewers property value. This collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers are notified to take action if no users are found from the list of reviewers specified. This could occur when either the group owner is specified as the reviewer but the group owner doesn't exist, or manager is specified as reviewer but a user's manager doesn't exist. * @param array|null $value Value to set for the fallbackReviewers property. */ public function setFallbackReviewers(?array $value): void { diff --git a/src/Generated/Models/AccountTargetContent.php b/src/Generated/Models/AccountTargetContent.php new file mode 100644 index 00000000000..cb4487870fa --- /dev/null +++ b/src/Generated/Models/AccountTargetContent.php @@ -0,0 +1,144 @@ +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 AccountTargetContent + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): AccountTargetContent { + $mappingValueNode = $parseNode->getChildNode("@odata.type"); + if ($mappingValueNode !== null) { + $mappingValue = $mappingValueNode->getStringValue(); + switch ($mappingValue) { + case '#microsoft.graph.addressBookAccountTargetContent': return new AddressBookAccountTargetContent(); + case '#microsoft.graph.includeAllAccountTargetContent': return new IncludeAllAccountTargetContent(); + } + } + return new AccountTargetContent(); + } + + /** + * 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()), + 'type' => fn(ParseNode $n) => $o->setType($n->getEnumValue(AccountTargetContentType::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 type property value. The type property + * @return AccountTargetContentType|null + */ + public function getType(): ?AccountTargetContentType { + $val = $this->getBackingStore()->get('type'); + if (is_null($val) || $val instanceof AccountTargetContentType) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'type'"); + } + + /** + * 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->writeEnumValue('type', $this->getType()); + $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 type property value. The type property + * @param AccountTargetContentType|null $value Value to set for the type property. + */ + public function setType(?AccountTargetContentType $value): void { + $this->getBackingStore()->set('type', $value); + } + +} diff --git a/src/Generated/Models/AccountTargetContentType.php b/src/Generated/Models/AccountTargetContentType.php new file mode 100644 index 00000000000..c4e9835aeb5 --- /dev/null +++ b/src/Generated/Models/AccountTargetContentType.php @@ -0,0 +1,12 @@ +setOdataType('#microsoft.graph.addressBookAccountTargetContent'); + } + + /** + * 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 AddressBookAccountTargetContent + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): AddressBookAccountTargetContent { + return new AddressBookAccountTargetContent(); + } + + /** + * Gets the accountTargetEmails property value. The accountTargetEmails property + * @return array|null + */ + public function getAccountTargetEmails(): ?array { + $val = $this->getBackingStore()->get('accountTargetEmails'); + 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 'accountTargetEmails'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'accountTargetEmails' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setAccountTargetEmails($val); + }, + ]); + } + + /** + * 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('accountTargetEmails', $this->getAccountTargetEmails()); + } + + /** + * Sets the accountTargetEmails property value. The accountTargetEmails property + * @param array|null $value Value to set for the accountTargetEmails property. + */ + public function setAccountTargetEmails(?array $value): void { + $this->getBackingStore()->set('accountTargetEmails', $value); + } + +} diff --git a/src/Generated/Models/AggregationOption.php b/src/Generated/Models/AggregationOption.php index a6839102b8f..94dc692b5b5 100644 --- a/src/Generated/Models/AggregationOption.php +++ b/src/Generated/Models/AggregationOption.php @@ -106,7 +106,7 @@ public function getOdataType(): ?string { } /** - * Gets the size property value. The number of searchBucket resources to be returned. This is not required when the range is provided manually in the search request. Optional. + * Gets the size property value. The number of searchBucket resources to be returned. This isn't required when the range is provided manually in the search request. Optional. * @return int|null */ public function getSize(): ?int { @@ -170,7 +170,7 @@ public function setOdataType(?string $value): void { } /** - * Sets the size property value. The number of searchBucket resources to be returned. This is not required when the range is provided manually in the search request. Optional. + * Sets the size property value. The number of searchBucket resources to be returned. This isn't required when the range is provided manually in the search request. Optional. * @param int|null $value Value to set for the size property. */ public function setSize(?int $value): void { diff --git a/src/Generated/Models/AgreementFileProperties.php b/src/Generated/Models/AgreementFileProperties.php index c3362139a70..ece1e2b8e71 100644 --- a/src/Generated/Models/AgreementFileProperties.php +++ b/src/Generated/Models/AgreementFileProperties.php @@ -35,7 +35,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Agree } /** - * Gets the createdDateTime property value. The date time representing when the file was created.The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * Gets the createdDateTime property value. The date time representing when the file was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @return DateTime|null */ public function getCreatedDateTime(): ?DateTime { @@ -100,7 +100,7 @@ public function getFileName(): ?string { } /** - * Gets the isDefault property value. If none of the languages matches the client preference, indicates whether this is the default agreement file . If none of the files are marked as default, the first one is treated as the default. Read-only. + * Gets the isDefault property value. If none of the languages matches the client preference, indicates whether this is the default agreement file. If none of the files are marked as default, the first one is treated as the default. Read-only. * @return bool|null */ public function getIsDefault(): ?bool { @@ -151,7 +151,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the createdDateTime property value. The date time representing when the file was created.The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * Sets the createdDateTime property value. The date time representing when the file was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @param DateTime|null $value Value to set for the createdDateTime property. */ public function setCreatedDateTime(?DateTime $value): void { @@ -183,7 +183,7 @@ public function setFileName(?string $value): void { } /** - * Sets the isDefault property value. If none of the languages matches the client preference, indicates whether this is the default agreement file . If none of the files are marked as default, the first one is treated as the default. Read-only. + * Sets the isDefault property value. If none of the languages matches the client preference, indicates whether this is the default agreement file. If none of the files are marked as default, the first one is treated as the default. Read-only. * @param bool|null $value Value to set for the isDefault property. */ public function setIsDefault(?bool $value): void { diff --git a/src/Generated/Models/AllowedValue.php b/src/Generated/Models/AllowedValue.php index 3d87905f44d..8ce3eec6e58 100644 --- a/src/Generated/Models/AllowedValue.php +++ b/src/Generated/Models/AllowedValue.php @@ -36,7 +36,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the isActive property value. Indicates whether the predefined value is active or deactivated. If set to false, this predefined value cannot be assigned to any additional supported directory objects. + * Gets the isActive property value. Indicates whether the predefined value is active or deactivated. If set to false, this predefined value can't be assigned to any other supported directory objects. * @return bool|null */ public function getIsActive(): ?bool { @@ -57,7 +57,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the isActive property value. Indicates whether the predefined value is active or deactivated. If set to false, this predefined value cannot be assigned to any additional supported directory objects. + * Sets the isActive property value. Indicates whether the predefined value is active or deactivated. If set to false, this predefined value can't be assigned to any other supported directory objects. * @param bool|null $value Value to set for the isActive property. */ public function setIsActive(?bool $value): void { diff --git a/src/Generated/Models/ApiApplication.php b/src/Generated/Models/ApiApplication.php index 4020b134464..44a232d5e87 100644 --- a/src/Generated/Models/ApiApplication.php +++ b/src/Generated/Models/ApiApplication.php @@ -132,7 +132,7 @@ public function getOdataType(): ?string { } /** - * Gets the preAuthorizedApplications property value. Lists the client applications that are pre-authorized with the specified delegated permissions to access this application's APIs. Users are not required to consent to any pre-authorized application (for the permissions specified). However, any additional permissions not listed in preAuthorizedApplications (requested through incremental consent for example) will require user consent. + * Gets the preAuthorizedApplications property value. Lists the client applications that are preauthorized with the specified delegated permissions to access this application's APIs. Users aren't required to consent to any preauthorized application (for the permissions specified). However, any other permissions not listed in preAuthorizedApplications (requested through incremental consent for example) will require user consent. * @return array|null */ public function getPreAuthorizedApplications(): ?array { @@ -220,7 +220,7 @@ public function setOdataType(?string $value): void { } /** - * Sets the preAuthorizedApplications property value. Lists the client applications that are pre-authorized with the specified delegated permissions to access this application's APIs. Users are not required to consent to any pre-authorized application (for the permissions specified). However, any additional permissions not listed in preAuthorizedApplications (requested through incremental consent for example) will require user consent. + * Sets the preAuthorizedApplications property value. Lists the client applications that are preauthorized with the specified delegated permissions to access this application's APIs. Users aren't required to consent to any preauthorized application (for the permissions specified). However, any other permissions not listed in preAuthorizedApplications (requested through incremental consent for example) will require user consent. * @param array|null $value Value to set for the preAuthorizedApplications property. */ public function setPreAuthorizedApplications(?array $value): void { diff --git a/src/Generated/Models/AppIdentity.php b/src/Generated/Models/AppIdentity.php index dfc8c1f17db..a492b7d47ef 100644 --- a/src/Generated/Models/AppIdentity.php +++ b/src/Generated/Models/AppIdentity.php @@ -68,7 +68,7 @@ public function getBackingStore(): BackingStore { } /** - * Gets the displayName property value. Refers to the Application Name displayed in the Azure Portal. + * Gets the displayName property value. Refers to the application name displayed in the Microsoft Entra admin center. * @return string|null */ public function getDisplayName(): ?string { @@ -168,7 +168,7 @@ public function setBackingStore(BackingStore $value): void { } /** - * Sets the displayName property value. Refers to the Application Name displayed in the Azure Portal. + * Sets the displayName property value. Refers to the application name displayed in the Microsoft Entra admin center. * @param string|null $value Value to set for the displayName property. */ public function setDisplayName(?string $value): void { diff --git a/src/Generated/Models/AppRole.php b/src/Generated/Models/AppRole.php index 8965f2bf1b6..bec8ab846b8 100644 --- a/src/Generated/Models/AppRole.php +++ b/src/Generated/Models/AppRole.php @@ -168,7 +168,7 @@ public function getOrigin(): ?string { } /** - * Gets the value property value. Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , - . / : ; = ? @ [ ] ^ + _ { } ~, as well as characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, are not allowed. May not begin with .. + * Gets the value property value. Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , - . / : ; = ? @ [ ] ^ + _ { } ~, and characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, aren't allowed. May not begin with .. * @return string|null */ public function getValue(): ?string { @@ -268,7 +268,7 @@ public function setOrigin(?string $value): void { } /** - * Sets the value property value. Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , - . / : ; = ? @ [ ] ^ + _ { } ~, as well as characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, are not allowed. May not begin with .. + * Sets the value property value. Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , - . / : ; = ? @ [ ] ^ + _ { } ~, and characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, aren't allowed. May not begin with .. * @param string|null $value Value to set for the value property. */ public function setValue(?string $value): void { diff --git a/src/Generated/Models/AttachmentBase.php b/src/Generated/Models/AttachmentBase.php index d5c01046591..2c7777cf4d4 100644 --- a/src/Generated/Models/AttachmentBase.php +++ b/src/Generated/Models/AttachmentBase.php @@ -71,7 +71,7 @@ public function getLastModifiedDateTime(): ?DateTime { } /** - * Gets the name property value. The display name of the attachment. This does not need to be the actual file name. + * Gets the name property value. The display name of the attachment. This doesn't need to be the actual file name. * @return string|null */ public function getName(): ?string { @@ -123,7 +123,7 @@ public function setLastModifiedDateTime(?DateTime $value): void { } /** - * Sets the name property value. The display name of the attachment. This does not need to be the actual file name. + * Sets the name property value. The display name of the attachment. This doesn't need to be the actual file name. * @param string|null $value Value to set for the name property. */ public function setName(?string $value): void { diff --git a/src/Generated/Models/AttachmentInfo.php b/src/Generated/Models/AttachmentInfo.php index 71c18229f5c..32b1b2589a5 100644 --- a/src/Generated/Models/AttachmentInfo.php +++ b/src/Generated/Models/AttachmentInfo.php @@ -95,7 +95,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the name property value. The display name of the attachment. This can be a descriptive string and does not have to be the actual file name. Required. + * Gets the name property value. The display name of the attachment. This can be a descriptive string and doesn't have to be the actual file name. Required. * @return string|null */ public function getName(): ?string { @@ -176,7 +176,7 @@ public function setContentType(?string $value): void { } /** - * Sets the name property value. The display name of the attachment. This can be a descriptive string and does not have to be the actual file name. Required. + * Sets the name property value. The display name of the attachment. This can be a descriptive string and doesn't have to be the actual file name. Required. * @param string|null $value Value to set for the name property. */ public function setName(?string $value): void { diff --git a/src/Generated/Models/AttachmentItem.php b/src/Generated/Models/AttachmentItem.php index 0568da4a290..fd5631f3f77 100644 --- a/src/Generated/Models/AttachmentItem.php +++ b/src/Generated/Models/AttachmentItem.php @@ -68,7 +68,7 @@ public function getBackingStore(): BackingStore { } /** - * Gets the contentId property value. The CID or Content-Id of the attachment for referencing in case of in-line attachments using tag in HTML messages. Optional. + * Gets the contentId property value. The CID or Content-Id of the attachment for referencing for the in-line attachments using the tag in HTML messages. Optional. * @return string|null */ public function getContentId(): ?string { @@ -121,7 +121,7 @@ public function getIsInline(): ?bool { } /** - * Gets the name property value. The display name of the attachment. This can be a descriptive string and does not have to be the actual file name. Required. + * Gets the name property value. The display name of the attachment. This can be a descriptive string and doesn't have to be the actual file name. Required. * @return string|null */ public function getName(): ?string { @@ -196,7 +196,7 @@ public function setBackingStore(BackingStore $value): void { } /** - * Sets the contentId property value. The CID or Content-Id of the attachment for referencing in case of in-line attachments using tag in HTML messages. Optional. + * Sets the contentId property value. The CID or Content-Id of the attachment for referencing for the in-line attachments using the tag in HTML messages. Optional. * @param string|null $value Value to set for the contentId property. */ public function setContentId(?string $value): void { @@ -220,7 +220,7 @@ public function setIsInline(?bool $value): void { } /** - * Sets the name property value. The display name of the attachment. This can be a descriptive string and does not have to be the actual file name. Required. + * Sets the name property value. The display name of the attachment. This can be a descriptive string and doesn't have to be the actual file name. Required. * @param string|null $value Value to set for the name property. */ public function setName(?string $value): void { diff --git a/src/Generated/Models/AttackSimulationOperation.php b/src/Generated/Models/AttackSimulationOperation.php new file mode 100644 index 00000000000..0e943f2510d --- /dev/null +++ b/src/Generated/Models/AttackSimulationOperation.php @@ -0,0 +1,111 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'percentageCompleted' => fn(ParseNode $n) => $o->setPercentageCompleted($n->getIntegerValue()), + 'tenantId' => fn(ParseNode $n) => $o->setTenantId($n->getStringValue()), + 'type' => fn(ParseNode $n) => $o->setType($n->getEnumValue(AttackSimulationOperationType::class)), + ]); + } + + /** + * Gets the percentageCompleted property value. The percentageCompleted property + * @return int|null + */ + public function getPercentageCompleted(): ?int { + $val = $this->getBackingStore()->get('percentageCompleted'); + if (is_null($val) || is_int($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'percentageCompleted'"); + } + + /** + * Gets the tenantId property value. The tenantId property + * @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'"); + } + + /** + * Gets the type property value. The type property + * @return AttackSimulationOperationType|null + */ + public function getType(): ?AttackSimulationOperationType { + $val = $this->getBackingStore()->get('type'); + if (is_null($val) || $val instanceof AttackSimulationOperationType) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'type'"); + } + + /** + * 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->writeIntegerValue('percentageCompleted', $this->getPercentageCompleted()); + $writer->writeStringValue('tenantId', $this->getTenantId()); + $writer->writeEnumValue('type', $this->getType()); + } + + /** + * Sets the percentageCompleted property value. The percentageCompleted property + * @param int|null $value Value to set for the percentageCompleted property. + */ + public function setPercentageCompleted(?int $value): void { + $this->getBackingStore()->set('percentageCompleted', $value); + } + + /** + * Sets the tenantId property value. The tenantId property + * @param string|null $value Value to set for the tenantId property. + */ + public function setTenantId(?string $value): void { + $this->getBackingStore()->set('tenantId', $value); + } + + /** + * Sets the type property value. The type property + * @param AttackSimulationOperationType|null $value Value to set for the type property. + */ + public function setType(?AttackSimulationOperationType $value): void { + $this->getBackingStore()->set('type', $value); + } + +} diff --git a/src/Generated/Models/AttackSimulationOperationCollectionResponse.php b/src/Generated/Models/AttackSimulationOperationCollectionResponse.php new file mode 100644 index 00000000000..4bb22c7da14 --- /dev/null +++ b/src/Generated/Models/AttackSimulationOperationCollectionResponse.php @@ -0,0 +1,70 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([AttackSimulationOperation::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, AttackSimulationOperation::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/AttackSimulationOperationType.php b/src/Generated/Models/AttackSimulationOperationType.php new file mode 100644 index 00000000000..bf40781cc68 --- /dev/null +++ b/src/Generated/Models/AttackSimulationOperationType.php @@ -0,0 +1,11 @@ +|null + */ + public function getEndUserNotifications(): ?array { + $val = $this->getBackingStore()->get('endUserNotifications'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, EndUserNotification::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'endUserNotifications'"); + } + /** * The deserialization information for the current model * @return array @@ -32,11 +46,73 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Attac public function getFieldDeserializers(): array { $o = $this; return array_merge(parent::getFieldDeserializers(), [ + 'endUserNotifications' => fn(ParseNode $n) => $o->setEndUserNotifications($n->getCollectionOfObjectValues([EndUserNotification::class, 'createFromDiscriminatorValue'])), + 'landingPages' => fn(ParseNode $n) => $o->setLandingPages($n->getCollectionOfObjectValues([LandingPage::class, 'createFromDiscriminatorValue'])), + 'loginPages' => fn(ParseNode $n) => $o->setLoginPages($n->getCollectionOfObjectValues([LoginPage::class, 'createFromDiscriminatorValue'])), + 'operations' => fn(ParseNode $n) => $o->setOperations($n->getCollectionOfObjectValues([AttackSimulationOperation::class, 'createFromDiscriminatorValue'])), + 'payloads' => fn(ParseNode $n) => $o->setPayloads($n->getCollectionOfObjectValues([Payload::class, 'createFromDiscriminatorValue'])), 'simulationAutomations' => fn(ParseNode $n) => $o->setSimulationAutomations($n->getCollectionOfObjectValues([SimulationAutomation::class, 'createFromDiscriminatorValue'])), 'simulations' => fn(ParseNode $n) => $o->setSimulations($n->getCollectionOfObjectValues([Simulation::class, 'createFromDiscriminatorValue'])), + 'trainings' => fn(ParseNode $n) => $o->setTrainings($n->getCollectionOfObjectValues([Training::class, 'createFromDiscriminatorValue'])), ]); } + /** + * Gets the landingPages property value. The landingPages property + * @return array|null + */ + public function getLandingPages(): ?array { + $val = $this->getBackingStore()->get('landingPages'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, LandingPage::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'landingPages'"); + } + + /** + * Gets the loginPages property value. The loginPages property + * @return array|null + */ + public function getLoginPages(): ?array { + $val = $this->getBackingStore()->get('loginPages'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, LoginPage::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'loginPages'"); + } + + /** + * Gets the operations property value. The operations property + * @return array|null + */ + public function getOperations(): ?array { + $val = $this->getBackingStore()->get('operations'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, AttackSimulationOperation::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'operations'"); + } + + /** + * Gets the payloads property value. The payloads property + * @return array|null + */ + public function getPayloads(): ?array { + $val = $this->getBackingStore()->get('payloads'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, Payload::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'payloads'"); + } + /** * Gets the simulationAutomations property value. Represents simulation automation created to run on a tenant. * @return array|null @@ -65,14 +141,74 @@ public function getSimulations(): ?array { throw new \UnexpectedValueException("Invalid type found in backing store for 'simulations'"); } + /** + * Gets the trainings property value. The trainings property + * @return array|null + */ + public function getTrainings(): ?array { + $val = $this->getBackingStore()->get('trainings'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, Training::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'trainings'"); + } + /** * 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('endUserNotifications', $this->getEndUserNotifications()); + $writer->writeCollectionOfObjectValues('landingPages', $this->getLandingPages()); + $writer->writeCollectionOfObjectValues('loginPages', $this->getLoginPages()); + $writer->writeCollectionOfObjectValues('operations', $this->getOperations()); + $writer->writeCollectionOfObjectValues('payloads', $this->getPayloads()); $writer->writeCollectionOfObjectValues('simulationAutomations', $this->getSimulationAutomations()); $writer->writeCollectionOfObjectValues('simulations', $this->getSimulations()); + $writer->writeCollectionOfObjectValues('trainings', $this->getTrainings()); + } + + /** + * Sets the endUserNotifications property value. The endUserNotifications property + * @param array|null $value Value to set for the endUserNotifications property. + */ + public function setEndUserNotifications(?array $value): void { + $this->getBackingStore()->set('endUserNotifications', $value); + } + + /** + * Sets the landingPages property value. The landingPages property + * @param array|null $value Value to set for the landingPages property. + */ + public function setLandingPages(?array $value): void { + $this->getBackingStore()->set('landingPages', $value); + } + + /** + * Sets the loginPages property value. The loginPages property + * @param array|null $value Value to set for the loginPages property. + */ + public function setLoginPages(?array $value): void { + $this->getBackingStore()->set('loginPages', $value); + } + + /** + * Sets the operations property value. The operations property + * @param array|null $value Value to set for the operations property. + */ + public function setOperations(?array $value): void { + $this->getBackingStore()->set('operations', $value); + } + + /** + * Sets the payloads property value. The payloads property + * @param array|null $value Value to set for the payloads property. + */ + public function setPayloads(?array $value): void { + $this->getBackingStore()->set('payloads', $value); } /** @@ -91,4 +227,12 @@ public function setSimulations(?array $value): void { $this->getBackingStore()->set('simulations', $value); } + /** + * Sets the trainings property value. The trainings property + * @param array|null $value Value to set for the trainings property. + */ + public function setTrainings(?array $value): void { + $this->getBackingStore()->set('trainings', $value); + } + } diff --git a/src/Generated/Models/AuthenticationContextClassReference.php b/src/Generated/Models/AuthenticationContextClassReference.php index 7e55642212e..2a30aedaa94 100644 --- a/src/Generated/Models/AuthenticationContextClassReference.php +++ b/src/Generated/Models/AuthenticationContextClassReference.php @@ -62,7 +62,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the isAvailable property value. Indicates whether the authenticationContextClassReference has been published by the security admin and is ready for use by apps. When it is set to false, it should not be shown in authentication context selection UX, or used to protect app resources. It will be shown and available for Conditional Access policy authoring. The default value is false. Supports $filter (eq). + * Gets the isAvailable property value. Indicates whether the authenticationContextClassReference has been published by the security admin and is ready for use by apps. When it's set to false, it shouldn't be shown in authentication context selection UX, or used to protect app resources. It's shown and available for Conditional Access policy authoring. The default value is false. Supports $filter (eq). * @return bool|null */ public function getIsAvailable(): ?bool { @@ -101,7 +101,7 @@ public function setDisplayName(?string $value): void { } /** - * Sets the isAvailable property value. Indicates whether the authenticationContextClassReference has been published by the security admin and is ready for use by apps. When it is set to false, it should not be shown in authentication context selection UX, or used to protect app resources. It will be shown and available for Conditional Access policy authoring. The default value is false. Supports $filter (eq). + * Sets the isAvailable property value. Indicates whether the authenticationContextClassReference has been published by the security admin and is ready for use by apps. When it's set to false, it shouldn't be shown in authentication context selection UX, or used to protect app resources. It's shown and available for Conditional Access policy authoring. The default value is false. Supports $filter (eq). * @param bool|null $value Value to set for the isAvailable property. */ public function setIsAvailable(?bool $value): void { diff --git a/src/Generated/Models/AvailabilityItem.php b/src/Generated/Models/AvailabilityItem.php index 2386d0c954f..769371f926a 100644 --- a/src/Generated/Models/AvailabilityItem.php +++ b/src/Generated/Models/AvailabilityItem.php @@ -95,7 +95,7 @@ public function getOdataType(): ?string { } /** - * Gets the serviceId property value. Indicates the service ID in case of 1:n appointments. If the appointment is of type 1:n, this field will be present, otherwise, null. + * Gets the serviceId property value. Indicates the service ID for 1:n appointments. If the appointment is of type 1:n, this field is present, otherwise, null. * @return string|null */ public function getServiceId(): ?string { @@ -176,7 +176,7 @@ public function setOdataType(?string $value): void { } /** - * Sets the serviceId property value. Indicates the service ID in case of 1:n appointments. If the appointment is of type 1:n, this field will be present, otherwise, null. + * Sets the serviceId property value. Indicates the service ID for 1:n appointments. If the appointment is of type 1:n, this field is present, otherwise, null. * @param string|null $value Value to set for the serviceId property. */ public function setServiceId(?string $value): void { diff --git a/src/Generated/Models/BaseEndUserNotification.php b/src/Generated/Models/BaseEndUserNotification.php new file mode 100644 index 00000000000..a193f78eb21 --- /dev/null +++ b/src/Generated/Models/BaseEndUserNotification.php @@ -0,0 +1,167 @@ +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 BaseEndUserNotification + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): BaseEndUserNotification { + $mappingValueNode = $parseNode->getChildNode("@odata.type"); + if ($mappingValueNode !== null) { + $mappingValue = $mappingValueNode->getStringValue(); + switch ($mappingValue) { + case '#microsoft.graph.positiveReinforcementNotification': return new PositiveReinforcementNotification(); + case '#microsoft.graph.simulationNotification': return new SimulationNotification(); + case '#microsoft.graph.trainingReminderNotification': return new TrainingReminderNotification(); + } + } + return new BaseEndUserNotification(); + } + + /** + * 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 defaultLanguage property value. The defaultLanguage property + * @return string|null + */ + public function getDefaultLanguage(): ?string { + $val = $this->getBackingStore()->get('defaultLanguage'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'defaultLanguage'"); + } + + /** + * Gets the endUserNotification property value. The endUserNotification property + * @return EndUserNotification|null + */ + public function getEndUserNotification(): ?EndUserNotification { + $val = $this->getBackingStore()->get('endUserNotification'); + if (is_null($val) || $val instanceof EndUserNotification) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'endUserNotification'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'defaultLanguage' => fn(ParseNode $n) => $o->setDefaultLanguage($n->getStringValue()), + 'endUserNotification' => fn(ParseNode $n) => $o->setEndUserNotification($n->getObjectValue([EndUserNotification::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->writeStringValue('defaultLanguage', $this->getDefaultLanguage()); + $writer->writeObjectValue('endUserNotification', $this->getEndUserNotification()); + $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 defaultLanguage property value. The defaultLanguage property + * @param string|null $value Value to set for the defaultLanguage property. + */ + public function setDefaultLanguage(?string $value): void { + $this->getBackingStore()->set('defaultLanguage', $value); + } + + /** + * Sets the endUserNotification property value. The endUserNotification property + * @param EndUserNotification|null $value Value to set for the endUserNotification property. + */ + public function setEndUserNotification(?EndUserNotification $value): void { + $this->getBackingStore()->set('endUserNotification', $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/BookingAppointment.php b/src/Generated/Models/BookingAppointment.php index 7690469f3c1..6662bb4773f 100644 --- a/src/Generated/Models/BookingAppointment.php +++ b/src/Generated/Models/BookingAppointment.php @@ -54,7 +54,7 @@ public function getAnonymousJoinWebUrl(): ?string { } /** - * Gets the customers property value. A collection of customer properties for an appointment. An appointment will contain a list of customer information and each unit will indicate the properties of a customer who is part of that appointment. Optional. + * Gets the customers property value. A collection of customer properties for an appointment. An appointment contains a list of customer information and each unit will indicate the properties of a customer who is part of that appointment. Optional. * @return array|null */ public function getCustomers(): ?array { @@ -193,7 +193,7 @@ public function getMaximumAttendeesCount(): ?int { } /** - * Gets the optOutOfCustomerEmail property value. If true indicates that the bookingCustomer for this appointment does not wish to receive a confirmation for this appointment. + * Gets the optOutOfCustomerEmail property value. If true indicates that the bookingCustomer for this appointment doesn't wish to receive a confirmation for this appointment. * @return bool|null */ public function getOptOutOfCustomerEmail(): ?bool { @@ -303,7 +303,7 @@ public function getServiceLocation(): ?Location { } /** - * Gets the serviceName property value. The name of the bookingService associated with this appointment.This property is optional when creating a new appointment. If not specified, it is computed from the service associated with the appointment by the serviceId property. + * Gets the serviceName property value. The name of the bookingService associated with this appointment.This property is optional when creating a new appointment. If not specified, it's computed from the service associated with the appointment by the serviceId property. * @return string|null */ public function getServiceName(): ?string { @@ -411,7 +411,7 @@ public function setAnonymousJoinWebUrl(?string $value): void { } /** - * Sets the customers property value. A collection of customer properties for an appointment. An appointment will contain a list of customer information and each unit will indicate the properties of a customer who is part of that appointment. Optional. + * Sets the customers property value. A collection of customer properties for an appointment. An appointment contains a list of customer information and each unit will indicate the properties of a customer who is part of that appointment. Optional. * @param array|null $value Value to set for the customers property. */ public function setCustomers(?array $value): void { @@ -475,7 +475,7 @@ public function setMaximumAttendeesCount(?int $value): void { } /** - * Sets the optOutOfCustomerEmail property value. If true indicates that the bookingCustomer for this appointment does not wish to receive a confirmation for this appointment. + * Sets the optOutOfCustomerEmail property value. If true indicates that the bookingCustomer for this appointment doesn't wish to receive a confirmation for this appointment. * @param bool|null $value Value to set for the optOutOfCustomerEmail property. */ public function setOptOutOfCustomerEmail(?bool $value): void { @@ -547,7 +547,7 @@ public function setServiceLocation(?Location $value): void { } /** - * Sets the serviceName property value. The name of the bookingService associated with this appointment.This property is optional when creating a new appointment. If not specified, it is computed from the service associated with the appointment by the serviceId property. + * Sets the serviceName property value. The name of the bookingService associated with this appointment.This property is optional when creating a new appointment. If not specified, it's computed from the service associated with the appointment by the serviceId property. * @param string|null $value Value to set for the serviceName property. */ public function setServiceName(?string $value): void { diff --git a/src/Generated/Models/BookingQuestionAssignment.php b/src/Generated/Models/BookingQuestionAssignment.php index 2c39ad02df9..7c4769da7f7 100644 --- a/src/Generated/Models/BookingQuestionAssignment.php +++ b/src/Generated/Models/BookingQuestionAssignment.php @@ -93,7 +93,7 @@ public function getOdataType(): ?string { } /** - * Gets the questionId property value. Indicates whether it is mandatory to answer the custom question. + * Gets the questionId property value. Indicates whether it's mandatory to answer the custom question. * @return string|null */ public function getQuestionId(): ?string { @@ -148,7 +148,7 @@ public function setOdataType(?string $value): void { } /** - * Sets the questionId property value. Indicates whether it is mandatory to answer the custom question. + * Sets the questionId property value. Indicates whether it's mandatory to answer the custom question. * @param string|null $value Value to set for the questionId property. */ public function setQuestionId(?string $value): void { diff --git a/src/Generated/Models/Call.php b/src/Generated/Models/Call.php index ce763c02950..2b5a1dfbfb7 100644 --- a/src/Generated/Models/Call.php +++ b/src/Generated/Models/Call.php @@ -116,7 +116,7 @@ public function getContentSharingSessions(): ?array { } /** - * Gets the direction property value. The direction of the call. The possible value are incoming or outgoing. Read-only. + * Gets the direction property value. The direction of the call. The possible values are incoming or outgoing. Read-only. * @return CallDirection|null */ public function getDirection(): ?CallDirection { @@ -264,7 +264,7 @@ public function getRequestedModalities(): ?array { } /** - * Gets the resultInfo property value. The result information. For example can hold termination reason. Read-only. + * Gets the resultInfo property value. The result information. For example, the result can hold termination reason. Read-only. * @return ResultInfo|null */ public function getResultInfo(): ?ResultInfo { @@ -450,7 +450,7 @@ public function setContentSharingSessions(?array $value): void { } /** - * Sets the direction property value. The direction of the call. The possible value are incoming or outgoing. Read-only. + * Sets the direction property value. The direction of the call. The possible values are incoming or outgoing. Read-only. * @param CallDirection|null $value Value to set for the direction property. */ public function setDirection(?CallDirection $value): void { @@ -522,7 +522,7 @@ public function setRequestedModalities(?array $value): void { } /** - * Sets the resultInfo property value. The result information. For example can hold termination reason. Read-only. + * Sets the resultInfo property value. The result information. For example, the result can hold termination reason. Read-only. * @param ResultInfo|null $value Value to set for the resultInfo property. */ public function setResultInfo(?ResultInfo $value): void { diff --git a/src/Generated/Models/CallTranscript.php b/src/Generated/Models/CallTranscript.php new file mode 100644 index 00000000000..c7bac5703a9 --- /dev/null +++ b/src/Generated/Models/CallTranscript.php @@ -0,0 +1,179 @@ +getBackingStore()->get('content'); + if (is_null($val) || $val instanceof StreamInterface) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'content'"); + } + + /** + * Gets the createdDateTime property value. The createdDateTime property + * @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(), [ + 'content' => fn(ParseNode $n) => $o->setContent($n->getBinaryContent()), + 'createdDateTime' => fn(ParseNode $n) => $o->setCreatedDateTime($n->getDateTimeValue()), + 'meetingId' => fn(ParseNode $n) => $o->setMeetingId($n->getStringValue()), + 'meetingOrganizer' => fn(ParseNode $n) => $o->setMeetingOrganizer($n->getObjectValue([IdentitySet::class, 'createFromDiscriminatorValue'])), + 'metadataContent' => fn(ParseNode $n) => $o->setMetadataContent($n->getBinaryContent()), + 'transcriptContentUrl' => fn(ParseNode $n) => $o->setTranscriptContentUrl($n->getStringValue()), + ]); + } + + /** + * Gets the meetingId property value. The meetingId property + * @return string|null + */ + public function getMeetingId(): ?string { + $val = $this->getBackingStore()->get('meetingId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'meetingId'"); + } + + /** + * Gets the meetingOrganizer property value. The meetingOrganizer property + * @return IdentitySet|null + */ + public function getMeetingOrganizer(): ?IdentitySet { + $val = $this->getBackingStore()->get('meetingOrganizer'); + if (is_null($val) || $val instanceof IdentitySet) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'meetingOrganizer'"); + } + + /** + * Gets the metadataContent property value. The metadataContent property + * @return StreamInterface|null + */ + public function getMetadataContent(): ?StreamInterface { + $val = $this->getBackingStore()->get('metadataContent'); + if (is_null($val) || $val instanceof StreamInterface) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'metadataContent'"); + } + + /** + * Gets the transcriptContentUrl property value. The transcriptContentUrl property + * @return string|null + */ + public function getTranscriptContentUrl(): ?string { + $val = $this->getBackingStore()->get('transcriptContentUrl'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'transcriptContentUrl'"); + } + + /** + * 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->writeBinaryContent('content', $this->getContent()); + $writer->writeDateTimeValue('createdDateTime', $this->getCreatedDateTime()); + $writer->writeStringValue('meetingId', $this->getMeetingId()); + $writer->writeObjectValue('meetingOrganizer', $this->getMeetingOrganizer()); + $writer->writeBinaryContent('metadataContent', $this->getMetadataContent()); + $writer->writeStringValue('transcriptContentUrl', $this->getTranscriptContentUrl()); + } + + /** + * Sets the content property value. The content property + * @param StreamInterface|null $value Value to set for the content property. + */ + public function setContent(?StreamInterface $value): void { + $this->getBackingStore()->set('content', $value); + } + + /** + * Sets the createdDateTime property value. The createdDateTime property + * @param DateTime|null $value Value to set for the createdDateTime property. + */ + public function setCreatedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('createdDateTime', $value); + } + + /** + * Sets the meetingId property value. The meetingId property + * @param string|null $value Value to set for the meetingId property. + */ + public function setMeetingId(?string $value): void { + $this->getBackingStore()->set('meetingId', $value); + } + + /** + * Sets the meetingOrganizer property value. The meetingOrganizer property + * @param IdentitySet|null $value Value to set for the meetingOrganizer property. + */ + public function setMeetingOrganizer(?IdentitySet $value): void { + $this->getBackingStore()->set('meetingOrganizer', $value); + } + + /** + * Sets the metadataContent property value. The metadataContent property + * @param StreamInterface|null $value Value to set for the metadataContent property. + */ + public function setMetadataContent(?StreamInterface $value): void { + $this->getBackingStore()->set('metadataContent', $value); + } + + /** + * Sets the transcriptContentUrl property value. The transcriptContentUrl property + * @param string|null $value Value to set for the transcriptContentUrl property. + */ + public function setTranscriptContentUrl(?string $value): void { + $this->getBackingStore()->set('transcriptContentUrl', $value); + } + +} diff --git a/src/Generated/Models/CallTranscriptCollectionResponse.php b/src/Generated/Models/CallTranscriptCollectionResponse.php new file mode 100644 index 00000000000..d202937d462 --- /dev/null +++ b/src/Generated/Models/CallTranscriptCollectionResponse.php @@ -0,0 +1,70 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([CallTranscript::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, CallTranscript::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/Certification.php b/src/Generated/Models/Certification.php index 1b1a2e74dbc..9a9f1f27931 100644 --- a/src/Generated/Models/Certification.php +++ b/src/Generated/Models/Certification.php @@ -69,7 +69,7 @@ public function getCertificationDetailsUrl(): ?string { } /** - * Gets the certificationExpirationDateTime property value. The timestamp when the current certification for the application will expire. + * Gets the certificationExpirationDateTime property value. The timestamp when the current certification for the application expires. * @return DateTime|null */ public function getCertificationExpirationDateTime(): ?DateTime { @@ -181,7 +181,7 @@ public function setCertificationDetailsUrl(?string $value): void { } /** - * Sets the certificationExpirationDateTime property value. The timestamp when the current certification for the application will expire. + * Sets the certificationExpirationDateTime property value. The timestamp when the current certification for the application expires. * @param DateTime|null $value Value to set for the certificationExpirationDateTime property. */ public function setCertificationExpirationDateTime(?DateTime $value): void { diff --git a/src/Generated/Models/CoachmarkLocation.php b/src/Generated/Models/CoachmarkLocation.php new file mode 100644 index 00000000000..296597a884b --- /dev/null +++ b/src/Generated/Models/CoachmarkLocation.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 CoachmarkLocation + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CoachmarkLocation { + return new CoachmarkLocation(); + } + + /** + * 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 [ + 'length' => fn(ParseNode $n) => $o->setLength($n->getIntegerValue()), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + 'offset' => fn(ParseNode $n) => $o->setOffset($n->getIntegerValue()), + 'type' => fn(ParseNode $n) => $o->setType($n->getEnumValue(CoachmarkLocationType::class)), + ]; + } + + /** + * Gets the length property value. The length property + * @return int|null + */ + public function getLength(): ?int { + $val = $this->getBackingStore()->get('length'); + if (is_null($val) || is_int($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'length'"); + } + + /** + * 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 offset property value. The offset property + * @return int|null + */ + public function getOffset(): ?int { + $val = $this->getBackingStore()->get('offset'); + if (is_null($val) || is_int($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'offset'"); + } + + /** + * Gets the type property value. The type property + * @return CoachmarkLocationType|null + */ + public function getType(): ?CoachmarkLocationType { + $val = $this->getBackingStore()->get('type'); + if (is_null($val) || $val instanceof CoachmarkLocationType) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'type'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeIntegerValue('length', $this->getLength()); + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeIntegerValue('offset', $this->getOffset()); + $writer->writeEnumValue('type', $this->getType()); + $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 length property value. The length property + * @param int|null $value Value to set for the length property. + */ + public function setLength(?int $value): void { + $this->getBackingStore()->set('length', $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 offset property value. The offset property + * @param int|null $value Value to set for the offset property. + */ + public function setOffset(?int $value): void { + $this->getBackingStore()->set('offset', $value); + } + + /** + * Sets the type property value. The type property + * @param CoachmarkLocationType|null $value Value to set for the type property. + */ + public function setType(?CoachmarkLocationType $value): void { + $this->getBackingStore()->set('type', $value); + } + +} diff --git a/src/Generated/Models/CoachmarkLocationType.php b/src/Generated/Models/CoachmarkLocationType.php new file mode 100644 index 00000000000..066b29f08e9 --- /dev/null +++ b/src/Generated/Models/CoachmarkLocationType.php @@ -0,0 +1,15 @@ +setOdataType('#microsoft.graph.customTrainingSetting'); + } + + /** + * 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 CustomTrainingSetting + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CustomTrainingSetting { + return new CustomTrainingSetting(); + } + + /** + * Gets the assignedTo property value. The assignedTo property + * @return array|null + */ + public function getAssignedTo(): ?array { + $val = $this->getBackingStore()->get('assignedTo'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, TrainingAssignedTo::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'assignedTo'"); + } + + /** + * Gets the description property value. The description property + * @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. The displayName property + * @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 durationInMinutes property value. The durationInMinutes property + * @return int|null + */ + public function getDurationInMinutes(): ?int { + $val = $this->getBackingStore()->get('durationInMinutes'); + if (is_null($val) || is_int($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'durationInMinutes'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'assignedTo' => fn(ParseNode $n) => $o->setAssignedTo($n->getCollectionOfEnumValues(TrainingAssignedTo::class)), + 'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()), + 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()), + 'durationInMinutes' => fn(ParseNode $n) => $o->setDurationInMinutes($n->getIntegerValue()), + 'url' => fn(ParseNode $n) => $o->setUrl($n->getStringValue()), + ]); + } + + /** + * Gets the url property value. The url property + * @return string|null + */ + public function getUrl(): ?string { + $val = $this->getBackingStore()->get('url'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'url'"); + } + + /** + * 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->writeCollectionOfEnumValues('assignedTo', $this->getAssignedTo()); + $writer->writeStringValue('description', $this->getDescription()); + $writer->writeStringValue('displayName', $this->getDisplayName()); + $writer->writeIntegerValue('durationInMinutes', $this->getDurationInMinutes()); + $writer->writeStringValue('url', $this->getUrl()); + } + + /** + * Sets the assignedTo property value. The assignedTo property + * @param array|null $value Value to set for the assignedTo property. + */ + public function setAssignedTo(?array $value): void { + $this->getBackingStore()->set('assignedTo', $value); + } + + /** + * Sets the description property value. The description property + * @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. The displayName property + * @param string|null $value Value to set for the displayName property. + */ + public function setDisplayName(?string $value): void { + $this->getBackingStore()->set('displayName', $value); + } + + /** + * Sets the durationInMinutes property value. The durationInMinutes property + * @param int|null $value Value to set for the durationInMinutes property. + */ + public function setDurationInMinutes(?int $value): void { + $this->getBackingStore()->set('durationInMinutes', $value); + } + + /** + * Sets the url property value. The url property + * @param string|null $value Value to set for the url property. + */ + public function setUrl(?string $value): void { + $this->getBackingStore()->set('url', $value); + } + +} diff --git a/src/Generated/Models/DefaultUserRolePermissions.php b/src/Generated/Models/DefaultUserRolePermissions.php index 1f9e6c937c9..af6f651bef1 100644 --- a/src/Generated/Models/DefaultUserRolePermissions.php +++ b/src/Generated/Models/DefaultUserRolePermissions.php @@ -49,7 +49,7 @@ public function getAdditionalData(): ?array { } /** - * Gets the allowedToCreateApps property value. Indicates whether the default user role can create applications. This setting corresponds to the Users can register applications setting in the User settings menu in the Azure portal. + * Gets the allowedToCreateApps property value. Indicates whether the default user role can create applications. This setting corresponds to the Users can register applications setting in the User settings menu in the Microsoft Entra admin center. * @return bool|null */ public function getAllowedToCreateApps(): ?bool { @@ -61,7 +61,7 @@ public function getAllowedToCreateApps(): ?bool { } /** - * Gets the allowedToCreateSecurityGroups property value. Indicates whether the default user role can create security groups. This setting corresponds to the following menus in the Azure portal: The Users can create security groups in Azure portals, API or PowerShell setting in the Group settings menu. Users can create security groups setting in the User settings menu. + * Gets the allowedToCreateSecurityGroups property value. Indicates whether the default user role can create security groups. This setting corresponds to the following menus in the Microsoft Entra admin center: The Users can create security groups in Microsoft Entra admin centers, API or PowerShell setting in the Group settings menu. Users can create security groups setting in the User settings menu. * @return bool|null */ public function getAllowedToCreateSecurityGroups(): ?bool { @@ -73,7 +73,7 @@ public function getAllowedToCreateSecurityGroups(): ?bool { } /** - * Gets the allowedToCreateTenants property value. Indicates whether the default user role can create tenants. This setting corresponds to the Restrict non-admin users from creating tenants setting in the User settings menu in the Azure portal. When this setting is false, users assigned the Tenant Creator role can still create tenants. + * Gets the allowedToCreateTenants property value. Indicates whether the default user role can create tenants. This setting corresponds to the Restrict non-admin users from creating tenants setting in the User settings menu in the Microsoft Entra admin center. When this setting is false, users assigned the Tenant Creator role can still create tenants. * @return bool|null */ public function getAllowedToCreateTenants(): ?bool { @@ -190,7 +190,7 @@ public function setAdditionalData(?array $value): void { } /** - * Sets the allowedToCreateApps property value. Indicates whether the default user role can create applications. This setting corresponds to the Users can register applications setting in the User settings menu in the Azure portal. + * Sets the allowedToCreateApps property value. Indicates whether the default user role can create applications. This setting corresponds to the Users can register applications setting in the User settings menu in the Microsoft Entra admin center. * @param bool|null $value Value to set for the allowedToCreateApps property. */ public function setAllowedToCreateApps(?bool $value): void { @@ -198,7 +198,7 @@ public function setAllowedToCreateApps(?bool $value): void { } /** - * Sets the allowedToCreateSecurityGroups property value. Indicates whether the default user role can create security groups. This setting corresponds to the following menus in the Azure portal: The Users can create security groups in Azure portals, API or PowerShell setting in the Group settings menu. Users can create security groups setting in the User settings menu. + * Sets the allowedToCreateSecurityGroups property value. Indicates whether the default user role can create security groups. This setting corresponds to the following menus in the Microsoft Entra admin center: The Users can create security groups in Microsoft Entra admin centers, API or PowerShell setting in the Group settings menu. Users can create security groups setting in the User settings menu. * @param bool|null $value Value to set for the allowedToCreateSecurityGroups property. */ public function setAllowedToCreateSecurityGroups(?bool $value): void { @@ -206,7 +206,7 @@ public function setAllowedToCreateSecurityGroups(?bool $value): void { } /** - * Sets the allowedToCreateTenants property value. Indicates whether the default user role can create tenants. This setting corresponds to the Restrict non-admin users from creating tenants setting in the User settings menu in the Azure portal. When this setting is false, users assigned the Tenant Creator role can still create tenants. + * Sets the allowedToCreateTenants property value. Indicates whether the default user role can create tenants. This setting corresponds to the Restrict non-admin users from creating tenants setting in the User settings menu in the Microsoft Entra admin center. When this setting is false, users assigned the Tenant Creator role can still create tenants. * @param bool|null $value Value to set for the allowedToCreateTenants property. */ public function setAllowedToCreateTenants(?bool $value): void { diff --git a/src/Generated/Models/DelegatedAdminRelationship.php b/src/Generated/Models/DelegatedAdminRelationship.php index 2b4d3ca4b24..a9894a84cf6 100644 --- a/src/Generated/Models/DelegatedAdminRelationship.php +++ b/src/Generated/Models/DelegatedAdminRelationship.php @@ -24,6 +24,13 @@ public function __construct() { * @return DelegatedAdminRelationship */ public static function createFromDiscriminatorValue(ParseNode $parseNode): DelegatedAdminRelationship { + $mappingValueNode = $parseNode->getChildNode("@odata.type"); + if ($mappingValueNode !== null) { + $mappingValue = $mappingValueNode->getStringValue(); + switch ($mappingValue) { + case '#microsoft.graph.resellerDelegatedAdminRelationship': return new ResellerDelegatedAdminRelationship(); + } + } return new DelegatedAdminRelationship(); } diff --git a/src/Generated/Models/DelegatedAdminRelationshipRequestAction.php b/src/Generated/Models/DelegatedAdminRelationshipRequestAction.php index 968503ed3d6..7681af82240 100644 --- a/src/Generated/Models/DelegatedAdminRelationshipRequestAction.php +++ b/src/Generated/Models/DelegatedAdminRelationshipRequestAction.php @@ -9,4 +9,5 @@ class DelegatedAdminRelationshipRequestAction extends Enum { public const APPROVE = 'approve'; public const TERMINATE = 'terminate'; public const UNKNOWN_FUTURE_VALUE = 'unknownFutureValue'; + public const REJECT = 'reject'; } diff --git a/src/Generated/Models/DirectoryDefinition.php b/src/Generated/Models/DirectoryDefinition.php index be0e22eb61f..6c898251931 100644 --- a/src/Generated/Models/DirectoryDefinition.php +++ b/src/Generated/Models/DirectoryDefinition.php @@ -105,7 +105,7 @@ public function getReadOnly(): ?bool { } /** - * Gets the version property value. Read only value that indicates version discovered. null if discovery has not yet occurred. + * Gets the version property value. Read only value that indicates version discovered. null if discovery hasn't yet occurred. * @return string|null */ public function getVersion(): ?string { @@ -171,7 +171,7 @@ public function setReadOnly(?bool $value): void { } /** - * Sets the version property value. Read only value that indicates version discovered. null if discovery has not yet occurred. + * Sets the version property value. Read only value that indicates version discovered. null if discovery hasn't yet occurred. * @param string|null $value Value to set for the version property. */ public function setVersion(?string $value): void { diff --git a/src/Generated/Models/EmailFileAssessmentRequest.php b/src/Generated/Models/EmailFileAssessmentRequest.php index 04b0d72ec6b..ea1547bbd60 100644 --- a/src/Generated/Models/EmailFileAssessmentRequest.php +++ b/src/Generated/Models/EmailFileAssessmentRequest.php @@ -26,7 +26,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Email } /** - * Gets the contentData property value. Base64 encoded .eml email file content. The file content cannot fetch back because it isn't stored. + * Gets the contentData property value. Base64 encoded .eml email file content. The file content can't fetch back because it isn't stored. * @return string|null */ public function getContentData(): ?string { @@ -86,7 +86,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the contentData property value. Base64 encoded .eml email file content. The file content cannot fetch back because it isn't stored. + * Sets the contentData property value. Base64 encoded .eml email file content. The file content can't fetch back because it isn't stored. * @param string|null $value Value to set for the contentData property. */ public function setContentData(?string $value): void { diff --git a/src/Generated/Models/EmailPayloadDetail.php b/src/Generated/Models/EmailPayloadDetail.php new file mode 100644 index 00000000000..1d5a14d86f9 --- /dev/null +++ b/src/Generated/Models/EmailPayloadDetail.php @@ -0,0 +1,134 @@ +setOdataType('#microsoft.graph.emailPayloadDetail'); + } + + /** + * 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 EmailPayloadDetail + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): EmailPayloadDetail { + return new EmailPayloadDetail(); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'fromEmail' => fn(ParseNode $n) => $o->setFromEmail($n->getStringValue()), + 'fromName' => fn(ParseNode $n) => $o->setFromName($n->getStringValue()), + 'isExternalSender' => fn(ParseNode $n) => $o->setIsExternalSender($n->getBooleanValue()), + 'subject' => fn(ParseNode $n) => $o->setSubject($n->getStringValue()), + ]); + } + + /** + * Gets the fromEmail property value. The fromEmail property + * @return string|null + */ + public function getFromEmail(): ?string { + $val = $this->getBackingStore()->get('fromEmail'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'fromEmail'"); + } + + /** + * Gets the fromName property value. The fromName property + * @return string|null + */ + public function getFromName(): ?string { + $val = $this->getBackingStore()->get('fromName'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'fromName'"); + } + + /** + * Gets the isExternalSender property value. The isExternalSender property + * @return bool|null + */ + public function getIsExternalSender(): ?bool { + $val = $this->getBackingStore()->get('isExternalSender'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'isExternalSender'"); + } + + /** + * Gets the subject property value. The subject property + * @return string|null + */ + public function getSubject(): ?string { + $val = $this->getBackingStore()->get('subject'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'subject'"); + } + + /** + * 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('fromEmail', $this->getFromEmail()); + $writer->writeStringValue('fromName', $this->getFromName()); + $writer->writeBooleanValue('isExternalSender', $this->getIsExternalSender()); + $writer->writeStringValue('subject', $this->getSubject()); + } + + /** + * Sets the fromEmail property value. The fromEmail property + * @param string|null $value Value to set for the fromEmail property. + */ + public function setFromEmail(?string $value): void { + $this->getBackingStore()->set('fromEmail', $value); + } + + /** + * Sets the fromName property value. The fromName property + * @param string|null $value Value to set for the fromName property. + */ + public function setFromName(?string $value): void { + $this->getBackingStore()->set('fromName', $value); + } + + /** + * Sets the isExternalSender property value. The isExternalSender property + * @param bool|null $value Value to set for the isExternalSender property. + */ + public function setIsExternalSender(?bool $value): void { + $this->getBackingStore()->set('isExternalSender', $value); + } + + /** + * Sets the subject property value. The subject property + * @param string|null $value Value to set for the subject property. + */ + public function setSubject(?string $value): void { + $this->getBackingStore()->set('subject', $value); + } + +} diff --git a/src/Generated/Models/EndUserNotification.php b/src/Generated/Models/EndUserNotification.php new file mode 100644 index 00000000000..e64e431a100 --- /dev/null +++ b/src/Generated/Models/EndUserNotification.php @@ -0,0 +1,300 @@ +getBackingStore()->get('createdBy'); + if (is_null($val) || $val instanceof EmailIdentity) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'createdBy'"); + } + + /** + * Gets the createdDateTime property value. The createdDateTime property + * @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. The description property + * @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 details property value. The details property + * @return array|null + */ + public function getDetails(): ?array { + $val = $this->getBackingStore()->get('details'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, EndUserNotificationDetail::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'details'"); + } + + /** + * Gets the displayName property value. The displayName property + * @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(), [ + 'createdBy' => fn(ParseNode $n) => $o->setCreatedBy($n->getObjectValue([EmailIdentity::class, 'createFromDiscriminatorValue'])), + 'createdDateTime' => fn(ParseNode $n) => $o->setCreatedDateTime($n->getDateTimeValue()), + 'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()), + 'details' => fn(ParseNode $n) => $o->setDetails($n->getCollectionOfObjectValues([EndUserNotificationDetail::class, 'createFromDiscriminatorValue'])), + 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()), + 'lastModifiedBy' => fn(ParseNode $n) => $o->setLastModifiedBy($n->getObjectValue([EmailIdentity::class, 'createFromDiscriminatorValue'])), + 'lastModifiedDateTime' => fn(ParseNode $n) => $o->setLastModifiedDateTime($n->getDateTimeValue()), + 'notificationType' => fn(ParseNode $n) => $o->setNotificationType($n->getEnumValue(EndUserNotificationType::class)), + 'source' => fn(ParseNode $n) => $o->setSource($n->getEnumValue(SimulationContentSource::class)), + 'status' => fn(ParseNode $n) => $o->setStatus($n->getEnumValue(SimulationContentStatus::class)), + 'supportedLocales' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setSupportedLocales($val); + }, + ]); + } + + /** + * Gets the lastModifiedBy property value. The lastModifiedBy property + * @return EmailIdentity|null + */ + public function getLastModifiedBy(): ?EmailIdentity { + $val = $this->getBackingStore()->get('lastModifiedBy'); + if (is_null($val) || $val instanceof EmailIdentity) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'lastModifiedBy'"); + } + + /** + * Gets the lastModifiedDateTime property value. The lastModifiedDateTime property + * @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 notificationType property value. The notificationType property + * @return EndUserNotificationType|null + */ + public function getNotificationType(): ?EndUserNotificationType { + $val = $this->getBackingStore()->get('notificationType'); + if (is_null($val) || $val instanceof EndUserNotificationType) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'notificationType'"); + } + + /** + * Gets the source property value. The source property + * @return SimulationContentSource|null + */ + public function getSource(): ?SimulationContentSource { + $val = $this->getBackingStore()->get('source'); + if (is_null($val) || $val instanceof SimulationContentSource) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'source'"); + } + + /** + * Gets the status property value. The status property + * @return SimulationContentStatus|null + */ + public function getStatus(): ?SimulationContentStatus { + $val = $this->getBackingStore()->get('status'); + if (is_null($val) || $val instanceof SimulationContentStatus) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'status'"); + } + + /** + * Gets the supportedLocales property value. The supportedLocales property + * @return array|null + */ + public function getSupportedLocales(): ?array { + $val = $this->getBackingStore()->get('supportedLocales'); + 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 'supportedLocales'"); + } + + /** + * 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->writeDateTimeValue('createdDateTime', $this->getCreatedDateTime()); + $writer->writeStringValue('description', $this->getDescription()); + $writer->writeCollectionOfObjectValues('details', $this->getDetails()); + $writer->writeStringValue('displayName', $this->getDisplayName()); + $writer->writeObjectValue('lastModifiedBy', $this->getLastModifiedBy()); + $writer->writeDateTimeValue('lastModifiedDateTime', $this->getLastModifiedDateTime()); + $writer->writeEnumValue('notificationType', $this->getNotificationType()); + $writer->writeEnumValue('source', $this->getSource()); + $writer->writeEnumValue('status', $this->getStatus()); + $writer->writeCollectionOfPrimitiveValues('supportedLocales', $this->getSupportedLocales()); + } + + /** + * Sets the createdBy property value. The createdBy property + * @param EmailIdentity|null $value Value to set for the createdBy property. + */ + public function setCreatedBy(?EmailIdentity $value): void { + $this->getBackingStore()->set('createdBy', $value); + } + + /** + * Sets the createdDateTime property value. The createdDateTime property + * @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. The description property + * @param string|null $value Value to set for the description property. + */ + public function setDescription(?string $value): void { + $this->getBackingStore()->set('description', $value); + } + + /** + * Sets the details property value. The details property + * @param array|null $value Value to set for the details property. + */ + public function setDetails(?array $value): void { + $this->getBackingStore()->set('details', $value); + } + + /** + * Sets the displayName property value. The displayName property + * @param string|null $value Value to set for the displayName property. + */ + public function setDisplayName(?string $value): void { + $this->getBackingStore()->set('displayName', $value); + } + + /** + * Sets the lastModifiedBy property value. The lastModifiedBy property + * @param EmailIdentity|null $value Value to set for the lastModifiedBy property. + */ + public function setLastModifiedBy(?EmailIdentity $value): void { + $this->getBackingStore()->set('lastModifiedBy', $value); + } + + /** + * Sets the lastModifiedDateTime property value. The lastModifiedDateTime property + * @param DateTime|null $value Value to set for the lastModifiedDateTime property. + */ + public function setLastModifiedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('lastModifiedDateTime', $value); + } + + /** + * Sets the notificationType property value. The notificationType property + * @param EndUserNotificationType|null $value Value to set for the notificationType property. + */ + public function setNotificationType(?EndUserNotificationType $value): void { + $this->getBackingStore()->set('notificationType', $value); + } + + /** + * Sets the source property value. The source property + * @param SimulationContentSource|null $value Value to set for the source property. + */ + public function setSource(?SimulationContentSource $value): void { + $this->getBackingStore()->set('source', $value); + } + + /** + * Sets the status property value. The status property + * @param SimulationContentStatus|null $value Value to set for the status property. + */ + public function setStatus(?SimulationContentStatus $value): void { + $this->getBackingStore()->set('status', $value); + } + + /** + * Sets the supportedLocales property value. The supportedLocales property + * @param array|null $value Value to set for the supportedLocales property. + */ + public function setSupportedLocales(?array $value): void { + $this->getBackingStore()->set('supportedLocales', $value); + } + +} diff --git a/src/Generated/Models/EndUserNotificationCollectionResponse.php b/src/Generated/Models/EndUserNotificationCollectionResponse.php new file mode 100644 index 00000000000..8baddf03fed --- /dev/null +++ b/src/Generated/Models/EndUserNotificationCollectionResponse.php @@ -0,0 +1,70 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([EndUserNotification::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, EndUserNotification::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/EndUserNotificationDetail.php b/src/Generated/Models/EndUserNotificationDetail.php new file mode 100644 index 00000000000..f683b9452b0 --- /dev/null +++ b/src/Generated/Models/EndUserNotificationDetail.php @@ -0,0 +1,177 @@ +getBackingStore()->get('emailContent'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'emailContent'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'emailContent' => fn(ParseNode $n) => $o->setEmailContent($n->getStringValue()), + 'isDefaultLangauge' => fn(ParseNode $n) => $o->setIsDefaultLangauge($n->getBooleanValue()), + 'language' => fn(ParseNode $n) => $o->setLanguage($n->getStringValue()), + 'locale' => fn(ParseNode $n) => $o->setLocale($n->getStringValue()), + 'sentFrom' => fn(ParseNode $n) => $o->setSentFrom($n->getObjectValue([EmailIdentity::class, 'createFromDiscriminatorValue'])), + 'subject' => fn(ParseNode $n) => $o->setSubject($n->getStringValue()), + ]); + } + + /** + * Gets the isDefaultLangauge property value. The isDefaultLangauge property + * @return bool|null + */ + public function getIsDefaultLangauge(): ?bool { + $val = $this->getBackingStore()->get('isDefaultLangauge'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'isDefaultLangauge'"); + } + + /** + * Gets the language property value. The language property + * @return string|null + */ + public function getLanguage(): ?string { + $val = $this->getBackingStore()->get('language'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'language'"); + } + + /** + * Gets the locale property value. The locale property + * @return string|null + */ + public function getLocale(): ?string { + $val = $this->getBackingStore()->get('locale'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'locale'"); + } + + /** + * Gets the sentFrom property value. The sentFrom property + * @return EmailIdentity|null + */ + public function getSentFrom(): ?EmailIdentity { + $val = $this->getBackingStore()->get('sentFrom'); + if (is_null($val) || $val instanceof EmailIdentity) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'sentFrom'"); + } + + /** + * Gets the subject property value. The subject property + * @return string|null + */ + public function getSubject(): ?string { + $val = $this->getBackingStore()->get('subject'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'subject'"); + } + + /** + * 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('emailContent', $this->getEmailContent()); + $writer->writeBooleanValue('isDefaultLangauge', $this->getIsDefaultLangauge()); + $writer->writeStringValue('language', $this->getLanguage()); + $writer->writeStringValue('locale', $this->getLocale()); + $writer->writeObjectValue('sentFrom', $this->getSentFrom()); + $writer->writeStringValue('subject', $this->getSubject()); + } + + /** + * Sets the emailContent property value. The emailContent property + * @param string|null $value Value to set for the emailContent property. + */ + public function setEmailContent(?string $value): void { + $this->getBackingStore()->set('emailContent', $value); + } + + /** + * Sets the isDefaultLangauge property value. The isDefaultLangauge property + * @param bool|null $value Value to set for the isDefaultLangauge property. + */ + public function setIsDefaultLangauge(?bool $value): void { + $this->getBackingStore()->set('isDefaultLangauge', $value); + } + + /** + * Sets the language property value. The language property + * @param string|null $value Value to set for the language property. + */ + public function setLanguage(?string $value): void { + $this->getBackingStore()->set('language', $value); + } + + /** + * Sets the locale property value. The locale property + * @param string|null $value Value to set for the locale property. + */ + public function setLocale(?string $value): void { + $this->getBackingStore()->set('locale', $value); + } + + /** + * Sets the sentFrom property value. The sentFrom property + * @param EmailIdentity|null $value Value to set for the sentFrom property. + */ + public function setSentFrom(?EmailIdentity $value): void { + $this->getBackingStore()->set('sentFrom', $value); + } + + /** + * Sets the subject property value. The subject property + * @param string|null $value Value to set for the subject property. + */ + public function setSubject(?string $value): void { + $this->getBackingStore()->set('subject', $value); + } + +} diff --git a/src/Generated/Models/EndUserNotificationDetailCollectionResponse.php b/src/Generated/Models/EndUserNotificationDetailCollectionResponse.php new file mode 100644 index 00000000000..9199c96d841 --- /dev/null +++ b/src/Generated/Models/EndUserNotificationDetailCollectionResponse.php @@ -0,0 +1,70 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([EndUserNotificationDetail::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, EndUserNotificationDetail::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/EndUserNotificationPreference.php b/src/Generated/Models/EndUserNotificationPreference.php new file mode 100644 index 00000000000..50588ba5689 --- /dev/null +++ b/src/Generated/Models/EndUserNotificationPreference.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 EndUserNotificationSetting + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): EndUserNotificationSetting { + $mappingValueNode = $parseNode->getChildNode("@odata.type"); + if ($mappingValueNode !== null) { + $mappingValue = $mappingValueNode->getStringValue(); + switch ($mappingValue) { + case '#microsoft.graph.noTrainingNotificationSetting': return new NoTrainingNotificationSetting(); + case '#microsoft.graph.trainingNotificationSetting': return new TrainingNotificationSetting(); + } + } + return new EndUserNotificationSetting(); + } + + /** + * 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 [ + 'notificationPreference' => fn(ParseNode $n) => $o->setNotificationPreference($n->getEnumValue(EndUserNotificationPreference::class)), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + 'positiveReinforcement' => fn(ParseNode $n) => $o->setPositiveReinforcement($n->getObjectValue([PositiveReinforcementNotification::class, 'createFromDiscriminatorValue'])), + 'settingType' => fn(ParseNode $n) => $o->setSettingType($n->getEnumValue(EndUserNotificationSettingType::class)), + ]; + } + + /** + * Gets the notificationPreference property value. The notificationPreference property + * @return EndUserNotificationPreference|null + */ + public function getNotificationPreference(): ?EndUserNotificationPreference { + $val = $this->getBackingStore()->get('notificationPreference'); + if (is_null($val) || $val instanceof EndUserNotificationPreference) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'notificationPreference'"); + } + + /** + * 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 positiveReinforcement property value. The positiveReinforcement property + * @return PositiveReinforcementNotification|null + */ + public function getPositiveReinforcement(): ?PositiveReinforcementNotification { + $val = $this->getBackingStore()->get('positiveReinforcement'); + if (is_null($val) || $val instanceof PositiveReinforcementNotification) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'positiveReinforcement'"); + } + + /** + * Gets the settingType property value. The settingType property + * @return EndUserNotificationSettingType|null + */ + public function getSettingType(): ?EndUserNotificationSettingType { + $val = $this->getBackingStore()->get('settingType'); + if (is_null($val) || $val instanceof EndUserNotificationSettingType) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'settingType'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeEnumValue('notificationPreference', $this->getNotificationPreference()); + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeObjectValue('positiveReinforcement', $this->getPositiveReinforcement()); + $writer->writeEnumValue('settingType', $this->getSettingType()); + $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 notificationPreference property value. The notificationPreference property + * @param EndUserNotificationPreference|null $value Value to set for the notificationPreference property. + */ + public function setNotificationPreference(?EndUserNotificationPreference $value): void { + $this->getBackingStore()->set('notificationPreference', $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 positiveReinforcement property value. The positiveReinforcement property + * @param PositiveReinforcementNotification|null $value Value to set for the positiveReinforcement property. + */ + public function setPositiveReinforcement(?PositiveReinforcementNotification $value): void { + $this->getBackingStore()->set('positiveReinforcement', $value); + } + + /** + * Sets the settingType property value. The settingType property + * @param EndUserNotificationSettingType|null $value Value to set for the settingType property. + */ + public function setSettingType(?EndUserNotificationSettingType $value): void { + $this->getBackingStore()->set('settingType', $value); + } + +} diff --git a/src/Generated/Models/EndUserNotificationSettingType.php b/src/Generated/Models/EndUserNotificationSettingType.php new file mode 100644 index 00000000000..062e68aa2e1 --- /dev/null +++ b/src/Generated/Models/EndUserNotificationSettingType.php @@ -0,0 +1,13 @@ +, `, ^. Optional. + * Gets the aliases property value. A set of aliases or a friendly name for the property. Maximum 32 characters. Only alphanumeric characters allowed. For example, each string may not contain control characters, whitespace, or any of the following: :, ;, ,, (, ), [, ], {, }, %, $, +, !, *, =, &, ?, @, #, /, ~, ', ', <, >, `, ^. Optional. * @return array|null */ public function getAliases(): ?array { @@ -133,7 +133,7 @@ public function getIsRetrievable(): ?bool { } /** - * Gets the isSearchable property value. Specifies if the property is searchable. Only properties of type String or StringCollection can be searchable. Non-searchable properties are not added to the search index. Optional. + * Gets the isSearchable property value. Specifies if the property is searchable. Only properties of type String or StringCollection can be searchable. Nonsearchable properties aren't added to the search index. Optional. * @return bool|null */ public function getIsSearchable(): ?bool { @@ -145,7 +145,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 (e.g. better relevance). The possible values are: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, iconUrl, unknownFutureValue. Optional. + * 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). The possible values are: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, iconUrl, unknownFutureValue. Optional. * @return array